ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 109ms (Views: 44.9ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 50ms (Views: 0.4ms | ActiveRecord: 6.7ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '212bcacd7cbc5cb1a8dc44e8d6ecb7f7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:57', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:57', 'format', 'journal', 969081274, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:57', 'isbn', 1, '121212', 969081274, '121212')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:54:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081274, '212bcacd7cbc5cb1a8dc44e8d6ecb7f7')  (18.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081079"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081079 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081079 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081079  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081079, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081079\n', 'BorrowDirect', 'bd_request_status')  (19.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081274 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081274) Redirected to http://test.host/resolve?umlaut.request_id=969081079&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A54%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 95ms (ActiveRecord: 33.0ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa864e3b3295ac56776e1086aa887d2a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:58', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'format', 'journal', 969081275, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'isbn', 1, '121212', 969081275, '121212')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:54:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081275, 'fa864e3b3295ac56776e1086aa887d2a')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081080, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (16.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081080"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081080 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081080 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070011860  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081080, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070011860\n', 'BorrowDirect', 'bd_request_status')  (17.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081275 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081275) Redirected to http://test.host/resolve?umlaut.request_id=969081080&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A54%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.2ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4fab8bf5f91ce1352a0eadaad54ecd57' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:58', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'format', 'journal', 969081276, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'isbn', 1, '121212', 969081276, '121212')  (20.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:54:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081276, '4fab8bf5f91ce1352a0eadaad54ecd57')  (16.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081081, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081081"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081081 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081081 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081081 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:54:58', NULL, 969081081, 'BorrowDirect', 'in_progress', '2015-02-05 17:54:58')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:54:58' WHERE `dispatched_services`.`id` = 1447  (21.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081081, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.3ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081276 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081276) Redirected to http://test.host/resolve?umlaut.request_id=969081081&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A54%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 96ms (ActiveRecord: 74.8ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081081 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081081 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081081 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:54:58' WHERE `dispatched_services`.`id` = 1447  (17.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011863  (17.1ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '238e57902b9a945e921bff221b8f262f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:58', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'format', 'journal', 969081277, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'isbn', 1, '121212', 969081277, '121212')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:54:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081277, '238e57902b9a945e921bff221b8f262f')  (16.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081082"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081082 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081082 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081082, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081277 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081277) Redirected to http://test.host/resolve?umlaut.request_id=969081082&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A54%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 63ms (ActiveRecord: 54.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:54:58 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd6e01f254d5411eba904b68f7809dd3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:58', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'format', 'journal', 969081278, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'isbn', 1, '9789810743734', 969081278, '9789810743734')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:54:58', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081278, 'dd6e01f254d5411eba904b68f7809dd3')  (17.7ms) COMMIT  (1.0ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081083  (17.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:54:58', NULL, 969081083, 'test_bd', 'queued', '2015-02-05 17:54:58')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:54:58' WHERE `dispatched_services`.`id` = 1448  (16.6ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081083 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081278) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081278) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081083) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081083) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081083 AND `dispatched_services`.`id` = 1448 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081083, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.034691s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:55:06' WHERE `dispatched_services`.`id` = 1448  (17.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081083 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081278 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081278) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (4.0ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081083 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (13.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (4.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (22.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (37.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (1.1ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081278 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (15.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (1.4ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081083  (18.1ms) COMMIT Completed 200 OK in 7950ms (Views: 284.0ms | ActiveRecord: 136.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_With_API_use_disabled,_only_display_link -------------------------------------------------------------------------- ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:55:06 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f75b02cebc9b63bdc3242b673de971f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:06', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:06', 'format', 'book', 969081279, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:06', 'genre', 1, 'book', 969081279, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:06', 'author', 1, 'smith', 969081279, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:06', 'title', 1, 'some book', 969081279, 'Some Book')  (35.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:55:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081279, '5f75b02cebc9b63bdc3242b673de971f')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081084  (22.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:06', NULL, 969081084, 'BorrowDirect', 'queued', '2015-02-05 17:55:06')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:06' WHERE `dispatched_services`.`id` = 1449  (20.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081084 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081279) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081279) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081084) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081084) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081084 AND `dispatched_services`.`id` = 1449 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081084, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (35.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:08' WHERE `dispatched_services`.`id` = 1449  (21.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081084 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081279 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081279) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.5ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081084 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081279 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081084  (21.9ms) COMMIT Completed 200 OK in 1658ms (Views: 45.6ms | ActiveRecord: 162.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:55:08 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9a5d7f3fad00e9974f7a747a7208c15' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:08', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'format', 'journal', 969081280, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'genre', 1, 'article', 969081280, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'title', 1, 'foo', 969081280, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'author', 1, 'bar', 969081280, 'bar')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:55:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081280, 'd9a5d7f3fad00e9974f7a747a7208c15')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081085  (17.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:08', NULL, 969081085, 'BorrowDirect', 'queued', '2015-02-05 17:55:08')  (17.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:08' WHERE `dispatched_services`.`id` = 1450  (22.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081085 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081280) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081280) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081085) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081085) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081085 AND `dispatched_services`.`id` = 1450 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:08' WHERE `dispatched_services`.`id` = 1450  (17.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081085 LIMIT 1 DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.9ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081280 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081280) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.5ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081085 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081280 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081085  (17.5ms) COMMIT Completed 200 OK in 288ms (Views: 40.6ms | ActiveRecord: 140.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0bb74bbdc84de94b84ab39f00af9525c' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:08', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'format', 'book', 969081281, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'genre', 1, 'book', 969081281, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'title', 1, 'foo', 969081281, 'foo')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:55:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081281, '0bb74bbdc84de94b84ab39f00af9525c')  (18.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081086 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:08', NULL, 969081086, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:55:08')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:08' WHERE `dispatched_services`.`id` = 1451  (17.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969081086" for 127.0.0.1 at 2015-02-05 12:55:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081086"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081086 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081281 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081281)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081086  (17.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081086 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081086 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081086 [["request_id", 969081086]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081281 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081281) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.5ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081086 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081086 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081281 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081086  (17.9ms) COMMIT Completed 200 OK in 112ms (Views: 45.7ms | ActiveRecord: 51.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0e795deef9c27bf8220ee2955d6390e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:08', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'format', 'journal', 969081282, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'isbn', 1, '9789810743734', 969081282, '9789810743734')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081282, 'a0e795deef9c27bf8220ee2955d6390e')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081087  (16.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:09', NULL, 969081087, 'BorrowDirect', 'queued', '2015-02-05 17:55:09')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:09' WHERE `dispatched_services`.`id` = 1452  (17.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081282) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081087) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081087) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`id` = 1452 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081087, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:11', 'Choose your delivery location', 969081087, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:11' WHERE `dispatched_services`.`id` = 1452  (17.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.7ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081282 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081087 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.4ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (22.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (23.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081282 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.5ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081087  (18.7ms) COMMIT Completed 200 OK in 3153ms (Views: 62.1ms | ActiveRecord: 130.6ms) Started GET "/borrow_direct/BorrowDirect/969081087?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:55:12 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081087"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081087 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:55:12' WHERE `dispatched_services`.`id` = 1452  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:12', 969081087, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.6ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081282 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282) Redirected to http://www.example.com/resolve?umlaut.request_id=969081087&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 63ms (ActiveRecord: 45.0ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:55:12' WHERE `dispatched_services`.`id` = 1452  (19.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011869  (16.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969081087&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081087", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081282 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081087  (17.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 [["request_id", 969081087]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081282 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081087 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081282 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081087  (17.4ms) COMMIT Completed 200 OK in 115ms (Views: 47.6ms | ActiveRecord: 49.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:55:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f6b7b33fe870aa7bf986018f4aba05f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:12', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:12', 'format', 'journal', 969081283, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:12', 'isbn', 1, '0109836413', 969081283, '0109836413')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:55:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081283, '3f6b7b33fe870aa7bf986018f4aba05f')  (16.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081088  (18.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:12', NULL, 969081088, 'BorrowDirect', 'queued', '2015-02-05 17:55:12')  (16.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:12' WHERE `dispatched_services`.`id` = 1453  (17.2ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081088 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081283) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081283) ServiceResponse Load (48.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081088) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081088) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081088 AND `dispatched_services`.`id` = 1453 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081088, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (25.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:20', 'This item is not currently available from BorrowDirect', 969081088, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (24.3ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:20' WHERE `dispatched_services`.`id` = 1453  (18.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081088 LIMIT 1 DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (4.0ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081283 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081283) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081088 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081283 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081088  (18.3ms) COMMIT Completed 200 OK in 7975ms (Views: 45.6ms | ActiveRecord: 132.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9ad5745a657157d174cba062e8b4622' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:20', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:20', 'format', 'journal', 969081284, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:20', 'isbn', 1, '9789810743734', 969081284, '9789810743734')  (23.6ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081284, 'd9ad5745a657157d174cba062e8b4622')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081089  (18.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:20', NULL, 969081089, 'BorrowDirect', 'queued', '2015-02-05 17:55:20')  (22.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:20' WHERE `dispatched_services`.`id` = 1454  (17.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081284) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081089) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081089) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`id` = 1454 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081089, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:21', 'Choose your delivery location', 969081089, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (24.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:21' WHERE `dispatched_services`.`id` = 1454  (27.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081284 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081089 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (11.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081284 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081089  (17.3ms) COMMIT Completed 200 OK in 949ms (Views: 50.6ms | ActiveRecord: 144.5ms) Started GET "/borrow_direct/BorrowDirect/969081089?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:55:21 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081089"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081089 ORDER BY id ASC DispatchedService Load (47.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:55:21' WHERE `dispatched_services`.`id` = 1454  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:21', 969081089, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081284 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284) Redirected to http://www.example.com/resolve?umlaut.request_id=969081089&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 109ms (ActiveRecord: 90.0ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:21' WHERE `dispatched_services`.`id` = 1454  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070011874  (16.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969081089&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:21 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081089", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:21-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081284 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081089  (20.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 [["request_id", 969081089]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081284 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081089 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081284 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081089  (16.1ms) COMMIT Completed 200 OK in 112ms (Views: 43.1ms | ActiveRecord: 50.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c5b5c1d9a3540e8d63feb861cdb13aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:21', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:21', 'format', 'journal', 969081285, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:21', 'isbn', 1, '9789810743734', 969081285, '9789810743734')  (17.3ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081285, '1c5b5c1d9a3540e8d63feb861cdb13aa')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081090  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:21', NULL, 969081090, 'BorrowDirect', 'queued', '2015-02-05 17:55:21')  (21.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:21' WHERE `dispatched_services`.`id` = 1455  (19.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081090 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081285) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081285) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081090) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081090) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081090 AND `dispatched_services`.`id` = 1455 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081090, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:22', 'Choose your delivery location', 969081090, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.2ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:22' WHERE `dispatched_services`.`id` = 1455  (25.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081090 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.7ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081285 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081285) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081090 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081090 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (11.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081285 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081090  (17.7ms) COMMIT Completed 200 OK in 1145ms (Views: 50.1ms | ActiveRecord: 139.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:22 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '960b3a6c0282e3e4185e550b4f61dc55' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:22', '9789810743734') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:22', 'format', 'journal', 969081286, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:22', 'isbn', 1, '9789810743734', 969081286, '9789810743734')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081286, '960b3a6c0282e3e4185e550b4f61dc55')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081091  (17.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081091  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:22', NULL, 969081091, 'BorrowDirect', 'queued', '2015-02-05 17:55:22')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:22' WHERE `dispatched_services`.`id` = 1456  (16.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081091 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081286) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081286) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081091) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081091) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081091 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081091 AND `dispatched_services`.`id` = 1456 AND `dispatched_services`.`status` IN ('queued') ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fea445358840ba354f7f0ddaf18ce173' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:31', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:31', 'format', 'journal', 969081287, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:31', 'isbn', 1, '9789810743734', 969081287, '9789810743734')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081287, 'fea445358840ba354f7f0ddaf18ce173')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081092  (17.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:31', NULL, 969081092, 'test_bd', 'queued', '2015-02-05 17:55:31')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:31' WHERE `dispatched_services`.`id` = 1457  (17.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081092 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081287) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081287) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081092) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081092) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081092 AND `dispatched_services`.`id` = 1457 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081092, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003931s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:55:31' WHERE `dispatched_services`.`id` = 1457  (17.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081092 LIMIT 1 DispatchedService Load (8.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081287 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081287) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081092 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (63.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081287 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (42.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081092  (17.5ms) COMMIT Completed 200 OK in 690ms (Views: 170.3ms | ActiveRecord: 159.7ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_With_API_use_disabled,_only_display_link -------------------------------------------------------------------------- ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:55:31 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4d536afb6321ac252d34d4f9a0ea8ec' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:32', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'format', 'book', 969081288, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'genre', 1, 'book', 969081288, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'author', 1, 'smith', 969081288, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'title', 1, 'some book', 969081288, 'Some Book')  (22.9ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:55:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081288, 'a4d536afb6321ac252d34d4f9a0ea8ec')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081093  (17.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:32', NULL, 969081093, 'BorrowDirect', 'queued', '2015-02-05 17:55:32')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1458  (16.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081093 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081288) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081288) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081093) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081093) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081093 AND `dispatched_services`.`id` = 1458 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081093, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (17.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1458  (21.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081093 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081288 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081288) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081093 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081288 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081093  (21.3ms) COMMIT Completed 200 OK in 295ms (Views: 19.5ms | ActiveRecord: 140.0ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:55:32 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e788216782f5b38c4788598ed48f619d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:32', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'format', 'journal', 969081289, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'genre', 1, 'article', 969081289, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'title', 1, 'foo', 969081289, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'author', 1, 'bar', 969081289, 'bar')  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:55:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081289, 'e788216782f5b38c4788598ed48f619d')  (18.0ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081094  (17.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:32', NULL, 969081094, 'BorrowDirect', 'queued', '2015-02-05 17:55:32')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1459  (16.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081094 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081289) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081289) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081094) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081094) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081094 AND `dispatched_services`.`id` = 1459 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1459  (17.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081094 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081289 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081289) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081094 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081289 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081094  (18.0ms) COMMIT Completed 200 OK in 244ms (Views: 17.7ms | ActiveRecord: 147.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6aece16933b6a8d76c070e86d44f8a98' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:32', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'format', 'book', 969081290, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'genre', 1, 'book', 969081290, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'title', 1, 'foo', 969081290, 'foo')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:55:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081290, '6aece16933b6a8d76c070e86d44f8a98')  (17.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081095 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:32', NULL, 969081095, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:55:32')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1460  (17.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969081095" for 127.0.0.1 at 2015-02-05 12:55:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081095"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081095 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081290 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081290)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081095  (18.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081095 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081095 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081095 [["request_id", 969081095]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081290 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081290) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081095 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081095 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081290 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081095  (17.6ms) COMMIT Completed 200 OK in 77ms (Views: 18.7ms | ActiveRecord: 50.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77680337ab0f28e6f4dbbc8fa61268dc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:32', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'format', 'journal', 969081291, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'isbn', 1, '9789810743734', 969081291, '9789810743734')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081291, '77680337ab0f28e6f4dbbc8fa61268dc')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081096  (17.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:32', NULL, 969081096, 'BorrowDirect', 'queued', '2015-02-05 17:55:32')  (17.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1461  (18.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081291) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081096) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081096) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`id` = 1461 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081096, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:32', 'Choose your delivery location', 969081096, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1461  (17.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081291 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081096 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081291 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081096  (18.4ms) COMMIT Completed 200 OK in 285ms (Views: 27.3ms | ActiveRecord: 132.1ms) Started GET "/borrow_direct/BorrowDirect/969081096?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:55:33 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081096"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081096 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1461  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:33', 969081096, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081291 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291) Redirected to http://www.example.com/resolve?umlaut.request_id=969081096&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' Completed 303 See Other in 60ms (ActiveRecord: 44.4ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1461  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011881  (16.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969081096&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:33 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081096", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:33-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081291 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081096  (17.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 [["request_id", 969081096]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081291 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081096 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081291 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081096  (16.5ms) COMMIT Completed 200 OK in 80ms (Views: 21.5ms | ActiveRecord: 49.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:55:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b660ecd48ff9a7d8120c49a939278b6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:33', '0109836413') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:33', 'format', 'journal', 969081292, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:33', 'isbn', 1, '0109836413', 969081292, '0109836413')  (16.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:55:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081292, '8b660ecd48ff9a7d8120c49a939278b6')  (18.4ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081097  (17.5ms) COMMIT DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:33', NULL, 969081097, 'BorrowDirect', 'queued', '2015-02-05 17:55:33')  (21.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1462  (17.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081097 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081292) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081292) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081097) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081097) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081097 AND `dispatched_services`.`id` = 1462 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081097, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:33', 'This item is not currently available from BorrowDirect', 969081097, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1462  (17.6ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081097 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081292 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081292) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081097 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081292 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081097  (17.5ms) COMMIT Completed 200 OK in 278ms (Views: 19.8ms | ActiveRecord: 133.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c5f1bf74898c6b36349e0d6aba81ddc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:33', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:33', 'format', 'journal', 969081293, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:33', 'isbn', 1, '9789810743734', 969081293, '9789810743734')  (17.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081293, '6c5f1bf74898c6b36349e0d6aba81ddc')  (16.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081098  (16.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:33', NULL, 969081098, 'BorrowDirect', 'queued', '2015-02-05 17:55:33')  (17.1ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1463  (17.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081293) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081098) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081098) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`id` = 1463 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081098, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:33', 'Choose your delivery location', 969081098, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1463  (18.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081293 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081098 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081293 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081098  (17.4ms) COMMIT Completed 200 OK in 277ms (Views: 23.1ms | ActiveRecord: 128.5ms) Started GET "/borrow_direct/BorrowDirect/969081098?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:55:33 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081098"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081098 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1463  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:33', 969081098, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (22.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081293 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293) Redirected to http://www.example.com/resolve?umlaut.request_id=969081098&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 68ms (ActiveRecord: 51.4ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1463  (23.1ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070011886  (17.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969081098&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:34 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081098", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:33-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081293 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081098  (17.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 [["request_id", 969081098]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081293 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081098 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081293 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081098  (19.1ms) COMMIT Completed 200 OK in 77ms (Views: 17.4ms | ActiveRecord: 50.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c92e35ec3376fcddca0e95a9f1f0d46f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:34', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:34', 'format', 'journal', 969081294, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:34', 'isbn', 1, '9789810743734', 969081294, '9789810743734')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081294, 'c92e35ec3376fcddca0e95a9f1f0d46f')  (23.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081099  (20.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:34', NULL, 969081099, 'BorrowDirect', 'queued', '2015-02-05 17:55:34')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:34' WHERE `dispatched_services`.`id` = 1464  (17.3ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081099 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081294) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081294) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081099) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081099) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081099 AND `dispatched_services`.`id` = 1464 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081099, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:34', 'Choose your delivery location', 969081099, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:34' WHERE `dispatched_services`.`id` = 1464  (64.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081099 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081294 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081294) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081099 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081099 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081294 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (22.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081099  (19.7ms) COMMIT Completed 200 OK in 354ms (Views: 24.0ms | ActiveRecord: 161.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4dbdc1e5804dd6687869736c4449b7d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:34', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:34', 'format', 'journal', 969081295, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:34', 'isbn', 1, '9789810743734', 969081295, '9789810743734')  (30.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081295, 'd4dbdc1e5804dd6687869736c4449b7d')  (40.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081100  (34.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:34', NULL, 969081100, 'BorrowDirect', 'queued', '2015-02-05 17:55:34')  (18.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:34' WHERE `dispatched_services`.`id` = 1465  (17.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081295) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081100) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081100) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`id` = 1465 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081100, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:34', 'Choose your delivery location', 969081100, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:34' WHERE `dispatched_services`.`id` = 1465  (17.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081295 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081100 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081295 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081100  (17.1ms) COMMIT Completed 200 OK in 386ms (Views: 21.6ms | ActiveRecord: 182.9ms) Started GET "/borrow_direct/BorrowDirect/969081100" for 127.0.0.1 at 2015-02-05 12:55:34 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081100"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081100 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:34', 969081100, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (17.7ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081295 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295) Redirected to http://www.example.com/resolve?umlaut.request_id=969081100&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 23.2ms) Started GET "/resolve?umlaut.request_id=969081100&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:34 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081100", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081295 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081100  (18.9ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 [["request_id", 969081100]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081295 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081100 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081295 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081100  (17.6ms) COMMIT Completed 200 OK in 81ms (Views: 21.8ms | ActiveRecord: 49.7ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b10b9448bd5b26c2c5512d9c2a4e5ca' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081296, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '9789810743734', 969081296, '9789810743734')  (18.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081296, '9b10b9448bd5b26c2c5512d9c2a4e5ca')  (16.9ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081101 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081101, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.4ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f846dfc3c6f5645a65bec2df40c417fb' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 17:55:35', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'book', 969081297, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'auinit', 1, 'eh', 969081297, 'EH') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'aulast', 1, 'lenneberg', 969081297, 'Lenneberg') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'title', 1, 'biological foundations of language', 969081297, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'genre', 1, 'book', 969081297, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'date', 1, '1967', 969081297, '1967')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081297, 'info:sid/google', 'f846dfc3c6f5645a65bec2df40c417fb')  (18.5ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081102 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081102, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (17.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081102 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081102, 'test_bd', 'successful', '2015-02-05 17:55:35')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1466  (17.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081102 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f8bbb7b30b2f2c7c2c6385a1bf7917c' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 17:55:35', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081298, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'auinit', 1, 'rd', 969081298, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'aulast', 1, 'kaplan', 969081298, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'atitle', 1, 'the coming anarchy', 969081298, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'title', 1, 'the atlantic monthly', 969081298, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'volume', 1, '273', 969081298, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'issue', 1, '2', 969081298, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'date', 1, '1994', 969081298, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'spage', 1, '44', 969081298, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'issn', 1, '1072-7825', 969081298, '1072-7825')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081298, 'info:sid/google', '8f8bbb7b30b2f2c7c2c6385a1bf7917c')  (17.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081103 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081103, 'test_bd', 'successful', '2015-02-05 17:55:35')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1467  (16.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081103 ServiceResponse Exists (1.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081103 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6db202347231373034813ea834ba9df3' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:35', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081299, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081299, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'aulast', 1, 'grimes', 969081299, 'Grimes')  (17.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081299, '6db202347231373034813ea834ba9df3')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081104, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (17.3ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081104 ORDER BY id ASC  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.8ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e996d7f692f063468ee014c66e85ff8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081300, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '9789810743734', 969081300, '9789810743734')  (18.4ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081300, '8e996d7f692f063468ee014c66e85ff8')  (18.2ms) COMMIT ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081105 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081105, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:35', 'Choose your delivery location', 969081105, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (17.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081105 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081105, 'test_bd', 'successful', '2015-02-05 17:55:35')  (18.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1468  (17.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081105 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e89e9fdebbbb27d3740ff09f181357b0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081301, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '0109836413', 969081301, '0109836413')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081301, 'e89e9fdebbbb27d3740ff09f181357b0')  (18.0ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081106 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081106, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.6ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:35', 'This item is not currently available from BorrowDirect', 969081106, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081106 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081106, 'test_bd', 'successful', '2015-02-05 17:55:35')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1469  (17.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081106 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d83c6fe1165748a564079d8fe4952b7' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081302, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '000000000', 969081302, '000000000')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081302, '5d83c6fe1165748a564079d8fe4952b7')  (16.9ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081107 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081107, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:35', 'This item is not currently available from BorrowDirect', 969081107, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081107 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081107, 'test_bd', 'successful', '2015-02-05 17:55:35')  (17.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1470  (16.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081107 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '36cb7de385333fc13e399c93303ab199' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '9789810743734') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081303, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '9789810743734', 969081303, '9789810743734')  (16.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081303, '36cb7de385333fc13e399c93303ab199')  (18.5ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081108 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081108, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081108 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081108, 'test_bd', 'failed_temporary', '2015-02-05 17:55:36')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:230:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1471  (18.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081108 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff601fe69caece4ff341e201451e9658' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:36', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081304, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'title', 1, 'title', 969081304, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'author', 1, 'au', 969081304, 'au')  (17.5ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081304, 'ff601fe69caece4ff341e201451e9658')  (16.7ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081109, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (16.7ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081109 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081109, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081109 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081109, 'test_bd', 'successful', '2015-02-05 17:55:36')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1472  (17.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081109 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea9086a9ff84bf101b594f178edec3c3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:36', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081305, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'title', 1, 'title', 969081305, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'author', 1, 'au', 969081305, 'au')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081305, 'ea9086a9ff84bf101b594f178edec3c3')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081110, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (17.7ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081110 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081110, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081110 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081110, 'test_bd', 'successful', '2015-02-05 17:55:36')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1473  (20.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081110 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa2ceb79ecff9b69c7534e1d7500728f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:36', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081306, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'title', 1, 'title', 969081306, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'author', 1, 'au', 969081306, 'au')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081306, 'fa2ceb79ecff9b69c7534e1d7500728f')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081111, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (18.2ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081111 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081111 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081111, 'test_bd', 'successful', '2015-02-05 17:55:36')  (18.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1474  (18.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081111 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.3ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba1f37d4ab84d1532063f2ac4a38fada' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:36', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081307, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'isbn', 1, '121212', 969081307, '121212')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081307, 'ba1f37d4ab84d1532063f2ac4a38fada')  (17.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081112"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081112 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081112 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081112  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081112, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081112\n', 'BorrowDirect', 'bd_request_status')  (16.7ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081307 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081307) Redirected to http://test.host/resolve?umlaut.request_id=969081112&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.7ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2271e8c51db7161d1d70e5020b972112' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:36', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081308, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'isbn', 1, '121212', 969081308, '121212')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081308, '2271e8c51db7161d1d70e5020b972112')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081113, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081113"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081113 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081113 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070011908  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081113, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070011908\n', 'BorrowDirect', 'bd_request_status')  (16.9ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081308 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081308) Redirected to http://test.host/resolve?umlaut.request_id=969081113&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed0cd1ceaab350fcab46123b35764197' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:36', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081309, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'isbn', 1, '121212', 969081309, '121212')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081309, 'ed0cd1ceaab350fcab46123b35764197')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081114, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081114"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081114 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081114 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081114 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081114, 'BorrowDirect', 'in_progress', '2015-02-05 17:55:36')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1475  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081114, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081309 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081309) Redirected to http://test.host/resolve?umlaut.request_id=969081114&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 74ms (ActiveRecord: 64.0ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081114 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081114 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081114 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1475  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011911  (16.6ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '229f1f3b5f4fb4c89f1c4268641e0140' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:36', '121212') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081310, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'isbn', 1, '121212', 969081310, '121212')  (19.0ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081310, '229f1f3b5f4fb4c89f1c4268641e0140')  (17.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081115"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081115 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081115 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081115, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (17.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081310 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081310) Redirected to http://test.host/resolve?umlaut.request_id=969081115&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.5ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '462c7034d55e4367fc83a72c4c9c475e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:36', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081311, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'title', 1, 'title', 969081311, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'author', 1, 'au', 969081311, 'au')  (18.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:55:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081311, '462c7034d55e4367fc83a72c4c9c475e')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:37', 969081116, '--- {}\n', 'test_holding', 'holding')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081116, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081116 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:37', NULL, 969081116, 'test_bd', 'successful', '2015-02-05 17:55:37')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:37' WHERE `dispatched_services`.`id` = 1476  (17.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081116 ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081116 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0a1e7285a86bf50154a5a94723bd406' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:02', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'format', 'journal', 969081312, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'isbn', 1, '9789810743734', 969081312, '9789810743734')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081312, 'e0a1e7285a86bf50154a5a94723bd406')  (16.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081117  (17.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:02', NULL, 969081117, 'test_bd', 'queued', '2015-02-05 17:58:02')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1477  (17.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081117 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081312) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081312) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081117) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081117) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (25.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081117 AND `dispatched_services`.`id` = 1477 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081117, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003832s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1477  (17.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081117 LIMIT 1 DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081312 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081312) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081117 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (62.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081312 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (42.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081117  (17.1ms) COMMIT Completed 200 OK in 688ms (Views: 168.4ms | ActiveRecord: 153.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_With_API_use_disabled,_only_display_link -------------------------------------------------------------------------- ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:58:02 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce74b6eb0864dd1a28a5404c53760bb6' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:02', 'some book') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'format', 'book', 969081313, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'genre', 1, 'book', 969081313, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'author', 1, 'smith', 969081313, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'title', 1, 'some book', 969081313, 'Some Book')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:58:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081313, 'ce74b6eb0864dd1a28a5404c53760bb6')  (17.5ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081118  (16.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:02', NULL, 969081118, 'BorrowDirect', 'queued', '2015-02-05 17:58:02')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1478  (18.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081118 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081313) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081313) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081118) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081118) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081118 AND `dispatched_services`.`id` = 1478 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081118, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (17.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1478  (16.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081118 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081313 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081313) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081118 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081313 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081118  (17.6ms) COMMIT Completed 200 OK in 283ms (Views: 18.7ms | ActiveRecord: 133.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:58:02 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd497ee623a65515ba9efbe4f0b1c573e' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:02', 'foo') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'format', 'journal', 969081314, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'genre', 1, 'article', 969081314, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'title', 1, 'foo', 969081314, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'author', 1, 'bar', 969081314, 'bar')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:58:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081314, 'd497ee623a65515ba9efbe4f0b1c573e')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081119  (18.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:02', NULL, 969081119, 'BorrowDirect', 'queued', '2015-02-05 17:58:02')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1479  (16.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081119 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081314) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081314) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081119) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081119) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081119 AND `dispatched_services`.`id` = 1479 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1479  (16.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081119 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081314 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081314) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081119 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081314 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081119  (17.1ms) COMMIT Completed 200 OK in 252ms (Views: 17.4ms | ActiveRecord: 157.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af7aea0aa2bee1f2ca506f0bb2eaad4f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:03', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'format', 'book', 969081315, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'genre', 1, 'book', 969081315, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'title', 1, 'foo', 969081315, 'foo')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:58:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081315, 'af7aea0aa2bee1f2ca506f0bb2eaad4f')  (18.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081120 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:03', NULL, 969081120, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:58:03')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1480  (17.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969081120" for 127.0.0.1 at 2015-02-05 12:58:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081120"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081120 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081315 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081315)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081120  (19.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081120 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081120 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081120 [["request_id", 969081120]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081315 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081315) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081120 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081120 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081315 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081120  (18.6ms) COMMIT Completed 200 OK in 79ms (Views: 18.3ms | ActiveRecord: 53.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bdcf765ad90f581a8bade881f0d7878f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:03', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'format', 'journal', 969081316, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'isbn', 1, '9789810743734', 969081316, '9789810743734')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081316, 'bdcf765ad90f581a8bade881f0d7878f')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081121  (17.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:03', NULL, 969081121, 'BorrowDirect', 'queued', '2015-02-05 17:58:03')  (16.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1481  (18.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081316) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081121) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081121) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`id` = 1481 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081121, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:03', 'Choose your delivery location', 969081121, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1481  (17.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081316 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081121 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081316 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081121  (18.1ms) COMMIT Completed 200 OK in 281ms (Views: 24.7ms | ActiveRecord: 129.7ms) Started GET "/borrow_direct/BorrowDirect/969081121?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:58:03 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081121"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081121 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1481  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:03', 969081121, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081316 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316) Redirected to http://www.example.com/resolve?umlaut.request_id=969081121&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' Completed 303 See Other in 61ms (ActiveRecord: 46.2ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1481  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011919  (17.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969081121&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081121", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081316 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081121  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 [["request_id", 969081121]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081316 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081121 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081316 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081121  (17.3ms) COMMIT Completed 200 OK in 82ms (Views: 20.4ms | ActiveRecord: 52.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:58:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09ac64386e68dac057e3164a94f5c202' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:03', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'format', 'journal', 969081317, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'isbn', 1, '0109836413', 969081317, '0109836413')  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:58:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081317, '09ac64386e68dac057e3164a94f5c202')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081122  (17.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:03', NULL, 969081122, 'BorrowDirect', 'queued', '2015-02-05 17:58:03')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1482  (18.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081122 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081317) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081317) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081122) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081122) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081122 AND `dispatched_services`.`id` = 1482 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081122, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:04', 'This item is not currently available from BorrowDirect', 969081122, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (17.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1482  (19.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081122 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081317 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081317) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081122 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081317 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081122  (18.0ms) COMMIT Completed 200 OK in 279ms (Views: 19.6ms | ActiveRecord: 134.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '218da160a2e8d9d9c8637ffc1f9a3d7d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:04', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'format', 'journal', 969081318, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'isbn', 1, '9789810743734', 969081318, '9789810743734')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081318, '218da160a2e8d9d9c8637ffc1f9a3d7d')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081123  (17.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:04', NULL, 969081123, 'BorrowDirect', 'queued', '2015-02-05 17:58:04')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1483  (17.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081318) ReferentValue Load (3.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081123) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081123) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (31.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`id` = 1483 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081123, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:04', 'Choose your delivery location', 969081123, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1483  (17.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081318 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081123 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081318 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081123  (18.6ms) COMMIT Completed 200 OK in 298ms (Views: 23.3ms | ActiveRecord: 133.8ms) Started GET "/borrow_direct/BorrowDirect/969081123?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:58:04 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081123"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081123 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1483  (17.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:04', 969081123, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (16.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081318 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318) Redirected to http://www.example.com/resolve?umlaut.request_id=969081123&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 53ms (ActiveRecord: 43.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1483  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070011924  (16.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969081123&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:04 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081123", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081318 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081123  (16.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 [["request_id", 969081123]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081318 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081123 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081318 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081123  (17.4ms) COMMIT Completed 200 OK in 75ms (Views: 18.0ms | ActiveRecord: 47.4ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec4b533fd56c649f211d110c63166ad0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:04', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'format', 'journal', 969081319, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'isbn', 1, '9789810743734', 969081319, '9789810743734')  (16.9ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081319, 'ec4b533fd56c649f211d110c63166ad0')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081124  (17.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:04', NULL, 969081124, 'BorrowDirect', 'queued', '2015-02-05 17:58:04')  (16.5ms) COMMIT  (1.0ms) BEGIN SQL (2.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1484  (18.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081124 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081319) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081319) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081124) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081124) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081124 AND `dispatched_services`.`id` = 1484 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081124, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:04', 'Choose your delivery location', 969081124, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1484  (16.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081124 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081319 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081319) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081124 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.4ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081124 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081319 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081124  (21.5ms) COMMIT Completed 200 OK in 281ms (Views: 23.2ms | ActiveRecord: 135.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1b589a52a4f6c18843007d56aa2c5ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:04', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'format', 'journal', 969081320, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'isbn', 1, '9789810743734', 969081320, '9789810743734')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081320, 'd1b589a52a4f6c18843007d56aa2c5ad')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081125  (17.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:05', NULL, 969081125, 'BorrowDirect', 'queued', '2015-02-05 17:58:05')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:05' WHERE `dispatched_services`.`id` = 1485  (19.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081320) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081125) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081125) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`id` = 1485 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081125, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 'Choose your delivery location', 969081125, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (22.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:05' WHERE `dispatched_services`.`id` = 1485  (17.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081320 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081125 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081320 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081125  (17.4ms) COMMIT Completed 200 OK in 338ms (Views: 23.3ms | ActiveRecord: 133.6ms) Started GET "/borrow_direct/BorrowDirect/969081125" for 127.0.0.1 at 2015-02-05 12:58:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081125"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081125 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081125, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081320 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320) Redirected to http://www.example.com/resolve?umlaut.request_id=969081125&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 21.9ms) Started GET "/resolve?umlaut.request_id=969081125&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081125", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081320 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081125  (17.4ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 [["request_id", 969081125]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081320 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081125 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081320 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081125  (18.6ms) COMMIT Completed 200 OK in 82ms (Views: 23.2ms | ActiveRecord: 49.7ms) ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.3ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '321607f687ae6da65cbc50700f1405c3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:05', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081321, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'isbn', 1, '121212', 969081321, '121212')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081321, '321607f687ae6da65cbc50700f1405c3')  (30.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081126"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081126 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081126 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081126  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081126, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081126\n', 'BorrowDirect', 'bd_request_status')  (17.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081321 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081321) Redirected to http://test.host/resolve?umlaut.request_id=969081126&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.2ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64a776ac10244fe7c567e20682737c14' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:05', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081322, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'isbn', 1, '121212', 969081322, '121212')  (16.6ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081322, '64a776ac10244fe7c567e20682737c14')  (16.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081127, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081127"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081127 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081127 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070011931  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081127, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070011931\n', 'BorrowDirect', 'bd_request_status')  (17.8ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081322 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081322) Redirected to http://test.host/resolve?umlaut.request_id=969081127&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 25.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29984f161788784a053ed8afe51dab2d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:05', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081323, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'isbn', 1, '121212', 969081323, '121212')  (19.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081323, '29984f161788784a053ed8afe51dab2d')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081128, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081128"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081128 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081128 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081128 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:05', NULL, 969081128, 'BorrowDirect', 'in_progress', '2015-02-05 17:58:05')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:05' WHERE `dispatched_services`.`id` = 1486  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081128, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081323 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081323) Redirected to http://test.host/resolve?umlaut.request_id=969081128&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 75ms (ActiveRecord: 64.9ms) DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081128 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081128 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081128 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:58:05' WHERE `dispatched_services`.`id` = 1486  (17.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011934  (17.1ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37f3cb90e583a68578df63a993ad3487' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:05', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081324, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'isbn', 1, '121212', 969081324, '121212')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081324, '37f3cb90e583a68578df63a993ad3487')  (16.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081129"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081129 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081129 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081129, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (19.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081324 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081324) Redirected to http://test.host/resolve?umlaut.request_id=969081129&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.9ms)  (0.6ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a2c1340ca3d8a21d2d4cd7db91a603c1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:05', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081325, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'title', 1, 'title', 969081325, 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'author', 1, 'au', 969081325, 'au')  (17.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081325, 'a2c1340ca3d8a21d2d4cd7db91a603c1')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:06', 969081130, '--- {}\n', 'test_holding', 'holding')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081130, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081130 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081130, 'test_bd', 'successful', '2015-02-05 17:58:06')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1487  (17.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081130 ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081130 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f1a872fef3ffcbdbf76e76b74dfdb914' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:06', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081326, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081326, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'aulast', 1, 'grimes', 969081326, 'Grimes')  (17.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081326, 'f1a872fef3ffcbdbf76e76b74dfdb914')  (17.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081131, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (17.4ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081131 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e03731248fd8c20f5b35fc96b8c5dd3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 17:58:06', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'book', 969081327, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'auinit', 1, 'eh', 969081327, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'aulast', 1, 'lenneberg', 969081327, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'title', 1, 'biological foundations of language', 969081327, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'genre', 1, 'book', 969081327, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'date', 1, '1967', 969081327, '1967')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081327, 'info:sid/google', '9e03731248fd8c20f5b35fc96b8c5dd3')  (18.1ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081132 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081132, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (17.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081132 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081132, 'test_bd', 'successful', '2015-02-05 17:58:06')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1488  (17.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081132 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f1bf6fb11e08aed3677c11437c7d19e' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 17:58:06', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081328, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'auinit', 1, 'rd', 969081328, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'aulast', 1, 'kaplan', 969081328, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'atitle', 1, 'the coming anarchy', 969081328, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'title', 1, 'the atlantic monthly', 969081328, 'The Atlantic monthly') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'volume', 1, '273', 969081328, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'issue', 1, '2', 969081328, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'date', 1, '1994', 969081328, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'spage', 1, '44', 969081328, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'issn', 1, '1072-7825', 969081328, '1072-7825')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081328, 'info:sid/google', '7f1bf6fb11e08aed3677c11437c7d19e')  (16.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081133 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081133, 'test_bd', 'successful', '2015-02-05 17:58:06')  (73.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1489  (50.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081133 ServiceResponse Exists (1.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081133 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbd401b6aecb17fae0b530b5c0af22e2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:06', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081329, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'isbn', 1, '9789810743734', 969081329, '9789810743734')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081329, 'dbd401b6aecb17fae0b530b5c0af22e2')  (17.3ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081134 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081134, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.3ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b65389028b9906eb9a11197e637cd56f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:06', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081330, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'isbn', 1, '9789810743734', 969081330, '9789810743734')  (16.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081330, 'b65389028b9906eb9a11197e637cd56f')  (18.7ms) COMMIT ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081135 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081135, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:06', 'Choose your delivery location', 969081135, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (18.3ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081135 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081135, 'test_bd', 'successful', '2015-02-05 17:58:06')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1490  (16.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081135 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f46c1d2eb5fddc88076d703a61ce95cc' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:06', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081331, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'isbn', 1, '000000000', 969081331, '000000000')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081331, 'f46c1d2eb5fddc88076d703a61ce95cc')  (17.7ms) COMMIT ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081136 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081136, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:06', 'This item is not currently available from BorrowDirect', 969081136, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081136 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081136, 'test_bd', 'successful', '2015-02-05 17:58:06')  (17.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1491  (16.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081136 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5cf2e2b79c141ccd5906999d770b602' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:06', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081332, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'isbn', 1, '9789810743734', 969081332, '9789810743734')  (17.6ms) COMMIT  (1.7ms) BEGIN SQL (2.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081332, 'c5cf2e2b79c141ccd5906999d770b602')  (19.9ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081137 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081137, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081137 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081137, 'test_bd', 'failed_temporary', '2015-02-05 17:58:07')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1492  (19.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081137 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e387ef4f9dc559ee1825d0d0e9003202' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:07', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'format', 'journal', 969081333, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'isbn', 1, '0109836413', 969081333, '0109836413')  (17.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:58:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081333, 'e387ef4f9dc559ee1825d0d0e9003202')  (17.6ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081138 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081138, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.4ms) COMMIT  (2.2ms) BEGIN SQL (3.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:07', 'This item is not currently available from BorrowDirect', 969081138, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (19.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081138 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081138, 'test_bd', 'successful', '2015-02-05 17:58:07')  (28.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1493  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081138 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb659650c93340d3cf13342688cb6a3a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:07', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'format', 'journal', 969081334, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'title', 1, 'title', 969081334, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'author', 1, 'au', 969081334, 'au')  (18.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081334, 'bb659650c93340d3cf13342688cb6a3a')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:07', 969081139, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (16.8ms) COMMIT ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081139 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081139, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081139 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081139, 'test_bd', 'successful', '2015-02-05 17:58:07')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1494  (17.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081139 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'afca11dc6ab906e0f0d7bef678f506be' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:07', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'format', 'journal', 969081335, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'title', 1, 'title', 969081335, 'title') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'author', 1, 'au', 969081335, 'au')  (16.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081335, 'afca11dc6ab906e0f0d7bef678f506be')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:07', 969081140, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (16.7ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081140 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081140 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081140, 'test_bd', 'successful', '2015-02-05 17:58:07')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1495  (17.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081140 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd50f54282e3a6d41d8d3142081567cb0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:07', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'format', 'journal', 969081336, 'journal') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'title', 1, 'title', 969081336, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'author', 1, 'au', 969081336, 'au')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081336, 'd50f54282e3a6d41d8d3142081567cb0')  (17.2ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:07', 969081141, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (16.6ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081141 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081141, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081141 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081141, 'test_bd', 'successful', '2015-02-05 17:58:07')  (22.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1496  (16.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081141 ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6139371a26f853b8a000c8551fa0616' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:53', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'format', 'journal', 969081337, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'isbn', 1, '9789810743734', 969081337, '9789810743734')  (26.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081337, 'b6139371a26f853b8a000c8551fa0616')  (21.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081142  (21.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:53', NULL, 969081142, 'test_bd', 'queued', '2015-02-05 17:58:53')  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:53' WHERE `dispatched_services`.`id` = 1497  (17.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081142 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081337) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081337) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081142) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081142) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081142 AND `dispatched_services`.`id` = 1497 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081142, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.8ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.004173s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:58:53' WHERE `dispatched_services`.`id` = 1497  (23.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081142 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081337 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081337) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081142 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (64.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081337 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081142  (18.0ms) COMMIT Completed 200 OK in 722ms (Views: 171.2ms | ActiveRecord: 178.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_With_API_use_disabled,_only_display_link -------------------------------------------------------------------------- ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:58:53 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f9549f609f93c6bdf6617b0b8db5c1b' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:53', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'format', 'book', 969081338, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'genre', 1, 'book', 969081338, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'author', 1, 'smith', 969081338, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'title', 1, 'some book', 969081338, 'Some Book')  (19.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:58:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081338, '0f9549f609f93c6bdf6617b0b8db5c1b')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081143  (16.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:53', NULL, 969081143, 'BorrowDirect', 'queued', '2015-02-05 17:58:53')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:53' WHERE `dispatched_services`.`id` = 1498  (18.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081143 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081338) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081338) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081143) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081143) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081143 AND `dispatched_services`.`id` = 1498 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081143, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1498  (17.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081143 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081338 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081338) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081143 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (38.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.4ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081338 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081143  (17.5ms) COMMIT Completed 200 OK in 293ms (Views: 56.0ms | ActiveRecord: 133.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:58:54 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '524596403dce2a5192fa78f78d1fd264' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:54', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'format', 'journal', 969081339, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'genre', 1, 'article', 969081339, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'title', 1, 'foo', 969081339, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'author', 1, 'bar', 969081339, 'bar')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:58:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081339, '524596403dce2a5192fa78f78d1fd264')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081144  (17.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:54', NULL, 969081144, 'BorrowDirect', 'queued', '2015-02-05 17:58:54')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1499  (18.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081144 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081339) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081339) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081144) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081144) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081144 AND `dispatched_services`.`id` = 1499 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1499  (16.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081144 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081339 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081339) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081144 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081339 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (0.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081144  (17.5ms) COMMIT Completed 200 OK in 236ms (Views: 19.0ms | ActiveRecord: 141.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e91fc0164f0cf142265ecc14c1b6d70' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:54', 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'format', 'book', 969081340, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'genre', 1, 'book', 969081340, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'title', 1, 'foo', 969081340, 'foo')  (21.9ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:58:54', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081340, '2e91fc0164f0cf142265ecc14c1b6d70')  (32.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081145 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:54', NULL, 969081145, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:58:54')  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1500  (31.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969081145" for 127.0.0.1 at 2015-02-05 12:58:54 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081145"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081145 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081340 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081340)  (0.8ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081145  (22.0ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081145 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081145 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081145 [["request_id", 969081145]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081340 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081340) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081145 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081145 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081340 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081145  (20.5ms) COMMIT Completed 200 OK in 85ms (Views: 18.3ms | ActiveRecord: 59.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:54 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed21fdc7ea82d77568ba5030a637dc2a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:54', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'format', 'journal', 969081341, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'isbn', 1, '9789810743734', 969081341, '9789810743734')  (17.7ms) COMMIT  (1.2ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081341, 'ed21fdc7ea82d77568ba5030a637dc2a')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081146  (19.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:54', NULL, 969081146, 'BorrowDirect', 'queued', '2015-02-05 17:58:54')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1501  (18.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081341) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081146) ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081146) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`id` = 1501 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081146, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:54', 'Choose your delivery location', 969081146, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1501  (19.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081341 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081146 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081341 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081146  (18.2ms) COMMIT Completed 200 OK in 296ms (Views: 25.4ms | ActiveRecord: 134.7ms) Started GET "/borrow_direct/BorrowDirect/969081146?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:58:55 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081146"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081146 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1501  (20.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:55', 969081146, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081341 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341) Redirected to http://www.example.com/resolve?umlaut.request_id=969081146&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 57ms (ActiveRecord: 47.1ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (2.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1501  (33.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011957  (16.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969081146&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:55 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081146", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:55-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081341 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081146  (41.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 [["request_id", 969081146]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081341 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081146 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081341 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081146  (22.4ms) COMMIT Completed 200 OK in 109ms (Views: 21.7ms | ActiveRecord: 78.4ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:58:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3af32a4add3d8572684b38920d583c2a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:55', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:55', 'format', 'journal', 969081342, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:55', 'isbn', 1, '0109836413', 969081342, '0109836413')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:58:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081342, '3af32a4add3d8572684b38920d583c2a')  (19.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081147  (18.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:55', NULL, 969081147, 'BorrowDirect', 'queued', '2015-02-05 17:58:55')  (16.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1502  (67.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081147 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081342) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081342) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081147) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081147) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (25.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081147 AND `dispatched_services`.`id` = 1502 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081147, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:55', 'This item is not currently available from BorrowDirect', 969081147, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (16.9ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1502  (17.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081147 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081342 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081342) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081147 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081342 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081147  (17.9ms) COMMIT Completed 200 OK in 337ms (Views: 20.2ms | ActiveRecord: 183.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d1ed97d6405f8000940f6397b7c7153' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:55', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:55', 'format', 'journal', 969081343, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:55', 'isbn', 1, '9789810743734', 969081343, '9789810743734')  (17.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081343, '8d1ed97d6405f8000940f6397b7c7153')  (22.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081148  (19.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:55', NULL, 969081148, 'BorrowDirect', 'queued', '2015-02-05 17:58:55')  (21.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1503  (17.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081343) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081148) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081148) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`id` = 1503 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081148, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:55', 'Choose your delivery location', 969081148, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1503  (18.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081343 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081148 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081343 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081148  (21.6ms) COMMIT Completed 200 OK in 337ms (Views: 64.1ms | ActiveRecord: 146.3ms) Started GET "/borrow_direct/BorrowDirect/969081148?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:58:55 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081148"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081148 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1503  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:55', 969081148, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (24.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081343 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343) Redirected to http://www.example.com/resolve?umlaut.request_id=969081148&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 62ms (ActiveRecord: 52.5ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1503  (18.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070011962  (18.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969081148&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:56 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081148", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:56-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081343 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081148  (17.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 [["request_id", 969081148]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081343 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081148 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081343 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081148  (31.6ms) COMMIT Completed 200 OK in 95ms (Views: 20.9ms | ActiveRecord: 63.4ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:56 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b66456aba05bc6835ced75b801dc11d1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:56', '9789810743734') SQL (1.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'format', 'journal', 969081344, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'isbn', 1, '9789810743734', 969081344, '9789810743734')  (25.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081344, 'b66456aba05bc6835ced75b801dc11d1')  (16.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081149  (17.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:56', NULL, 969081149, 'BorrowDirect', 'queued', '2015-02-05 17:58:56')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1504  (20.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081149 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081344) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081344) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081149) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081149) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081149 AND `dispatched_services`.`id` = 1504 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:56', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081149, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:56', 'Choose your delivery location', 969081149, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1504  (17.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081149 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081344 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081344) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081149 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081149 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081344 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081149  (18.2ms) COMMIT Completed 200 OK in 295ms (Views: 22.8ms | ActiveRecord: 142.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:56 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16219dc78ec54feccf6eaa4f3741fe12' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:56', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'format', 'journal', 969081345, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'isbn', 1, '9789810743734', 969081345, '9789810743734')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (2.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081345, '16219dc78ec54feccf6eaa4f3741fe12')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081150  (16.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:56', NULL, 969081150, 'BorrowDirect', 'queued', '2015-02-05 17:58:56')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1505  (17.5ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081345) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081150) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081150) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`id` = 1505 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:56', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081150, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (21.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:56', 'Choose your delivery location', 969081150, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1505  (17.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081345 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081150 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (44.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081345 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081150  (16.6ms) COMMIT Completed 200 OK in 330ms (Views: 67.9ms | ActiveRecord: 132.1ms) Started GET "/borrow_direct/BorrowDirect/969081150" for 127.0.0.1 at 2015-02-05 12:58:56 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081150"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081150 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:56', 969081150, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (17.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081345 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345) Redirected to http://www.example.com/resolve?umlaut.request_id=969081150&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 24.8ms) Started GET "/resolve?umlaut.request_id=969081150&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:56 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081150", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:56-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081345 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081150  (17.9ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 [["request_id", 969081150]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081345 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081150 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081345 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081150  (21.0ms) COMMIT Completed 200 OK in 90ms (Views: 26.7ms | ActiveRecord: 53.0ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bbee511ff4ac1d418d9eab4ddc40a90' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:56', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'format', 'journal', 969081346, 'journal') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081346, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'aulast', 1, 'grimes', 969081346, 'Grimes')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081346, '9bbee511ff4ac1d418d9eab4ddc40a90')  (18.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081151, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (19.1ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081151 ORDER BY id ASC Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1287d94832141ce2e99b1167807d4af' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 17:58:57', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'book', 969081347, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'auinit', 1, 'eh', 969081347, 'EH') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'aulast', 1, 'lenneberg', 969081347, 'Lenneberg') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'title', 1, 'biological foundations of language', 969081347, 'Biological foundations of language') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'genre', 1, 'book', 969081347, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'date', 1, '1967', 969081347, '1967')  (17.4ms) COMMIT  (1.4ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081347, 'info:sid/google', 'd1287d94832141ce2e99b1167807d4af')  (17.0ms) COMMIT ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081152 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081152, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (17.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081152 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:57', NULL, 969081152, 'test_bd', 'successful', '2015-02-05 17:58:57')  (17.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:57' WHERE `dispatched_services`.`id` = 1506  (18.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081152 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41047ea604341afec8f2760b1769fe17' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 17:58:57', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081348, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'auinit', 1, 'rd', 969081348, 'RD') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'aulast', 1, 'kaplan', 969081348, 'Kaplan') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'atitle', 1, 'the coming anarchy', 969081348, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'title', 1, 'the atlantic monthly', 969081348, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'volume', 1, '273', 969081348, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'issue', 1, '2', 969081348, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'date', 1, '1994', 969081348, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'spage', 1, '44', 969081348, '44') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'issn', 1, '1072-7825', 969081348, '1072-7825')  (17.0ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081348, 'info:sid/google', '41047ea604341afec8f2760b1769fe17')  (17.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081153 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:57', NULL, 969081153, 'test_bd', 'successful', '2015-02-05 17:58:57')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:57' WHERE `dispatched_services`.`id` = 1507  (17.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081153 ServiceResponse Exists (1.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081153 LIMIT 1 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04b648bf0526017b8e0da32ff25fa32f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:57', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081349, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'isbn', 1, '121212', 969081349, '121212')  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081349, '04b648bf0526017b8e0da32ff25fa32f')  (17.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081154"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081154 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081154 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081154  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081154, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081154\n', 'BorrowDirect', 'bd_request_status')  (18.4ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081349 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081349) Redirected to http://test.host/resolve?umlaut.request_id=969081154&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.0ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea6e48c2985baedf65e77229b007d77f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:57', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081350, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'isbn', 1, '121212', 969081350, '121212')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081350, 'ea6e48c2985baedf65e77229b007d77f')  (17.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081155, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081155"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081155 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081155 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070011971  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081155, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070011971\n', 'BorrowDirect', 'bd_request_status')  (18.5ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081350 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081350) Redirected to http://test.host/resolve?umlaut.request_id=969081155&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 73ms (ActiveRecord: 26.8ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cf0b406f1666c5a927934d2380f2acb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:57', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081351, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'isbn', 1, '121212', 969081351, '121212')  (17.7ms) COMMIT  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081351, '8cf0b406f1666c5a927934d2380f2acb')  (18.2ms) COMMIT  (0.9ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081156, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081156"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081156 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081156 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081156 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:57', NULL, 969081156, 'BorrowDirect', 'in_progress', '2015-02-05 17:58:57')  (17.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:57' WHERE `dispatched_services`.`id` = 1508  (16.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081156, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (16.9ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081351 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081351) Redirected to http://test.host/resolve?umlaut.request_id=969081156&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 79ms (ActiveRecord: 63.3ms) DispatchedService Load (5.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081156 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081156 ORDER BY id ASC DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081156 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:58:57' WHERE `dispatched_services`.`id` = 1508  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011974  (71.1ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '365d2849f87dcf6775632288552cd3cb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (47.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:57', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081352, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'isbn', 1, '121212', 969081352, '121212')  (25.2ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081352, '365d2849f87dcf6775632288552cd3cb')  (49.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081157"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081157 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081157 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081157, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (32.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081352 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081352) Redirected to http://test.host/resolve?umlaut.request_id=969081157&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 48ms (ActiveRecord: 40.1ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6240ad53b1053a8390a21c0689792243' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:58', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081353, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'isbn', 1, '9789810743734', 969081353, '9789810743734')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081353, '6240ad53b1053a8390a21c0689792243')  (17.3ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081158 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081158, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 'Choose your delivery location', 969081158, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081158 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081158, 'test_bd', 'successful', '2015-02-05 17:58:58')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1509  (17.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081158 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ca4c0e4a8f2b89159c9f0e3ef68c24d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:58', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081354, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'isbn', 1, '9789810743734', 969081354, '9789810743734')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081354, '9ca4c0e4a8f2b89159c9f0e3ef68c24d')  (16.6ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081159 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081159, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081159 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081159, 'test_bd', 'failed_temporary', '2015-02-05 17:58:58')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1510  (22.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081159 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2eeab312cf5050a6b558a4c9b43702d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:58', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081355, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'isbn', 1, '0109836413', 969081355, '0109836413')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081355, 'e2eeab312cf5050a6b558a4c9b43702d')  (17.8ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081160 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081160, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 'This item is not currently available from BorrowDirect', 969081160, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081160 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081160, 'test_bd', 'successful', '2015-02-05 17:58:58')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1511  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081160 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2fb79aeb5907ec77b0dd35f92f9dc6f7' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:58', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081356, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'isbn', 1, '000000000', 969081356, '000000000')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081356, '2fb79aeb5907ec77b0dd35f92f9dc6f7')  (18.2ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081161 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081161, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.7ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 'This item is not currently available from BorrowDirect', 969081161, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081161 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081161, 'test_bd', 'successful', '2015-02-05 17:58:58')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1512  (16.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081161  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21eeacbe39581a5db344384be153aa6e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:58', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081357, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'title', 1, 'title', 969081357, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'author', 1, 'au', 969081357, 'au')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081357, '21eeacbe39581a5db344384be153aa6e')  (17.2ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 969081162, '--- {}\n', 'test_holding', 'holding')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081162, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081162 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081162, 'test_bd', 'successful', '2015-02-05 17:58:58')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1513  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081162 ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081162 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a92a4aeb31166c6dbdfe1c02eaa73865' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:58', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081358, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'title', 1, 'title', 969081358, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'author', 1, 'au', 969081358, 'au')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081358, 'a92a4aeb31166c6dbdfe1c02eaa73865')  (19.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 969081163, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (17.2ms) COMMIT ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081163 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081163, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081163 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081163, 'test_bd', 'successful', '2015-02-05 17:58:58')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1514  (16.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081163 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8dd4d641fb7afe02fb086af5c9563db3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:58', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081359, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'title', 1, 'title', 969081359, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'author', 1, 'au', 969081359, 'au')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081359, '8dd4d641fb7afe02fb086af5c9563db3')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 969081164, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (16.6ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081164 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081164, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081164 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:59', NULL, 969081164, 'test_bd', 'successful', '2015-02-05 17:58:59')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:59' WHERE `dispatched_services`.`id` = 1515  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081164 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14d9825d92d2c6a94d74734c5c763554' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:59', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:59', 'format', 'journal', 969081360, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:59', 'title', 1, 'title', 969081360, 'title') SQL (2.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:59', 'author', 1, 'au', 969081360, 'au')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081360, '14d9825d92d2c6a94d74734c5c763554')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:59', 969081165, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (17.3ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081165 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081165 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:59', NULL, 969081165, 'test_bd', 'successful', '2015-02-05 17:58:59')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:59' WHERE `dispatched_services`.`id` = 1516  (18.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081165 ActiveRecord::SchemaMigration Load (0.6ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf2b0789ee680ee6446248ef4178ec7a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081361, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'title', 969081361, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'author', 1, 'au', 969081361, 'au')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081361, 'cf2b0789ee680ee6446248ef4178ec7a')  (18.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:37', 969081166, '--- {}\n', 'test_holding', 'holding')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081166, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081166 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081166, 'test_bd', 'successful', '2015-02-05 17:59:37')  (21.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1517  (38.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081166 ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081166 ORDER BY id ASC  (0.9ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (1.0ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '165c7002bfd1ff8d2ee6b4de3ab07cd3' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081362, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081362, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'aulast', 1, 'grimes', 969081362, 'Grimes')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081362, '165c7002bfd1ff8d2ee6b4de3ab07cd3')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081167, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (16.9ms) COMMIT ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081167 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85cabd29882ff34b9073d9cb83cc01eb' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 17:59:37', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081363, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'auinit', 1, 'rd', 969081363, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'aulast', 1, 'kaplan', 969081363, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'atitle', 1, 'the coming anarchy', 969081363, 'The coming anarchy') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'the atlantic monthly', 969081363, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'volume', 1, '273', 969081363, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'issue', 1, '2', 969081363, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'date', 1, '1994', 969081363, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'spage', 1, '44', 969081363, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'issn', 1, '1072-7825', 969081363, '1072-7825')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081363, 'info:sid/google', '85cabd29882ff34b9073d9cb83cc01eb')  (17.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081168 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081168, 'test_bd', 'successful', '2015-02-05 17:59:37')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1518  (16.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081168 ServiceResponse Exists (1.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081168 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bbe9c0080368ae2853c062f6c04cae9' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 17:59:37', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'book', 969081364, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'auinit', 1, 'eh', 969081364, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'aulast', 1, 'lenneberg', 969081364, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'biological foundations of language', 969081364, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'genre', 1, 'book', 969081364, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'date', 1, '1967', 969081364, '1967')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081364, 'info:sid/google', '1bbe9c0080368ae2853c062f6c04cae9')  (16.3ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081169 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081169, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081169 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081169, 'test_bd', 'successful', '2015-02-05 17:59:37')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1519  (17.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081169 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96b5266898a0cac5cefa008f3127a48b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081365, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'title', 969081365, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'author', 1, 'au', 969081365, 'au')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081365, '96b5266898a0cac5cefa008f3127a48b')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:37', 969081170, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (17.0ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081170 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081170, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081170 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081170, 'test_bd', 'successful', '2015-02-05 17:59:37')  (17.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1520  (19.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081170 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15a2c7393c618437198dbfee2638cd37' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081366, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'title', 969081366, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'author', 1, 'au', 969081366, 'au')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081366, '15a2c7393c618437198dbfee2638cd37')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:37', 969081171, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (18.2ms) COMMIT ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081171 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081171, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081171 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081171, 'test_bd', 'successful', '2015-02-05 17:59:37')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1521  (22.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081171 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41398d864b920f13f1e71033c10938b4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081367, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'title', 969081367, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'author', 1, 'au', 969081367, 'au')  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081367, '41398d864b920f13f1e71033c10938b4')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081172, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (17.5ms) COMMIT ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081172 ORDER BY id ASC DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081172 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:38', NULL, 969081172, 'test_bd', 'successful', '2015-02-05 17:59:38')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:38' WHERE `dispatched_services`.`id` = 1522  (17.4ms) COMMIT DispatchedService Load (3.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081172 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.8ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '822c655724c1cd8db1bd714bc31b30b6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081368, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '121212', 969081368, '121212')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081368, '822c655724c1cd8db1bd714bc31b30b6')  (17.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081173"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081173 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081173 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081173  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081173, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081173\n', 'BorrowDirect', 'bd_request_status')  (16.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081368 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081368) Redirected to http://test.host/resolve?umlaut.request_id=969081173&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 73ms (ActiveRecord: 24.7ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a30dbfb6cc582f7af8bbbe29fb4b226b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081369, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '121212', 969081369, '121212')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081369, 'a30dbfb6cc582f7af8bbbe29fb4b226b')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081174, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081174"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081174 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081174 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012000  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081174, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012000\n', 'BorrowDirect', 'bd_request_status')  (18.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081369 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081369) Redirected to http://test.host/resolve?umlaut.request_id=969081174&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.2ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '350c26b0217f2e9480dc1fb573b50aad' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081370, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '121212', 969081370, '121212')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081370, '350c26b0217f2e9480dc1fb573b50aad')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081175, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (16.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081175"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081175 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081175 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081175 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:38', NULL, 969081175, 'BorrowDirect', 'in_progress', '2015-02-05 17:59:38')  (17.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:38' WHERE `dispatched_services`.`id` = 1523  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081175, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (16.8ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081370 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081370) Redirected to http://test.host/resolve?umlaut.request_id=969081175&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 75ms (ActiveRecord: 64.6ms) DispatchedService Load (3.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081175 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081175 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081175 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:59:38' WHERE `dispatched_services`.`id` = 1523  (19.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012003  (17.3ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a7fda42b3957b23824567737ac7f7af' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081371, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '121212', 969081371, '121212')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (2.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081371, '0a7fda42b3957b23824567737ac7f7af')  (71.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081176"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081176 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081176 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081176, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (46.5ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081371 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081371) Redirected to http://test.host/resolve?umlaut.request_id=969081176&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 70ms (ActiveRecord: 62.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b4c5cf5297d4ea03df09228eee4ce58' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (5.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081372, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '9789810743734', 969081372, '9789810743734')  (35.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081372, '4b4c5cf5297d4ea03df09228eee4ce58')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081177  (17.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:38', NULL, 969081177, 'test_bd', 'queued', '2015-02-05 17:59:38')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:38' WHERE `dispatched_services`.`id` = 1524  (16.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081177 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081372) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081372) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081177) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081177) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081177 AND `dispatched_services`.`id` = 1524 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081177, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003874s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1524  (18.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081177 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081372 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081372) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081177 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081372 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)  (1.0ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081177  (17.2ms) COMMIT Completed 200 OK in 459ms (Views: 129.3ms | ActiveRecord: 154.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:59:39 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41deb603ae7f0f41af8ae4fdac94c656' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:39', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'format', 'book', 969081373, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'genre', 1, 'book', 969081373, 'book') SQL (2.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'author', 1, 'smith', 969081373, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'title', 1, 'some book', 969081373, 'Some Book')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:59:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081373, '41deb603ae7f0f41af8ae4fdac94c656')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081178  (16.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:39', NULL, 969081178, 'BorrowDirect', 'queued', '2015-02-05 17:59:39')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1525  (17.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081178 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081373) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081373) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081178) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081178) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081178 AND `dispatched_services`.`id` = 1525 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081178, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1525  (17.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081178 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081373 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081373) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081178 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081373 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081178  (17.8ms) COMMIT Completed 200 OK in 258ms (Views: 19.4ms | ActiveRecord: 136.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:59:39 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18462eb38bc95e07ebad95e8b1842e4b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:39', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'format', 'journal', 969081374, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'genre', 1, 'article', 969081374, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'title', 1, 'foo', 969081374, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'author', 1, 'bar', 969081374, 'bar')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:59:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081374, '18462eb38bc95e07ebad95e8b1842e4b')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081179  (17.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:39', NULL, 969081179, 'BorrowDirect', 'queued', '2015-02-05 17:59:39')  (16.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1526  (16.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081179 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081374) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081374) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081179) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081179) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081179 AND `dispatched_services`.`id` = 1526 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1526  (17.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081179 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081374 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081374) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081179 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081374 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081179  (17.7ms) COMMIT Completed 200 OK in 225ms (Views: 16.7ms | ActiveRecord: 130.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15d2a70ffa156ad00c51c90f8822c37a' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:39', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'format', 'book', 969081375, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'genre', 1, 'book', 969081375, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'title', 1, 'foo', 969081375, 'foo')  (16.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:59:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081375, '15d2a70ffa156ad00c51c90f8822c37a')  (20.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081180 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:39', NULL, 969081180, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:59:39')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1527  (17.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969081180" for 127.0.0.1 at 2015-02-05 12:59:39 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081180"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081180 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081375 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081375)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081180  (18.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081180 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081180 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081180 [["request_id", 969081180]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081375 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081375) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081180 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081180 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081375 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081180  (17.5ms) COMMIT Completed 200 OK in 78ms (Views: 19.2ms | ActiveRecord: 51.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e704c79b9bb322c6de61424cc348bb1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:40', '9789810743734') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'format', 'journal', 969081376, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'isbn', 1, '9789810743734', 969081376, '9789810743734')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:40', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081376, '1e704c79b9bb322c6de61424cc348bb1')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081181  (17.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181  (1.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:40', NULL, 969081181, 'BorrowDirect', 'queued', '2015-02-05 17:59:40')  (22.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1528  (19.8ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081376) ReferentValue Load (2.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081181) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081181) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`id` = 1528 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081181, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:40', 'Choose your delivery location', 969081181, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1528  (17.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081376 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081181 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (48.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (49.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081376 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081181  (19.0ms) COMMIT Completed 200 OK in 338ms (Views: 66.5ms | ActiveRecord: 142.9ms) Started GET "/borrow_direct/BorrowDirect/969081181?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:59:40 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081181"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081181 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1528  (19.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:40', 969081181, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.1ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081376 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376) Redirected to http://www.example.com/resolve?umlaut.request_id=969081181&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 45.9ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1528  (17.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012009  (17.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969081181&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:59:40 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081181", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:59:40-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081376 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081181  (18.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 [["request_id", 969081181]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081376 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081181 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081376 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081181  (17.6ms) COMMIT Completed 200 OK in 80ms (Views: 20.3ms | ActiveRecord: 50.4ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:59:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6de57e8f7d9f22560108466598cffc80' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:40', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'format', 'journal', 969081377, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'isbn', 1, '0109836413', 969081377, '0109836413')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:59:40', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081377, '6de57e8f7d9f22560108466598cffc80')  (17.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081182  (17.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:40', NULL, 969081182, 'BorrowDirect', 'queued', '2015-02-05 17:59:40')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1529  (21.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081182 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081377) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081377) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081182) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081182) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081182 AND `dispatched_services`.`id` = 1529 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081182, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:40', 'This item is not currently available from BorrowDirect', 969081182, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (18.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1529  (16.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081182 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081377 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081377) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081182 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081377 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081182  (19.3ms) COMMIT Completed 200 OK in 281ms (Views: 19.5ms | ActiveRecord: 136.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4791b9e62aa64238710605bb299b0085' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:40', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'format', 'journal', 969081378, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'isbn', 1, '9789810743734', 969081378, '9789810743734')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:40', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081378, '4791b9e62aa64238710605bb299b0085')  (19.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081183  (17.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:40', NULL, 969081183, 'BorrowDirect', 'queued', '2015-02-05 17:59:40')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1530  (18.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081378) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081183) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081183) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`id` = 1530 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081183, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:41', 'Choose your delivery location', 969081183, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1530  (23.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081378 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081183 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (44.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (47.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081378 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081183  (17.9ms) COMMIT Completed 200 OK in 340ms (Views: 64.2ms | ActiveRecord: 133.8ms) Started GET "/borrow_direct/BorrowDirect/969081183?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:59:41 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081183"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081183 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1530  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:41', 969081183, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081378 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378) Redirected to http://www.example.com/resolve?umlaut.request_id=969081183&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 60ms (ActiveRecord: 45.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1530  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012014  (18.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969081183&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:59:41 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081183", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:59:41-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081378 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081183  (16.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 [["request_id", 969081183]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081378 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081183 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081378 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081183  (17.5ms) COMMIT Completed 200 OK in 75ms (Views: 17.5ms | ActiveRecord: 48.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:41 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '606347130f28ea924cb3544aea1895dc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:41', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:41', 'format', 'journal', 969081379, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:41', 'isbn', 1, '9789810743734', 969081379, '9789810743734')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081379, '606347130f28ea924cb3544aea1895dc')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081184  (17.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:41', NULL, 969081184, 'BorrowDirect', 'queued', '2015-02-05 17:59:41')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1531  (16.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081184 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081379) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081379) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081184) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081184) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081184 AND `dispatched_services`.`id` = 1531 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081184, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:41', 'Choose your delivery location', 969081184, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1531  (17.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081184 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081379 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081379) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081184 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081184 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081379 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081184  (17.4ms) COMMIT Completed 200 OK in 277ms (Views: 22.4ms | ActiveRecord: 128.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:41 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5cf9f64e2d8466a2767ddee4117a702' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:41', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:41', 'format', 'journal', 969081380, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:41', 'isbn', 1, '9789810743734', 969081380, '9789810743734')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081380, 'd5cf9f64e2d8466a2767ddee4117a702')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081185  (18.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:41', NULL, 969081185, 'BorrowDirect', 'queued', '2015-02-05 17:59:41')  (16.3ms) COMMIT  (1.2ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1532  (16.3ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081380) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081185) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081185) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`id` = 1532 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081185, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:41', 'Choose your delivery location', 969081185, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1532  (17.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081380 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081185 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (41.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (43.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081380 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081185  (17.0ms) COMMIT Completed 200 OK in 321ms (Views: 66.9ms | ActiveRecord: 130.1ms) Started GET "/borrow_direct/BorrowDirect/969081185" for 127.0.0.1 at 2015-02-05 12:59:42 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081185"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081185 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:42', 969081185, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081380 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380) Redirected to http://www.example.com/resolve?umlaut.request_id=969081185&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.8ms) Started GET "/resolve?umlaut.request_id=969081185&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:59:42 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081185", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:59:42-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081380 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081185  (17.6ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 [["request_id", 969081185]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081380 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081185 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081380 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081185  (20.0ms) COMMIT Completed 200 OK in 83ms (Views: 22.2ms | ActiveRecord: 52.3ms) Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e898613543b84de68c3ec09a26c355d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:42', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'format', 'journal', 969081381, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'isbn', 1, '9789810743734', 969081381, '9789810743734')  (22.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081381, '9e898613543b84de68c3ec09a26c355d')  (18.4ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081186 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081186, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:42', 'Choose your delivery location', 969081186, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (17.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081186 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:42', NULL, 969081186, 'test_bd', 'successful', '2015-02-05 17:59:42')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:42' WHERE `dispatched_services`.`id` = 1533  (16.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081186 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3087b12aafb0e1c2ce548f85b2141ce2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:42', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'format', 'journal', 969081382, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'isbn', 1, '9789810743734', 969081382, '9789810743734')  (18.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081382, '3087b12aafb0e1c2ce548f85b2141ce2')  (18.4ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081187 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081187, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081187 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:42', NULL, 969081187, 'test_bd', 'failed_temporary', '2015-02-05 17:59:42')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 17:59:42' WHERE `dispatched_services`.`id` = 1534  (17.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081187 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59b3876af04aca8596d954e7fc4fa268' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:42', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'format', 'journal', 969081383, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'isbn', 1, '0109836413', 969081383, '0109836413')  (17.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:59:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081383, '59b3876af04aca8596d954e7fc4fa268')  (18.0ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081188 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081188, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:42', 'This item is not currently available from BorrowDirect', 969081188, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (16.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081188 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:42', NULL, 969081188, 'test_bd', 'successful', '2015-02-05 17:59:42')  (17.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:42' WHERE `dispatched_services`.`id` = 1535  (18.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081188 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3433bdaded790df784cf30171252deb' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:42', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'format', 'journal', 969081384, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'isbn', 1, '000000000', 969081384, '000000000')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 17:59:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081384, 'b3433bdaded790df784cf30171252deb')  (18.1ms) COMMIT ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081189 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081189, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.2ms) COMMIT  (1.0ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:42', 'This item is not currently available from BorrowDirect', 969081189, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (18.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081189 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:42', NULL, 969081189, 'test_bd', 'successful', '2015-02-05 17:59:42')  (16.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:42' WHERE `dispatched_services`.`id` = 1536  (17.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081189 ActiveRecord::SchemaMigration Load (1.3ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2144dedf0ed33cd5007b0a3f347f22f4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:26', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'format', 'journal', 969081385, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'title', 1, 'title', 969081385, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'author', 1, 'au', 969081385, 'au')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081385, '2144dedf0ed33cd5007b0a3f347f22f4')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:26', 969081190, '--- {}\n', 'test_holding', 'holding')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081190, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081190 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:26', NULL, 969081190, 'test_bd', 'successful', '2015-02-05 18:01:26')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:26' WHERE `dispatched_services`.`id` = 1537  (17.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081190 ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081190 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd18db613a825d680f8fb4c8163652f33' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:26', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'format', 'journal', 969081386, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'title', 1, 'title', 969081386, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'author', 1, 'au', 969081386, 'au')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081386, 'd18db613a825d680f8fb4c8163652f33')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:26', 969081191, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (16.8ms) COMMIT ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081191 ORDER BY id ASC DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081191 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:26', NULL, 969081191, 'test_bd', 'successful', '2015-02-05 18:01:26')  (16.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:26' WHERE `dispatched_services`.`id` = 1538  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081191 Request Load (5.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'edcf7cf1940377276c877e50cb157ada' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:26', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'format', 'journal', 969081387, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'title', 1, 'title', 969081387, 'title') SQL (2.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'author', 1, 'au', 969081387, 'au')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081387, 'edcf7cf1940377276c877e50cb157ada')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081192, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (17.1ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081192 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081192, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.0ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081192 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:27', NULL, 969081192, 'test_bd', 'successful', '2015-02-05 18:01:27')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:27' WHERE `dispatched_services`.`id` = 1539  (16.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081192 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba99e7332ed47f9228e75cc449f12fc2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:27', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081388, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'title', 1, 'title', 969081388, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'author', 1, 'au', 969081388, 'au')  (20.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081388, 'ba99e7332ed47f9228e75cc449f12fc2')  (16.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081193, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (18.1ms) COMMIT ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081193 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081193, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.7ms) COMMIT DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081193 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:27', NULL, 969081193, 'test_bd', 'successful', '2015-02-05 18:01:27')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:27' WHERE `dispatched_services`.`id` = 1540  (18.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081193 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 53ms (Views: 11.2ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.6ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f424337cb98d581082c7d81f6c883f4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081389, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '121212', 969081389, '121212')  (22.1ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081389, '4f424337cb98d581082c7d81f6c883f4')  (18.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081194"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081194 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081194 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081194  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081194, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081194\n', 'BorrowDirect', 'bd_request_status')  (18.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081389 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081389) Redirected to http://test.host/resolve?umlaut.request_id=969081194&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 44ms (ActiveRecord: 30.1ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'edfa349d4414c7bea7e397148f9ccb3c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081390, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '121212', 969081390, '121212')  (17.6ms) COMMIT  (1.3ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081390, 'edfa349d4414c7bea7e397148f9ccb3c')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081195, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081195"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081195 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081195 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012035  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081195, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012035\n', 'BorrowDirect', 'bd_request_status')  (18.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081390 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081390) Redirected to http://test.host/resolve?umlaut.request_id=969081195&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 27.0ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '379508fafd6cce4689bc0705fd30f89a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081391, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '121212', 969081391, '121212')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081391, '379508fafd6cce4689bc0705fd30f89a')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081196, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (20.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081196"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081196 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081196 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081196 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:27', NULL, 969081196, 'BorrowDirect', 'in_progress', '2015-02-05 18:01:27')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:27' WHERE `dispatched_services`.`id` = 1541  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081196, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.2ms) COMMIT Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081391 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081391) Redirected to http://test.host/resolve?umlaut.request_id=969081196&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 84ms (ActiveRecord: 70.3ms) DispatchedService Load (38.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081196 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081196 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081196 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:01:27' WHERE `dispatched_services`.`id` = 1541  (27.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012038  (19.1ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc18254ac139ddd44b81a103d1133810' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081392, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '121212', 969081392, '121212')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081392, 'dc18254ac139ddd44b81a103d1133810')  (18.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081197"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081197 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081197 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081197, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081392 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081392) Redirected to http://test.host/resolve?umlaut.request_id=969081197&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 43ms (ActiveRecord: 35.1ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fdb6b6e0f72187db10164dd4a686d4d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081393, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '9789810743734', 969081393, '9789810743734')  (21.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081393, '0fdb6b6e0f72187db10164dd4a686d4d')  (17.0ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081198 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081198, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:28', 'Choose your delivery location', 969081198, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081198 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081198, 'test_bd', 'successful', '2015-02-05 18:01:28')  (18.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1542  (19.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081198 Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1ef6534103d020ea2b78ed88d5b29df' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:28', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081394, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'isbn', 1, '0109836413', 969081394, '0109836413')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081394, 'e1ef6534103d020ea2b78ed88d5b29df')  (17.0ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081199 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081199, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:28', 'This item is not currently available from BorrowDirect', 969081199, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.1ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081199 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081199, 'test_bd', 'successful', '2015-02-05 18:01:28')  (22.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1543  (17.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081199 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b000625f76bde14a8c04a0a69695cf4' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:28', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081395, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'isbn', 1, '000000000', 969081395, '000000000')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081395, '1b000625f76bde14a8c04a0a69695cf4')  (17.2ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081200 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081200, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:28', 'This item is not currently available from BorrowDirect', 969081200, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081200 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081200, 'test_bd', 'successful', '2015-02-05 18:01:28')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1544  (16.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081200 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f6a002d9ee54d37a927e043aac803ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:28', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081396, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'isbn', 1, '9789810743734', 969081396, '9789810743734')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081396, '3f6a002d9ee54d37a927e043aac803ad')  (17.5ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081201 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081201, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081201 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081201, 'test_bd', 'failed_temporary', '2015-02-05 18:01:28')  (22.6ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1545  (17.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081201 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ef1c71c15bfe571264567f7ac92688e3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 18:01:28', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'book', 969081397, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'auinit', 1, 'eh', 969081397, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'aulast', 1, 'lenneberg', 969081397, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'title', 1, 'biological foundations of language', 969081397, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'genre', 1, 'book', 969081397, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'date', 1, '1967', 969081397, '1967')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081397, 'info:sid/google', 'ef1c71c15bfe571264567f7ac92688e3')  (19.7ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081202 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081202, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (16.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081202 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081202, 'test_bd', 'successful', '2015-02-05 18:01:28')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1546  (17.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081202 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44de3e02dc69ca126d260fc73a623ccf' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:28', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081398, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081398, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'aulast', 1, 'grimes', 969081398, 'Grimes')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081398, '44de3e02dc69ca126d260fc73a623ccf')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081203, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (17.8ms) COMMIT ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081203 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b5dc1107621817c4b27500b339356b7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 18:01:28', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081399, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'auinit', 1, 'rd', 969081399, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'aulast', 1, 'kaplan', 969081399, 'Kaplan') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'atitle', 1, 'the coming anarchy', 969081399, 'The coming anarchy') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'title', 1, 'the atlantic monthly', 969081399, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'volume', 1, '273', 969081399, '273') SQL (2.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'issue', 1, '2', 969081399, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'date', 1, '1994', 969081399, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'spage', 1, '44', 969081399, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'issn', 1, '1072-7825', 969081399, '1072-7825')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081399, 'info:sid/google', '9b5dc1107621817c4b27500b339356b7')  (17.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081204 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081204, 'test_bd', 'successful', '2015-02-05 18:01:28')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1547  (16.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081204 ServiceResponse Exists (1.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081204 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8acbf3dae4d3286aad755e21be01d668' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:28', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081400, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'isbn', 1, '9789810743734', 969081400, '9789810743734')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081400, '8acbf3dae4d3286aad755e21be01d668')  (17.0ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081205 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081205, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081205 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081205, 'test_bd', 'successful', '2015-02-05 18:01:28')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1548  (17.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081205 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3283ab62bc24987af647b7e0eb6683bb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:29', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'format', 'journal', 969081401, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'isbn', 1, '9789810743734', 969081401, '9789810743734')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (2.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081401, '3283ab62bc24987af647b7e0eb6683bb')  (17.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081206  (16.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:29', NULL, 969081206, 'test_bd', 'queued', '2015-02-05 18:01:29')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1549  (17.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081206 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081401) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081401) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081206) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081206) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081206 AND `dispatched_services`.`id` = 1549 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081206, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003119s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1549  (18.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081206 LIMIT 1 DispatchedService Load (38.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081401 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081401) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081206 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081401 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (31.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.9ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081206  (17.4ms) COMMIT Completed 200 OK in 421ms (Views: 127.7ms | ActiveRecord: 152.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 13:01:29 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb60de10baf2ae58ea8578382e55b090' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:29', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'format', 'book', 969081402, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'genre', 1, 'book', 969081402, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'author', 1, 'smith', 969081402, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'title', 1, 'some book', 969081402, 'Some Book')  (19.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 18:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081402, 'bb60de10baf2ae58ea8578382e55b090')  (17.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081207  (17.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:29', NULL, 969081207, 'BorrowDirect', 'queued', '2015-02-05 18:01:29')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1550  (17.0ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081207 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081402) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081402) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081207) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081207) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081207 AND `dispatched_services`.`id` = 1550 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081207, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1550  (24.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081207 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081402 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081402) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081207 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (6.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081402 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (10.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081207  (17.8ms) COMMIT Completed 200 OK in 273ms (Views: 20.5ms | ActiveRecord: 144.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 13:01:29 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0e531c98c7ba08bbbc6fe3e0bc26da1' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:29', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'format', 'journal', 969081403, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'genre', 1, 'article', 969081403, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'title', 1, 'foo', 969081403, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'author', 1, 'bar', 969081403, 'bar')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (2.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 18:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081403, 'a0e531c98c7ba08bbbc6fe3e0bc26da1')  (17.6ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081208  (17.3ms) COMMIT DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:29', NULL, 969081208, 'BorrowDirect', 'queued', '2015-02-05 18:01:29')  (17.4ms) COMMIT  (1.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1551  (23.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081208 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081403) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081403) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081208) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081208) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081208 AND `dispatched_services`.`id` = 1551 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1551  (16.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081208 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081403 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081403) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081208 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081403 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081208  (20.0ms) COMMIT Completed 200 OK in 241ms (Views: 16.7ms | ActiveRecord: 148.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd36461d7ddb92cb7e1c9daedfa6fb976' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:30', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'format', 'book', 969081404, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'genre', 1, 'book', 969081404, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'title', 1, 'foo', 969081404, 'foo')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 18:01:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081404, 'd36461d7ddb92cb7e1c9daedfa6fb976')  (17.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081209 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (38.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:30', NULL, 969081209, 'BorrowDirect', 'failed_fatal', '2015-02-05 18:01:30')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1552  (16.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969081209" for 127.0.0.1 at 2015-02-05 13:01:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081209"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081209 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081404 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081404)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081209  (18.1ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081209 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081209 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081209 [["request_id", 969081209]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081404 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081404) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081209 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081209 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081404 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081209  (17.8ms) COMMIT Completed 200 OK in 78ms (Views: 17.8ms | ActiveRecord: 52.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6646b407e59993701cd5af21762ef91f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:30', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'format', 'journal', 969081405, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'isbn', 1, '9789810743734', 969081405, '9789810743734')  (16.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081405, '6646b407e59993701cd5af21762ef91f')  (18.5ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081210  (19.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:30', NULL, 969081210, 'BorrowDirect', 'queued', '2015-02-05 18:01:30')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1553  (21.7ms) COMMIT Request Load (5.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081405) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081210) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081210) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`id` = 1553 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081210, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:30', 'Choose your delivery location', 969081210, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1553  (18.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.7ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 Referent Load (5.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081405 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081210 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081405 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (15.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081210  (19.2ms) COMMIT Completed 200 OK in 315ms (Views: 24.9ms | ActiveRecord: 160.2ms) Started GET "/borrow_direct/BorrowDirect/969081210?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:01:30 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081210"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081210 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1553  (44.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:30', 969081210, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (29.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081405 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405) Redirected to http://www.example.com/resolve?umlaut.request_id=969081210&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 93ms (ActiveRecord: 83.3ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1553  (38.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012054  (18.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969081210&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081210", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081405 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081210  (21.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 [["request_id", 969081210]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081405 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081210 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081405 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081210  (19.7ms) COMMIT Completed 200 OK in 87ms (Views: 21.1ms | ActiveRecord: 56.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 13:01:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '394cb4fb575cd864d2c0880661dc414f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:30', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'format', 'journal', 969081406, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'isbn', 1, '0109836413', 969081406, '0109836413')  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:01:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081406, '394cb4fb575cd864d2c0880661dc414f')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081211  (18.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211  (1.5ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:30', NULL, 969081211, 'BorrowDirect', 'queued', '2015-02-05 18:01:30')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1554  (17.3ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081211 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081406) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081406) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081211) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081211) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081211 AND `dispatched_services`.`id` = 1554 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081211, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:31', 'This item is not currently available from BorrowDirect', 969081211, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (36.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1554  (22.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081211 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081406 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081406) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081211 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081406 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081211  (18.6ms) COMMIT Completed 200 OK in 353ms (Views: 20.8ms | ActiveRecord: 139.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbfb653c01d539118c292f6970d7e8cf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:31', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:31', 'format', 'journal', 969081407, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:31', 'isbn', 1, '9789810743734', 969081407, '9789810743734')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081407, 'cbfb653c01d539118c292f6970d7e8cf')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081212  (17.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:31', NULL, 969081212, 'BorrowDirect', 'queued', '2015-02-05 18:01:31')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1555  (16.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081407) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081212) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081212) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`id` = 1555 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081212, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:31', 'Choose your delivery location', 969081212, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1555  (27.2ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081407 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081212 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081407 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081212  (18.4ms) COMMIT Completed 200 OK in 298ms (Views: 22.9ms | ActiveRecord: 134.7ms) Started GET "/borrow_direct/BorrowDirect/969081212?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:01:31 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081212"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081212 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1555  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:31', 969081212, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081407 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407) Redirected to http://www.example.com/resolve?umlaut.request_id=969081212&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 61ms (ActiveRecord: 46.8ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1555  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012059  (25.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969081212&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:31 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081212", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081407 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081212  (16.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 [["request_id", 969081212]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081407 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081212 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081407 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081212  (22.2ms) COMMIT Completed 200 OK in 81ms (Views: 18.5ms | ActiveRecord: 53.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ede681d0682a82de885c0bf4098095d3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:31', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:31', 'format', 'journal', 969081408, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:31', 'isbn', 1, '9789810743734', 969081408, '9789810743734')  (21.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081408, 'ede681d0682a82de885c0bf4098095d3')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081213  (18.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:31', NULL, 969081213, 'BorrowDirect', 'queued', '2015-02-05 18:01:31')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1556  (21.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081213 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081408) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081408) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081213) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081213) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081213 AND `dispatched_services`.`id` = 1556 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081213, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:31', 'Choose your delivery location', 969081213, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:32' WHERE `dispatched_services`.`id` = 1556  (18.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081213 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081408 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081408) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081213 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081213 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081408 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081213  (18.1ms) COMMIT Completed 200 OK in 337ms (Views: 23.0ms | ActiveRecord: 142.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc44ceaccfebbf8b6b7db28f3ae03ac8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:32', '9789810743734') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:32', 'format', 'journal', 969081409, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:32', 'isbn', 1, '9789810743734', 969081409, '9789810743734')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081409, 'fc44ceaccfebbf8b6b7db28f3ae03ac8')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081214  (18.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:32', NULL, 969081214, 'BorrowDirect', 'queued', '2015-02-05 18:01:32')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:32' WHERE `dispatched_services`.`id` = 1557  (24.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081409) ReferentValue Load (2.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081214) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081214) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (37.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`id` = 1557 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081214, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (24.7ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:32', 'Choose your delivery location', 969081214, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:32' WHERE `dispatched_services`.`id` = 1557  (19.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081409 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081214 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081409 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081214  (21.2ms) COMMIT Completed 200 OK in 322ms (Views: 21.9ms | ActiveRecord: 145.4ms) Started GET "/borrow_direct/BorrowDirect/969081214" for 127.0.0.1 at 2015-02-05 13:01:32 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081214"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081214 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:32', 969081214, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (21.8ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081409 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409) Redirected to http://www.example.com/resolve?umlaut.request_id=969081214&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.8ms) Started GET "/resolve?umlaut.request_id=969081214&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081214", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081409 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081214  (20.1ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 [["request_id", 969081214]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081409 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081214 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081409 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081214  (17.1ms) COMMIT Completed 200 OK in 83ms (Views: 21.9ms | ActiveRecord: 52.5ms)  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18efbf33241644b7c4e167a4a1350c97' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:46', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081410, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'title', 1, 'title', 969081410, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'author', 1, 'au', 969081410, 'au')  (18.0ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081410, '18efbf33241644b7c4e167a4a1350c97')  (18.0ms) COMMIT  (1.5ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:46', 969081215, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (22.7ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081215 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081215, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081215 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:46', NULL, 969081215, 'test_bd', 'successful', '2015-02-05 18:01:46')  (19.5ms) COMMIT  (1.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:46' WHERE `dispatched_services`.`id` = 1558  (18.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081215 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d39724665f431eb72c294e15276ce23' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:46', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081411, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'title', 1, 'title', 969081411, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'author', 1, 'au', 969081411, 'au')  (16.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081411, '3d39724665f431eb72c294e15276ce23')  (19.0ms) COMMIT  (4.9ms) BEGIN SQL (3.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:46', 969081216, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (18.5ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081216 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081216, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (19.7ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081216 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:46', NULL, 969081216, 'test_bd', 'successful', '2015-02-05 18:01:46')  (18.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:46' WHERE `dispatched_services`.`id` = 1559  (18.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081216 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d7cf2ec203e97d3fe7b1fd2466d73c0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:46', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081412, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'title', 1, 'title', 969081412, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'author', 1, 'au', 969081412, 'au')  (20.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081412, '5d7cf2ec203e97d3fe7b1fd2466d73c0')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:46', 969081217, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (22.3ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081217 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081217 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:46', NULL, 969081217, 'test_bd', 'successful', '2015-02-05 18:01:46')  (22.5ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:46' WHERE `dispatched_services`.`id` = 1560  (18.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081217 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '328993ca1ff267fc2b75f148812e2d65' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:46', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081413, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'isbn', 1, '9789810743734', 969081413, '9789810743734')  (25.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081413, '328993ca1ff267fc2b75f148812e2d65')  (17.6ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081218 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081218, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081218 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:46', NULL, 969081218, 'test_bd', 'failed_temporary', '2015-02-05 18:01:46')  (16.7ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 18:01:46' WHERE `dispatched_services`.`id` = 1561  (29.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081218 Request Load (2.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db3bfea0a842785f55431e3e0311eae7' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (2.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:46', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081414, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'isbn', 1, '000000000', 969081414, '000000000')  (47.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081414, 'db3bfea0a842785f55431e3e0311eae7')  (17.1ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081219 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081219, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 'This item is not currently available from BorrowDirect', 969081219, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (27.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081219 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (2.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:47', NULL, 969081219, 'test_bd', 'successful', '2015-02-05 18:01:47')  (48.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1562  (17.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081219 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90807b892f28467625f75c6d3f7c5ff9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081415, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '0109836413', 969081415, '0109836413')  (38.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081415, '90807b892f28467625f75c6d3f7c5ff9')  (17.1ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081220 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081220, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 'This item is not currently available from BorrowDirect', 969081220, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (24.7ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081220 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:47', NULL, 969081220, 'test_bd', 'successful', '2015-02-05 18:01:47')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1563  (20.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081220 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b051ac0793fe8a52b145ea7a58727beb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081416, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '9789810743734', 969081416, '9789810743734')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081416, 'b051ac0793fe8a52b145ea7a58727beb')  (18.6ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081221 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081221, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 'Choose your delivery location', 969081221, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (17.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081221 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:47', NULL, 969081221, 'test_bd', 'successful', '2015-02-05 18:01:47')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1564  (16.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081221 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec6e3b12829d38e3234bae58e0fdc696' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081417, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '121212', 969081417, '121212')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081417, 'ec6e3b12829d38e3234bae58e0fdc696')  (17.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081222"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081222 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081222 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081222  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081222, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081222\n', 'BorrowDirect', 'bd_request_status')  (17.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081417 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081417) Redirected to http://test.host/resolve?umlaut.request_id=969081222&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 71ms (ActiveRecord: 26.0ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '46374872662e080b0fb8e9a69d99214f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081418, 'journal') SQL (2.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '121212', 969081418, '121212')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081418, '46374872662e080b0fb8e9a69d99214f')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081223, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (16.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081223"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081223 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081223 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012078  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081223, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012078\n', 'BorrowDirect', 'bd_request_status')  (18.9ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081418 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081418) Redirected to http://test.host/resolve?umlaut.request_id=969081223&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 28.2ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '577174080185d0836226f6399b799707' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081419, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '121212', 969081419, '121212')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081419, '577174080185d0836226f6399b799707')  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081224, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081224"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081224 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081224 ORDER BY id ASC DispatchedService Load (6.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081224 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:47', NULL, 969081224, 'BorrowDirect', 'in_progress', '2015-02-05 18:01:47')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1565  (22.9ms) COMMIT  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081224, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.0ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081419 LIMIT 1 ReferentValue Load (5.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081419) Redirected to http://test.host/resolve?umlaut.request_id=969081224&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 93ms (ActiveRecord: 82.9ms) DispatchedService Load (3.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081224 ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081224 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081224 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1565  (28.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012081  (20.1ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '303c4836b95a7c7d313761d00761e5b6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:48', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'journal', 969081420, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'isbn', 1, '121212', 969081420, '121212')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081420, '303c4836b95a7c7d313761d00761e5b6')  (17.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081225"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081225 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081225 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:48', 969081225, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.6ms) COMMIT Referent Load (6.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081420 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081420) Redirected to http://test.host/resolve?umlaut.request_id=969081225&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 51ms (ActiveRecord: 43.6ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '01c8c77ded1bb5db676cf76d02f0fc77' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:48', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'journal', 969081421, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'isbn', 1, '9789810743734', 969081421, '9789810743734')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081421, '01c8c77ded1bb5db676cf76d02f0fc77')  (17.5ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081226 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081226, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.1ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1d8d28e09dd650d08ef505612d106ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:48', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'journal', 969081422, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'isbn', 1, '9789810743734', 969081422, '9789810743734')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081422, 'c1d8d28e09dd650d08ef505612d106ff')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081227  (20.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:48', NULL, 969081227, 'test_bd', 'queued', '2015-02-05 18:01:48')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:48' WHERE `dispatched_services`.`id` = 1566  (17.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081227 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081422) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081422) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081227) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081227) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081227 AND `dispatched_services`.`id` = 1566 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081227, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003483s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 18:01:48' WHERE `dispatched_services`.`id` = 1566  (17.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081227 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081422 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081422) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081227 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081422 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081227  (17.2ms) COMMIT Completed 200 OK in 439ms (Views: 127.5ms | ActiveRecord: 135.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 13:01:48 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ef387e08d4aa0f64ca517d85d9a9d9a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:48', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'book', 969081423, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'genre', 1, 'book', 969081423, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'author', 1, 'smith', 969081423, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'title', 1, 'some book', 969081423, 'Some Book')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 18:01:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081423, '3ef387e08d4aa0f64ca517d85d9a9d9a')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081228  (17.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:48', NULL, 969081228, 'BorrowDirect', 'queued', '2015-02-05 18:01:48')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:48' WHERE `dispatched_services`.`id` = 1567  (17.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081228 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081423) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081423) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081228) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081228) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081228 AND `dispatched_services`.`id` = 1567 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081228, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:48' WHERE `dispatched_services`.`id` = 1567  (17.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081228 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081423 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081423) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081228 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081423 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081228  (17.7ms) COMMIT Completed 200 OK in 260ms (Views: 20.3ms | ActiveRecord: 135.7ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 13:01:48 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31701dac7fff5c818f3e5ff1b4b317c4' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:48', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'journal', 969081424, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'genre', 1, 'article', 969081424, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'title', 1, 'foo', 969081424, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'author', 1, 'bar', 969081424, 'bar')  (20.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 18:01:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081424, '31701dac7fff5c818f3e5ff1b4b317c4')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081229  (17.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:49', NULL, 969081229, 'BorrowDirect', 'queued', '2015-02-05 18:01:49')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1568  (17.5ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081229 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081424) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081424) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081229) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081229) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081229 AND `dispatched_services`.`id` = 1568 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1568  (17.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081229 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081424 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081424) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081229 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081424 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081229  (18.6ms) COMMIT Completed 200 OK in 233ms (Views: 18.2ms | ActiveRecord: 136.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2858a4d42ffd3f55f22b9d8a5a87c023' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:49', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'format', 'book', 969081425, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'genre', 1, 'book', 969081425, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'title', 1, 'foo', 969081425, 'foo')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 18:01:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081425, '2858a4d42ffd3f55f22b9d8a5a87c023')  (17.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081230 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:49', NULL, 969081230, 'BorrowDirect', 'failed_fatal', '2015-02-05 18:01:49')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1569  (17.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969081230" for 127.0.0.1 at 2015-02-05 13:01:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081230"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081230 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081425 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081425)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081230  (18.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081230 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081230 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081230 [["request_id", 969081230]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081425 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081425) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081230 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081230 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081425 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081230  (19.1ms) COMMIT Completed 200 OK in 80ms (Views: 19.0ms | ActiveRecord: 53.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2db99dee1ae9159fa1b1b178dc10ae9b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:49', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'format', 'journal', 969081426, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'isbn', 1, '9789810743734', 969081426, '9789810743734')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081426, '2db99dee1ae9159fa1b1b178dc10ae9b')  (16.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081231  (17.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:49', NULL, 969081231, 'BorrowDirect', 'queued', '2015-02-05 18:01:49')  (16.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1570  (18.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081426) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081231) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081231) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`id` = 1570 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081231, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (32.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:49', 'Choose your delivery location', 969081231, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (52.2ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1570  (30.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081426 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081231 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081426 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081231  (18.0ms) COMMIT Completed 200 OK in 387ms (Views: 66.4ms | ActiveRecord: 131.3ms) Started GET "/borrow_direct/BorrowDirect/969081231?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:01:49 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081231"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081231 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1570  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:49', 969081231, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081426 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426) Redirected to http://www.example.com/resolve?umlaut.request_id=969081231&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 53ms (ActiveRecord: 44.3ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1570  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012088  (18.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969081231&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081231", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081426 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081231  (22.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 [["request_id", 969081231]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081426 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081231 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081426 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081231  (17.5ms) COMMIT Completed 200 OK in 88ms (Views: 22.3ms | ActiveRecord: 55.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 13:01:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1e5decef2e2a27593e589688b72f546' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:50', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'format', 'journal', 969081427, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'isbn', 1, '0109836413', 969081427, '0109836413')  (16.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:01:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081427, 'c1e5decef2e2a27593e589688b72f546')  (17.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081232  (17.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:50', NULL, 969081232, 'BorrowDirect', 'queued', '2015-02-05 18:01:50')  (35.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1571  (22.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081232 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081427) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081427) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081232) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081232) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081232 AND `dispatched_services`.`id` = 1571 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081232, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:50', 'This item is not currently available from BorrowDirect', 969081232, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (16.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1571  (17.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081232 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081427 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081427) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081232 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081427 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081232  (17.3ms) COMMIT Completed 200 OK in 302ms (Views: 21.2ms | ActiveRecord: 153.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dab77b99b7fc6a92a331673e84d2f072' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:50', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'format', 'journal', 969081428, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'isbn', 1, '9789810743734', 969081428, '9789810743734')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081428, 'dab77b99b7fc6a92a331673e84d2f072')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081233  (16.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:50', NULL, 969081233, 'BorrowDirect', 'queued', '2015-02-05 18:01:50')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1572  (17.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081428) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081233) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081233) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`id` = 1572 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081233, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:50', 'Choose your delivery location', 969081233, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1572  (17.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081428 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081233 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (44.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (47.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081428 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081233  (16.9ms) COMMIT Completed 200 OK in 323ms (Views: 65.0ms | ActiveRecord: 131.4ms) Started GET "/borrow_direct/BorrowDirect/969081233?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:01:50 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081233"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081233 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1572  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:50', 969081233, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081428 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428) Redirected to http://www.example.com/resolve?umlaut.request_id=969081233&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 42.7ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1572  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012093  (20.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969081233&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:50 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081233", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:50-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081428 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081233  (22.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 [["request_id", 969081233]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081428 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081233 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081428 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081233  (21.6ms) COMMIT Completed 200 OK in 89ms (Views: 19.5ms | ActiveRecord: 59.1ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '395687d96e499b66175714f82bddc0dc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (2.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:50', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'format', 'journal', 969081429, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'isbn', 1, '9789810743734', 969081429, '9789810743734')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (2.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081429, '395687d96e499b66175714f82bddc0dc')  (68.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081234  (61.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:51', NULL, 969081234, 'BorrowDirect', 'queued', '2015-02-05 18:01:51')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (37.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1573  (31.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081234 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081429) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081429) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081234) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081234) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081234 AND `dispatched_services`.`id` = 1573 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081234, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:51', 'Choose your delivery location', 969081234, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1573  (17.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081234 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081429 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081429) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081234 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081234 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081429 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081234  (18.2ms) COMMIT Completed 200 OK in 435ms (Views: 23.0ms | ActiveRecord: 282.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dcf4ef57b058217f9be64cefaf193a67' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:51', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'format', 'journal', 969081430, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'isbn', 1, '9789810743734', 969081430, '9789810743734')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081430, 'dcf4ef57b058217f9be64cefaf193a67')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081235  (16.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:51', NULL, 969081235, 'BorrowDirect', 'queued', '2015-02-05 18:01:51')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1574  (17.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081430) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081235) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081235) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`id` = 1574 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081235, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:51', 'Choose your delivery location', 969081235, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1574  (18.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081430 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081235 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (47.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081430 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081235  (17.2ms) COMMIT Completed 200 OK in 326ms (Views: 65.0ms | ActiveRecord: 133.2ms) Started GET "/borrow_direct/BorrowDirect/969081235" for 127.0.0.1 at 2015-02-05 13:01:51 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081235"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081235 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:51', 969081235, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081430 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430) Redirected to http://www.example.com/resolve?umlaut.request_id=969081235&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.6ms) Started GET "/resolve?umlaut.request_id=969081235&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:51 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081235", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:51-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081430 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081235  (17.5ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 [["request_id", 969081235]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081430 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081235 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081430 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081235  (18.5ms) COMMIT Completed 200 OK in 82ms (Views: 22.7ms | ActiveRecord: 50.5ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '958496a576f191174e28a4901c64dec9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:51', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'format', 'journal', 969081431, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081431, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'aulast', 1, 'grimes', 969081431, 'Grimes')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 18:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081431, '958496a576f191174e28a4901c64dec9')  (17.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081236, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (18.6ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081236 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ef810118a3dc97111d7a47884e446c9' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 18:01:51', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'format', 'book', 969081432, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'auinit', 1, 'eh', 969081432, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'aulast', 1, 'lenneberg', 969081432, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'title', 1, 'biological foundations of language', 969081432, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'genre', 1, 'book', 969081432, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'date', 1, '1967', 969081432, '1967')  (17.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 18:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081432, 'info:sid/google', '0ef810118a3dc97111d7a47884e446c9')  (18.1ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081237 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081237, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (18.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081237 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:51', NULL, 969081237, 'test_bd', 'successful', '2015-02-05 18:01:51')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1575  (16.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081237 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9f32ad5a768aa9430edd7a257727da8' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 18:01:52', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'format', 'journal', 969081433, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'auinit', 1, 'rd', 969081433, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'aulast', 1, 'kaplan', 969081433, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'atitle', 1, 'the coming anarchy', 969081433, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'title', 1, 'the atlantic monthly', 969081433, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'volume', 1, '273', 969081433, '273') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'issue', 1, '2', 969081433, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'date', 1, '1994', 969081433, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'spage', 1, '44', 969081433, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'issn', 1, '1072-7825', 969081433, '1072-7825')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 18:01:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081433, 'info:sid/google', 'd9f32ad5a768aa9430edd7a257727da8')  (17.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081238 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:52', NULL, 969081238, 'test_bd', 'successful', '2015-02-05 18:01:52')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:52' WHERE `dispatched_services`.`id` = 1576  (16.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081238 ServiceResponse Exists (1.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081238 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84f0ae74780412d63237f1293e95c774' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:52', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'format', 'journal', 969081434, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'title', 1, 'title', 969081434, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'author', 1, 'au', 969081434, 'au')  (17.9ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081434, '84f0ae74780412d63237f1293e95c774')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:52', 969081239, '--- {}\n', 'test_holding', 'holding')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081239, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081239 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:52', NULL, 969081239, 'test_bd', 'successful', '2015-02-05 18:01:52')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:52' WHERE `dispatched_services`.`id` = 1577  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081239 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081239 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.9ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.9ms) ROLLBACK Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '515900574401d41cd08f6b361e61d6a6' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:02', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'format', 'journal', 969081435, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'isbn', 1, '000000000', 969081435, '000000000')  (25.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 18:02:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081435, '515900574401d41cd08f6b361e61d6a6')  (17.5ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081240 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081240, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:02', 'This item is not currently available from BorrowDirect', 969081240, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081240 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:02', NULL, 969081240, 'test_bd', 'successful', '2015-02-05 18:02:02')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:02' WHERE `dispatched_services`.`id` = 1578  (16.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081240 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4cc9a730021b67a8e0179521cf35284b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:02', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'format', 'journal', 969081436, 'journal') SQL (2.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'isbn', 1, '0109836413', 969081436, '0109836413')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:02:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081436, '4cc9a730021b67a8e0179521cf35284b')  (17.2ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081241 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081241, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:02', 'This item is not currently available from BorrowDirect', 969081241, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081241 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:02', NULL, 969081241, 'test_bd', 'successful', '2015-02-05 18:02:02')  (17.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:02' WHERE `dispatched_services`.`id` = 1579  (18.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081241 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '22b1dad365378987e15b7907e12fe566' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:02', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'format', 'journal', 969081437, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'isbn', 1, '9789810743734', 969081437, '9789810743734')  (19.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081437, '22b1dad365378987e15b7907e12fe566')  (18.0ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081242 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081242, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:02', 'Choose your delivery location', 969081242, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (16.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081242 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:02', NULL, 969081242, 'test_bd', 'successful', '2015-02-05 18:02:02')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:02' WHERE `dispatched_services`.`id` = 1580  (17.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081242 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b0a439a01ab4d89d676947e8aceb2cf2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:02', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'format', 'journal', 969081438, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'isbn', 1, '9789810743734', 969081438, '9789810743734')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081438, 'b0a439a01ab4d89d676947e8aceb2cf2')  (16.5ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081243 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081243, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.8ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081243 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:02', NULL, 969081243, 'test_bd', 'failed_temporary', '2015-02-05 18:02:02')  (22.5ms) COMMIT  (0.6ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1581  (20.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081243 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c1ac1d19a0bd5bf6bd772273f1963e6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:03', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'format', 'journal', 969081439, 'journal') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'title', 1, 'title', 969081439, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'author', 1, 'au', 969081439, 'au')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:02:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081439, '4c1ac1d19a0bd5bf6bd772273f1963e6')  (17.5ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:03', 969081244, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (17.2ms) COMMIT ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081244 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081244, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081244 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:03', NULL, 969081244, 'test_bd', 'successful', '2015-02-05 18:02:03')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1582  (17.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081244 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1b35c4bc790e24507c9c48eda709cd9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:03', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'format', 'journal', 969081440, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'title', 1, 'title', 969081440, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'author', 1, 'au', 969081440, 'au')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:02:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081440, 'e1b35c4bc790e24507c9c48eda709cd9')  (16.5ms) COMMIT  (0.9ms) BEGIN SQL (0.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:03', 969081245, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (17.0ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081245 ORDER BY id ASC  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081245, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081245 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:03', NULL, 969081245, 'test_bd', 'successful', '2015-02-05 18:02:03')  (17.3ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1583  (17.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081245 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c70eb06f440ba48c037f05d9cc30115' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:03', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'format', 'journal', 969081441, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'title', 1, 'title', 969081441, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'author', 1, 'au', 969081441, 'au')  (19.4ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:02:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081441, '4c70eb06f440ba48c037f05d9cc30115')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:03', 969081246, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (17.5ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081246 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081246 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:03', NULL, 969081246, 'test_bd', 'successful', '2015-02-05 18:02:03')  (17.5ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1584  (17.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081246 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '525c595a687e264de56f49ea1459960a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:03', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'format', 'journal', 969081442, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'isbn', 1, '9789810743734', 969081442, '9789810743734')  (16.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081442, '525c595a687e264de56f49ea1459960a')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081247  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:03', NULL, 969081247, 'test_bd', 'queued', '2015-02-05 18:02:03')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1585  (17.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081247 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081442) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081442) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081247) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081247) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (25.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081247 AND `dispatched_services`.`id` = 1585 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081247, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.8ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003355s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1585  (18.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081247 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (34.9ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081442 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081442) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081247 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (97.4ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081442 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (11.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.9ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081247  (18.3ms) COMMIT Completed 200 OK in 482ms (Views: 141.7ms | ActiveRecord: 134.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 13:02:04 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e702ae0cf6084322a35b84af5fac6b11' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:04', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'format', 'book', 969081443, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'genre', 1, 'book', 969081443, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'author', 1, 'smith', 969081443, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'title', 1, 'some book', 969081443, 'Some Book')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 18:02:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081443, 'e702ae0cf6084322a35b84af5fac6b11')  (17.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081248  (17.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:04', NULL, 969081248, 'BorrowDirect', 'queued', '2015-02-05 18:02:04')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1586  (16.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081248 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081443) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081443) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081248) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081248) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081248 AND `dispatched_services`.`id` = 1586 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081248, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (17.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1586  (18.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081248 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081443 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081443) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081248 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081443 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (1.2ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081248  (17.0ms) COMMIT Completed 200 OK in 266ms (Views: 19.7ms | ActiveRecord: 144.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 13:02:04 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '574ef343c157fff977913666e134e8a3' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:04', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'format', 'journal', 969081444, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'genre', 1, 'article', 969081444, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'title', 1, 'foo', 969081444, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'author', 1, 'bar', 969081444, 'bar')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 18:02:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081444, '574ef343c157fff977913666e134e8a3')  (17.4ms) COMMIT  (1.8ms) BEGIN SQL (2.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081249  (18.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:04', NULL, 969081249, 'BorrowDirect', 'queued', '2015-02-05 18:02:04')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1587  (17.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081249 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081444) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081444) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081249) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081249) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081249 AND `dispatched_services`.`id` = 1587 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1587  (21.8ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081249 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081444 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081444) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081249 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081444 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081249  (16.6ms) COMMIT Completed 200 OK in 234ms (Views: 17.2ms | ActiveRecord: 136.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc6bf8a594d9945e935e1c4839f14168' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:04', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'format', 'book', 969081445, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'genre', 1, 'book', 969081445, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'title', 1, 'foo', 969081445, 'foo')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 18:02:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081445, 'cc6bf8a594d9945e935e1c4839f14168')  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081250 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:04', NULL, 969081250, 'BorrowDirect', 'failed_fatal', '2015-02-05 18:02:04')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1588  (16.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969081250" for 127.0.0.1 at 2015-02-05 13:02:04 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081250"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081250 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081445 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081445)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081250  (17.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081250 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081250 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081250 [["request_id", 969081250]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081445 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081445) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081250 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081250 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081445 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081250  (18.3ms) COMMIT Completed 200 OK in 119ms (Views: 19.5ms | ActiveRecord: 53.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (3.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ae7f7ad6ba97f5788b3f5e58b101581' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:04', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'format', 'journal', 969081446, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'isbn', 1, '9789810743734', 969081446, '9789810743734')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081446, '6ae7f7ad6ba97f5788b3f5e58b101581')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081251  (17.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:04', NULL, 969081251, 'BorrowDirect', 'queued', '2015-02-05 18:02:04')  (16.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1589  (18.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081446) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081251) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081251) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`id` = 1589 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081251, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:04', 'Choose your delivery location', 969081251, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1589  (17.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081446 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081251 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081446 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081251  (17.6ms) COMMIT Completed 200 OK in 289ms (Views: 24.1ms | ActiveRecord: 134.5ms) Started GET "/borrow_direct/BorrowDirect/969081251?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:02:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081251"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081251 ORDER BY id ASC DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1589  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:05', 969081251, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (16.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081446 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446) Redirected to http://www.example.com/resolve?umlaut.request_id=969081251&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 56ms (ActiveRecord: 45.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1589  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012119  (16.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969081251&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:02:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081251", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:02:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081446 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081251  (17.4ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 [["request_id", 969081251]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081446 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081251 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (3.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081446 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081251  (18.4ms) COMMIT Completed 200 OK in 84ms (Views: 20.5ms | ActiveRecord: 53.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 13:02:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f82f0ebd4b8999291647eaf03879fa9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:05', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:05', 'format', 'journal', 969081447, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:05', 'isbn', 1, '0109836413', 969081447, '0109836413')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:02:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081447, '2f82f0ebd4b8999291647eaf03879fa9')  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081252  (17.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:05', NULL, 969081252, 'BorrowDirect', 'queued', '2015-02-05 18:02:05')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1590  (18.5ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081252 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081447) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081447) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081252) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081252) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081252 AND `dispatched_services`.`id` = 1590 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081252, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:05', 'This item is not currently available from BorrowDirect', 969081252, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (18.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1590  (16.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081252 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081447 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081447) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081252 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081447 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081252  (17.4ms) COMMIT Completed 200 OK in 322ms (Views: 20.2ms | ActiveRecord: 136.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (3.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9a1525efdb7ffa5c7a4f9628d84579f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:05', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:05', 'format', 'journal', 969081448, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:05', 'isbn', 1, '9789810743734', 969081448, '9789810743734')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081448, 'f9a1525efdb7ffa5c7a4f9628d84579f')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081253  (17.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:05', NULL, 969081253, 'BorrowDirect', 'queued', '2015-02-05 18:02:05')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1591  (17.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081448) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081253) ORDER BY id ASC DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081253) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`id` = 1591 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081253, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:05', 'Choose your delivery location', 969081253, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1591  (16.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1 DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 DispatchedService Load (3.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (4.7ms) Referent Load (3.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081448 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081253 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081448 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081253  (18.1ms) COMMIT Completed 200 OK in 291ms (Views: 21.9ms | ActiveRecord: 139.8ms) Started GET "/borrow_direct/BorrowDirect/969081253?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:02:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081253"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081253 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1591  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:05', 969081253, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.4ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081448 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448) Redirected to http://www.example.com/resolve?umlaut.request_id=969081253&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 43.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1591  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012124  (18.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969081253&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:02:06 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081253", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:02:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081448 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081253  (17.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 [["request_id", 969081253]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081448 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081253 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081448 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081253  (18.3ms) COMMIT Completed 200 OK in 79ms (Views: 18.9ms | ActiveRecord: 51.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7de444ec783050df36013fd431ec3873' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:06', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'format', 'journal', 969081449, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'isbn', 1, '9789810743734', 969081449, '9789810743734')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081449, '7de444ec783050df36013fd431ec3873')  (17.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081254  (16.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:06', NULL, 969081254, 'BorrowDirect', 'queued', '2015-02-05 18:02:06')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1592  (18.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081254 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081449) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081449) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081254) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081254) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081254 AND `dispatched_services`.`id` = 1592 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081254, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (2.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:06', 'Choose your delivery location', 969081254, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1592  (16.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081254 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254 Referent Load (3.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081449 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081449) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081254 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081254 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081449 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081254  (17.3ms) COMMIT Completed 200 OK in 326ms (Views: 21.5ms | ActiveRecord: 134.6ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b287bb32a9a7807fe08aa50194466b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:06', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'format', 'journal', 969081450, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'isbn', 1, '9789810743734', 969081450, '9789810743734')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081450, '5b287bb32a9a7807fe08aa50194466b3')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081255  (18.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:06', NULL, 969081255, 'BorrowDirect', 'queued', '2015-02-05 18:02:06')  (17.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1593  (17.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1 Referent Load (3.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081450) ReferentValue Load (3.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081255) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081255) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`id` = 1593 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081255, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.9ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:06', 'Choose your delivery location', 969081255, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1593  (17.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081450 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081255 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081450 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081255  (17.6ms) COMMIT Completed 200 OK in 287ms (Views: 22.7ms | ActiveRecord: 133.3ms) Started GET "/borrow_direct/BorrowDirect/969081255" for 127.0.0.1 at 2015-02-05 13:02:06 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081255"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081255 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:06', 969081255, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.3ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081450 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450) Redirected to http://www.example.com/resolve?umlaut.request_id=969081255&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.3ms) Started GET "/resolve?umlaut.request_id=969081255&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:02:06 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081255", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:02:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081450 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081255  (17.0ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 [["request_id", 969081255]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081450 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081255 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081450 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081255  (17.9ms) COMMIT Completed 200 OK in 81ms (Views: 22.4ms | ActiveRecord: 49.8ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbd6d30ae41fb15fc25c88d19382e4c9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:06', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'format', 'journal', 969081451, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'title', 1, 'title', 969081451, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'author', 1, 'au', 969081451, 'au')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:02:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081451, 'dbd6d30ae41fb15fc25c88d19382e4c9')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081256, '--- {}\n', 'test_holding', 'holding')  (18.4ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081256, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.2ms) COMMIT DispatchedService Load (3.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081256 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:07', NULL, 969081256, 'test_bd', 'successful', '2015-02-05 18:02:07')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1594  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081256 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081256 ORDER BY id ASC Request Load (3.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f2b299d9888e998bbf4c864d75ded78' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081452, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '9789810743734', 969081452, '9789810743734')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081452, '0f2b299d9888e998bbf4c864d75ded78')  (17.5ms) COMMIT ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081257 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081257, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081257 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:07', NULL, 969081257, 'test_bd', 'successful', '2015-02-05 18:02:07')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1595  (18.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081257 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (3.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 4ms (Views: 0.2ms | ActiveRecord: 3.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ecf6844acb2e858b15361d93b0920fb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081453, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '121212', 969081453, '121212')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081453, '7ecf6844acb2e858b15361d93b0920fb')  (17.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081258"} Request Load (3.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081258 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081258 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081258  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081258, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081258\n', 'BorrowDirect', 'bd_request_status')  (17.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081453 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081453) Redirected to http://test.host/resolve?umlaut.request_id=969081258&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 28.3ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0baa7ce15e3ce9ea6d52e6741eff8ba' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081454, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '121212', 969081454, '121212')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081454, 'd0baa7ce15e3ce9ea6d52e6741eff8ba')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081259, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081259"} Request Load (3.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081259 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081259 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012134  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081259, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012134\n', 'BorrowDirect', 'bd_request_status')  (22.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081454 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081454) Redirected to http://test.host/resolve?umlaut.request_id=969081259&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 33.0ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '196f692138a7f4ec4d1f5461d5dc2d11' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081455, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '121212', 969081455, '121212')  (16.7ms) COMMIT  (0.9ms) BEGIN SQL (2.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081455, '196f692138a7f4ec4d1f5461d5dc2d11')  (16.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081260, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081260"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081260 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081260 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081260 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:07', NULL, 969081260, 'BorrowDirect', 'in_progress', '2015-02-05 18:02:07')  (21.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1596  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081260, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081455 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081455) Redirected to http://test.host/resolve?umlaut.request_id=969081260&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 83ms (ActiveRecord: 70.1ms) DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081260 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081260 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081260 ORDER BY id ASC  (1.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1596  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012137  (17.2ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6be84b7acafd1db70d28efdb4dfba438' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081456, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '121212', 969081456, '121212')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081456, '6be84b7acafd1db70d28efdb4dfba438')  (17.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081261"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081261 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081261 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081261, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.4ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081456 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081456) Redirected to http://test.host/resolve?umlaut.request_id=969081261&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 25.1ms) Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '012c01de90b3ec13ef5624b6c5a7a65e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:07', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081457, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081457, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'aulast', 1, 'grimes', 969081457, 'Grimes')  (18.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081457, '012c01de90b3ec13ef5624b6c5a7a65e')  (17.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081262, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (17.4ms) COMMIT ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081262 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b80127da8dfa870bf95092bc46046fc' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 18:02:07', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081458, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'auinit', 1, 'rd', 969081458, 'RD') SQL (2.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'aulast', 1, 'kaplan', 969081458, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'atitle', 1, 'the coming anarchy', 969081458, 'The coming anarchy') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'title', 1, 'the atlantic monthly', 969081458, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'volume', 1, '273', 969081458, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'issue', 1, '2', 969081458, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'date', 1, '1994', 969081458, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'spage', 1, '44', 969081458, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'issn', 1, '1072-7825', 969081458, '1072-7825')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081458, 'info:sid/google', '7b80127da8dfa870bf95092bc46046fc')  (18.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081263 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:07', NULL, 969081263, 'test_bd', 'successful', '2015-02-05 18:02:07')  (17.8ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1597  (17.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081263 ServiceResponse Exists (1.8ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081263 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41194249ea1d9966aa61fa75f7de6f26' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 18:02:07', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'book', 969081459, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'auinit', 1, 'eh', 969081459, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'aulast', 1, 'lenneberg', 969081459, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'title', 1, 'biological foundations of language', 969081459, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'genre', 1, 'book', 969081459, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'date', 1, '1967', 969081459, '1967')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081459, 'info:sid/google', '41194249ea1d9966aa61fa75f7de6f26')  (17.9ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081264 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081264, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (18.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081264 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:08', NULL, 969081264, 'test_bd', 'successful', '2015-02-05 18:02:08')  (17.0ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:08' WHERE `dispatched_services`.`id` = 1598  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081264 ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49af0d2423dc4faa9655e32fd071f9d8' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 18:09:31', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'format', 'book', 969081460, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'auinit', 1, 'eh', 969081460, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'aulast', 1, 'lenneberg', 969081460, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'title', 1, 'biological foundations of language', 969081460, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'genre', 1, 'book', 969081460, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'date', 1, '1967', 969081460, '1967')  (18.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 18:09:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081460, 'info:sid/google', '49af0d2423dc4faa9655e32fd071f9d8')  (18.1ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081265 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081265, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (16.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081265 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:32', NULL, 969081265, 'test_bd', 'successful', '2015-02-05 18:09:32')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1599  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081265 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81f4ba528a45d771d7b1ff44db69e138' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 18:09:32', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'format', 'journal', 969081461, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'auinit', 1, 'rd', 969081461, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'aulast', 1, 'kaplan', 969081461, 'Kaplan') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'atitle', 1, 'the coming anarchy', 969081461, 'The coming anarchy') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'title', 1, 'the atlantic monthly', 969081461, 'The Atlantic monthly') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'volume', 1, '273', 969081461, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'issue', 1, '2', 969081461, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'date', 1, '1994', 969081461, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'spage', 1, '44', 969081461, '44') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'issn', 1, '1072-7825', 969081461, '1072-7825')  (19.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 18:09:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081461, 'info:sid/google', '81f4ba528a45d771d7b1ff44db69e138')  (17.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081266 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:32', NULL, 969081266, 'test_bd', 'successful', '2015-02-05 18:09:32')  (18.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1600  (18.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081266 ServiceResponse Exists (1.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081266 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3e15f7606befaacf2b433644d460a019' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:32', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'format', 'journal', 969081462, 'journal') SQL (2.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081462, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'aulast', 1, 'grimes', 969081462, 'Grimes')  (20.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 18:09:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081462, '3e15f7606befaacf2b433644d460a019')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081267, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (16.5ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081267 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ad26a26b2c22e3424e3c45e4f9e664a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:32', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'format', 'journal', 969081463, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'title', 1, 'title', 969081463, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'author', 1, 'au', 969081463, 'au')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:09:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081463, '3ad26a26b2c22e3424e3c45e4f9e664a')  (17.9ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:32', 969081268, '--- {}\n', 'test_holding', 'holding')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081268, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081268 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:32', NULL, 969081268, 'test_bd', 'successful', '2015-02-05 18:09:32')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1601  (17.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081268 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081268 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e37db241d34cd7334355c74b226b3877' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:32', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'format', 'journal', 969081464, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'isbn', 1, '9789810743734', 969081464, '9789810743734')  (16.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081464, 'e37db241d34cd7334355c74b226b3877')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081269  (17.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:32', NULL, 969081269, 'test_bd', 'queued', '2015-02-05 18:09:32')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1602  (17.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081269 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081464) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081464) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081269) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081269) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (24.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081269 AND `dispatched_services`.`id` = 1602 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081269, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003974s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1602  (21.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081269 LIMIT 1 DispatchedService Load (4.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081464 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081464) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081269 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (35.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (38.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (93.9ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081464 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081269  (17.0ms) COMMIT Completed 200 OK in 474ms (Views: 139.7ms | ActiveRecord: 130.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 13:09:33 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '27f86710f3e360c3855cc8efde968368' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:33', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'format', 'book', 969081465, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'genre', 1, 'book', 969081465, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'author', 1, 'smith', 969081465, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'title', 1, 'some book', 969081465, 'Some Book')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 18:09:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081465, '27f86710f3e360c3855cc8efde968368')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081270  (16.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:33', NULL, 969081270, 'BorrowDirect', 'queued', '2015-02-05 18:09:33')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1603  (17.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081270 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081465) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081465) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081270) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081270) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081270 AND `dispatched_services`.`id` = 1603 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081270, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (17.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1603  (16.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081270 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081465 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081465) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081270 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081465 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081270  (19.6ms) COMMIT Completed 200 OK in 263ms (Views: 19.0ms | ActiveRecord: 145.0ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 13:09:33 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe2fce210cca5994b9efe1df52a97ac1' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:33', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'format', 'journal', 969081466, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'genre', 1, 'article', 969081466, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'title', 1, 'foo', 969081466, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'author', 1, 'bar', 969081466, 'bar')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 18:09:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081466, 'fe2fce210cca5994b9efe1df52a97ac1')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081271  (17.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:33', NULL, 969081271, 'BorrowDirect', 'queued', '2015-02-05 18:09:33')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1604  (18.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081271 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081466) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081466) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081271) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081271) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081271 AND `dispatched_services`.`id` = 1604 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1604  (17.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081271 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081466 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081466) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081271 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081466 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081271  (17.0ms) COMMIT Completed 200 OK in 228ms (Views: 18.4ms | ActiveRecord: 132.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b96edf047c5dc383a50eaa948e663483' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:33', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'format', 'book', 969081467, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'genre', 1, 'book', 969081467, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'title', 1, 'foo', 969081467, 'foo')  (17.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 18:09:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081467, 'b96edf047c5dc383a50eaa948e663483')  (16.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081272 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:33', NULL, 969081272, 'BorrowDirect', 'failed_fatal', '2015-02-05 18:09:33')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1605  (17.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969081272" for 127.0.0.1 at 2015-02-05 13:09:33 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081272"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081272 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081467 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081467)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081272  (17.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081272 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081272 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081272 [["request_id", 969081272]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081467 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081467) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081272 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081272 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081467 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081272  (19.2ms) COMMIT Completed 200 OK in 79ms (Views: 18.1ms | ActiveRecord: 53.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4cdb5a6c44cb64ed03b673fb75d0a0a5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:33', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'format', 'journal', 969081468, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'isbn', 1, '9789810743734', 969081468, '9789810743734')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081468, '4cdb5a6c44cb64ed03b673fb75d0a0a5')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081273  (17.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:33', NULL, 969081273, 'BorrowDirect', 'queued', '2015-02-05 18:09:33')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1606  (19.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081468) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081273) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081273) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`id` = 1606 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081273, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 'Choose your delivery location', 969081273, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1606  (17.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081468 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081273 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081468 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081273  (17.0ms) COMMIT Completed 200 OK in 285ms (Views: 23.5ms | ActiveRecord: 133.9ms) Started GET "/borrow_direct/BorrowDirect/969081273?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:09:34 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081273"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081273 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1606  (22.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 969081273, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081468 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468) Redirected to http://www.example.com/resolve?umlaut.request_id=969081273&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 58ms (ActiveRecord: 48.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1606  (18.2ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012149  (18.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969081273&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:09:34 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081273", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:09:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081468 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081273  (18.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 [["request_id", 969081273]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081468 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081273 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081468 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081273  (16.6ms) COMMIT Completed 200 OK in 80ms (Views: 20.1ms | ActiveRecord: 50.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 13:09:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5597f6e1e79daa62e00fd8902852d774' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:34', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:34', 'format', 'journal', 969081469, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:34', 'isbn', 1, '0109836413', 969081469, '0109836413')  (17.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:09:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081469, '5597f6e1e79daa62e00fd8902852d774')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081274  (17.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:34', NULL, 969081274, 'BorrowDirect', 'queued', '2015-02-05 18:09:34')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1607  (16.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081274 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081469) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081469) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081274) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081274) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081274 AND `dispatched_services`.`id` = 1607 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081274, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 'This item is not currently available from BorrowDirect', 969081274, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (17.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1607  (16.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081274 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081469 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081469) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081274 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081469 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081274  (20.8ms) COMMIT Completed 200 OK in 316ms (Views: 19.3ms | ActiveRecord: 132.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '823f9f63f498ec07d88ff0b9d732647c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:34', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:34', 'format', 'journal', 969081470, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:34', 'isbn', 1, '9789810743734', 969081470, '9789810743734')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081470, '823f9f63f498ec07d88ff0b9d732647c')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081275  (18.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:34', NULL, 969081275, 'BorrowDirect', 'queued', '2015-02-05 18:09:34')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1608  (18.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081470) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081275) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081275) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`id` = 1608 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081275, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 'Choose your delivery location', 969081275, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1608  (17.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081470 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081275 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081470 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081275  (17.6ms) COMMIT Completed 200 OK in 280ms (Views: 22.1ms | ActiveRecord: 131.8ms) Started GET "/borrow_direct/BorrowDirect/969081275?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:09:34 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081275"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081275 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1608  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 969081275, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081470 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470) Redirected to http://www.example.com/resolve?umlaut.request_id=969081275&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 53ms (ActiveRecord: 44.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1608  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012154  (17.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969081275&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:09:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081275", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:09:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081470 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081275  (16.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 [["request_id", 969081275]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081470 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081275 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081470 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081275  (17.1ms) COMMIT Completed 200 OK in 76ms (Views: 18.0ms | ActiveRecord: 48.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbb5093d718569b2ecda7f48a39b5252' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:35', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'format', 'journal', 969081471, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'isbn', 1, '9789810743734', 969081471, '9789810743734')  (17.6ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081471, 'cbb5093d718569b2ecda7f48a39b5252')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081276  (16.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:35', NULL, 969081276, 'BorrowDirect', 'queued', '2015-02-05 18:09:35')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1609  (17.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081276 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081471) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081471) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081276) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081276) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081276 AND `dispatched_services`.`id` = 1609 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081276, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:35', 'Choose your delivery location', 969081276, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (22.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1609  (21.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081276 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081471 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081471) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081276 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081276 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081471 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081276  (19.0ms) COMMIT Completed 200 OK in 329ms (Views: 21.3ms | ActiveRecord: 132.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0844d8117f907ae850b198ffcc30f17' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:35', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'format', 'journal', 969081472, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'isbn', 1, '9789810743734', 969081472, '9789810743734')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081472, 'a0844d8117f907ae850b198ffcc30f17')  (16.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081277  (17.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:35', NULL, 969081277, 'BorrowDirect', 'queued', '2015-02-05 18:09:35')  (19.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1610  (16.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081472) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081277) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081277) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`id` = 1610 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081277, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:35', 'Choose your delivery location', 969081277, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1610  (16.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081472 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081277 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081472 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081277  (17.4ms) COMMIT Completed 200 OK in 282ms (Views: 22.7ms | ActiveRecord: 132.5ms) Started GET "/borrow_direct/BorrowDirect/969081277" for 127.0.0.1 at 2015-02-05 13:09:35 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081277"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081277 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:35', 969081277, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (19.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081472 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472) Redirected to http://www.example.com/resolve?umlaut.request_id=969081277&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.3ms) Started GET "/resolve?umlaut.request_id=969081277&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:09:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081277", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:09:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081472 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081277  (21.6ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 [["request_id", 969081277]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081472 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081277 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081472 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081277  (17.3ms) COMMIT Completed 200 OK in 84ms (Views: 21.2ms | ActiveRecord: 54.0ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62898108fac2538e1f8d474af079af62' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:35', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'format', 'journal', 969081473, 'journal') SQL (3.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'title', 1, 'title', 969081473, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'author', 1, 'au', 969081473, 'au')  (18.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:09:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081473, '62898108fac2538e1f8d474af079af62')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:35', 969081278, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (18.2ms) COMMIT ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081278 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081278 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:35', NULL, 969081278, 'test_bd', 'successful', '2015-02-05 18:09:35')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1611  (17.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081278 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dae074baad70ba9fc2bcc42138a9bd05' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:36', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081474, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'title', 1, 'title', 969081474, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'author', 1, 'au', 969081474, 'au')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081474, 'dae074baad70ba9fc2bcc42138a9bd05')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 969081279, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (23.0ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081279 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081279, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081279 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081279, 'test_bd', 'successful', '2015-02-05 18:09:36')  (17.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1612  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081279 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80a7c8a7fcc127095cf40976ca9d551b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:36', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081475, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'title', 1, 'title', 969081475, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'author', 1, 'au', 969081475, 'au')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081475, '80a7c8a7fcc127095cf40976ca9d551b')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 969081280, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (17.6ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081280 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081280, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081280 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081280, 'test_bd', 'successful', '2015-02-05 18:09:36')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1613  (17.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081280 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96828b3c722928ea1d1532ebd7c7f971' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081476, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '9789810743734', 969081476, '9789810743734')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081476, '96828b3c722928ea1d1532ebd7c7f971')  (17.4ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081281 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081281, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081281 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081281, 'test_bd', 'successful', '2015-02-05 18:09:36')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1614  (17.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081281 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '810cb1f0ab3ad10b4ab2011f7f96a7fe' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081477, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '000000000', 969081477, '000000000')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081477, '810cb1f0ab3ad10b4ab2011f7f96a7fe')  (17.2ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081282 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081282, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.0ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 'This item is not currently available from BorrowDirect', 969081282, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (16.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081282 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081282, 'test_bd', 'successful', '2015-02-05 18:09:36')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1615  (17.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081282 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7fc93f605e571c44f0a94fed750178c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081478, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '9789810743734', 969081478, '9789810743734')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081478, 'b7fc93f605e571c44f0a94fed750178c')  (16.6ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081283 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081283, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 'Choose your delivery location', 969081283, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (18.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081283 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081283, 'test_bd', 'successful', '2015-02-05 18:09:36')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1616  (17.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081283 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59d51384dabfa0196e3857d42d0c7578' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081479, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '0109836413', 969081479, '0109836413')  (17.1ms) COMMIT  (3.4ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081479, '59d51384dabfa0196e3857d42d0c7578')  (17.4ms) COMMIT ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081284 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081284, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 'This item is not currently available from BorrowDirect', 969081284, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081284 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081284, 'test_bd', 'successful', '2015-02-05 18:09:36')  (16.7ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1617  (17.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081284 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd78d4c7ec6b7cb445db714b805fdb430' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081480, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '9789810743734', 969081480, '9789810743734')  (20.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081480, 'd78d4c7ec6b7cb445db714b805fdb430')  (18.2ms) COMMIT ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081285 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081285, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081285 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:37', NULL, 969081285, 'test_bd', 'failed_temporary', '2015-02-05 18:09:37')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 18:09:37' WHERE `dispatched_services`.`id` = 1618  (17.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081285  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.3ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04ad0c7dcd7c4bd8ca9e175b3bd0cd72' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:37', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'format', 'journal', 969081481, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'isbn', 1, '121212', 969081481, '121212')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:09:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081481, '04ad0c7dcd7c4bd8ca9e175b3bd0cd72')  (17.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081286"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081286 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081286 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081286  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081286, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081286\n', 'BorrowDirect', 'bd_request_status')  (18.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081481 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081481) Redirected to http://test.host/resolve?umlaut.request_id=969081286&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.3ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab1162d2500261d578b5d1cb0b9aae39' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:37', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'format', 'journal', 969081482, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'isbn', 1, '121212', 969081482, '121212')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:09:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081482, 'ab1162d2500261d578b5d1cb0b9aae39')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081287, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081287"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081287 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081287 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012174  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081287, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012174\n', 'BorrowDirect', 'bd_request_status')  (18.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081482 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081482) Redirected to http://test.host/resolve?umlaut.request_id=969081287&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.7ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86451673a0fd7158e484e93979b4b0a8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:37', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'format', 'journal', 969081483, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'isbn', 1, '121212', 969081483, '121212')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:09:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081483, '86451673a0fd7158e484e93979b4b0a8')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081288, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081288"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081288 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081288 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081288 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:37', NULL, 969081288, 'BorrowDirect', 'in_progress', '2015-02-05 18:09:37')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:37' WHERE `dispatched_services`.`id` = 1619  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081288, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (16.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081483 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081483) Redirected to http://test.host/resolve?umlaut.request_id=969081288&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 76ms (ActiveRecord: 66.1ms) DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081288 ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081288 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081288 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:09:37' WHERE `dispatched_services`.`id` = 1619  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012177  (18.1ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '762b4d51b5fb163a2ef3fa769cf80516' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:37', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'format', 'journal', 969081484, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'isbn', 1, '121212', 969081484, '121212')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:09:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081484, '762b4d51b5fb163a2ef3fa769cf80516')  (17.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081289"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081289 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081289 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081289, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.2ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081484 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081484) Redirected to http://test.host/resolve?umlaut.request_id=969081289&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 27.1ms) ActiveRecord::SchemaMigration Load (5.6ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (3.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23074fed200e3ec5ce8b8ae2764fe0ea' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.0ms) BEGIN SQL (3.9ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:03', 'title') SQL (5.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'format', 'journal', 969082168, 'journal') SQL (4.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'title', 1, 'title', 969082168, 'title') SQL (4.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'author', 1, 'au', 969082168, 'au')  (18.6ms) COMMIT  (4.4ms) BEGIN SQL (6.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082168, '23074fed200e3ec5ce8b8ae2764fe0ea')  (18.2ms) COMMIT  (3.9ms) BEGIN SQL (4.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:03', 969081889, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (18.2ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081889 ORDER BY id ASC DispatchedService Load (5.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081889 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (3.0ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:03', NULL, 969081889, 'test_bd', 'successful', '2015-02-11 16:08:03')  (15.4ms) COMMIT  (2.7ms) BEGIN SQL (2.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:03' WHERE `dispatched_services`.`id` = 2070  (20.4ms) COMMIT DispatchedService Load (3.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081889 Request Load (3.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '938c4aa8df0d60c16974d3c105649c21' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (3.0ms) BEGIN SQL (4.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:03', 'title') SQL (3.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'format', 'journal', 969082169, 'journal') SQL (3.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'title', 1, 'title', 969082169, 'title') SQL (3.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'author', 1, 'au', 969082169, 'au')  (16.7ms) COMMIT  (3.2ms) BEGIN SQL (4.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082169, '938c4aa8df0d60c16974d3c105649c21')  (21.7ms) COMMIT  (4.8ms) BEGIN SQL (4.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:03', 969081890, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (18.2ms) COMMIT ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081890 ORDER BY id ASC  (3.7ms) BEGIN SQL (4.8ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081890, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (19.0ms) COMMIT DispatchedService Load (4.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081890 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (3.7ms) BEGIN SQL (4.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:03', NULL, 969081890, 'test_bd', 'successful', '2015-02-11 16:08:03')  (17.7ms) COMMIT  (4.0ms) BEGIN SQL (4.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:03' WHERE `dispatched_services`.`id` = 2071  (19.0ms) COMMIT DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081890 Request Load (6.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aae53fdb824d0713a1e91f252b9795a7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.7ms) BEGIN SQL (6.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:03', 'title') SQL (4.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'format', 'journal', 969082170, 'journal') SQL (5.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'title', 1, 'title', 969082170, 'title') SQL (5.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'author', 1, 'au', 969082170, 'au')  (17.1ms) COMMIT  (3.8ms) BEGIN SQL (5.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082170, 'aae53fdb824d0713a1e91f252b9795a7')  (21.1ms) COMMIT  (5.3ms) BEGIN SQL (4.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:03', 969081891, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (15.8ms) COMMIT ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081891 ORDER BY id ASC  (3.9ms) BEGIN SQL (3.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081891, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.1ms) COMMIT DispatchedService Load (6.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081891 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (3.2ms) BEGIN SQL (3.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:03', NULL, 969081891, 'test_bd', 'successful', '2015-02-11 16:08:03')  (19.0ms) COMMIT  (3.3ms) BEGIN SQL (3.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:03' WHERE `dispatched_services`.`id` = 2072  (20.2ms) COMMIT DispatchedService Load (3.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081891 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (4.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21cf564c1fbe29a07de6ee404549aed7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (4.1ms) BEGIN SQL (5.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:04', '9789810743734') SQL (5.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:04', 'format', 'journal', 969082171, 'journal') SQL (4.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:04', 'isbn', 1, '9789810743734', 969082171, '9789810743734')  (21.9ms) COMMIT  (5.1ms) BEGIN SQL (4.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082171, '21cf564c1fbe29a07de6ee404549aed7')  (18.9ms) COMMIT  (5.1ms) BEGIN SQL (4.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081892  (18.6ms) COMMIT DispatchedService Load (5.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892  (4.4ms) BEGIN SQL (4.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:04', NULL, 969081892, 'test_bd', 'queued', '2015-02-11 16:08:04')  (19.2ms) COMMIT  (5.0ms) BEGIN SQL (4.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:04' WHERE `dispatched_services`.`id` = 2073  (18.1ms) COMMIT Request Load (5.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081892 LIMIT 1 Referent Load (4.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082171) ReferentValue Load (5.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082171) ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081892) ORDER BY id ASC DispatchedService Load (5.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081892) DispatchedService Load (6.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081892 AND `dispatched_services`.`id` = 2073 AND `dispatched_services`.`status` IN ('queued')  (5.5ms) BEGIN SQL (5.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081892, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (24.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.4ms) BEGIN SQL (5.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.034757s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 16:08:04' WHERE `dispatched_services`.`id` = 2073  (25.1ms) COMMIT Request Load (4.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081892 LIMIT 1 DispatchedService Load (5.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892 DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (7.7ms) Referent Load (5.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082171 LIMIT 1 ReferentValue Load (4.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082171) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (17.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081892 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (11.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (6.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (11.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (114.7ms) Permalink Load (5.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082171 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (19.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)  (5.1ms) BEGIN SQL (5.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081892  (18.5ms) COMMIT Completed 200 OK in 901ms (Views: 264.2ms | ActiveRecord: 236.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 11:08:04 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (5.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '076d103add42b4c6e4a8a2587991c4ca' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (4.8ms) BEGIN SQL (5.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:04', 'some book') SQL (5.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:04', 'format', 'book', 969082172, 'book') SQL (5.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:04', 'genre', 1, 'book', 969082172, 'book') SQL (3.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'author', 1, 'smith', 969082172, 'Smith') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'title', 1, 'some book', 969082172, 'Some Book')  (24.8ms) COMMIT  (2.2ms) BEGIN SQL (3.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 16:08:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082172, '076d103add42b4c6e4a8a2587991c4ca')  (22.6ms) COMMIT  (5.0ms) BEGIN SQL (5.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081893  (18.5ms) COMMIT DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893  (5.3ms) BEGIN SQL (5.8ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:05', NULL, 969081893, 'BorrowDirect', 'queued', '2015-02-11 16:08:05')  (15.0ms) COMMIT  (1.7ms) BEGIN SQL (2.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2074  (16.7ms) COMMIT Request Load (4.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081893 LIMIT 1 Referent Load (3.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082172) ReferentValue Load (3.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082172) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081893) ORDER BY id ASC DispatchedService Load (3.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081893) DispatchedService Load (4.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081893 AND `dispatched_services`.`id` = 2074 AND `dispatched_services`.`status` IN ('queued')  (4.0ms) BEGIN SQL (3.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081893, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (16.8ms) COMMIT DispatchedService Load (4.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (3.6ms) BEGIN SQL (4.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2074  (17.8ms) COMMIT Request Load (3.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081893 LIMIT 1 DispatchedService Load (4.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (5.4ms) DispatchedService Load (3.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893 Referent Load (4.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082172 LIMIT 1 ReferentValue Load (4.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082172) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (22.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081893 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (4.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082172 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (13.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (4.4ms) BEGIN SQL (5.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081893  (26.0ms) COMMIT Completed 200 OK in 460ms (Views: 23.0ms | ActiveRecord: 258.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 11:08:05 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (5.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d6fd588539f5e7b7b2abcc52ce2475e' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (5.0ms) BEGIN SQL (5.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:05', 'foo') SQL (5.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'format', 'journal', 969082173, 'journal') SQL (5.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'genre', 1, 'article', 969082173, 'article') SQL (5.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'title', 1, 'foo', 969082173, 'foo') SQL (5.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'author', 1, 'bar', 969082173, 'bar')  (32.5ms) COMMIT  (5.1ms) BEGIN SQL (5.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 16:08:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082173, '9d6fd588539f5e7b7b2abcc52ce2475e')  (20.0ms) COMMIT  (5.1ms) BEGIN SQL (5.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081894  (23.9ms) COMMIT DispatchedService Load (5.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894  (5.0ms) BEGIN SQL (6.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:05', NULL, 969081894, 'BorrowDirect', 'queued', '2015-02-11 16:08:05')  (22.9ms) COMMIT  (4.9ms) BEGIN SQL (5.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2075  (19.5ms) COMMIT Request Load (5.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081894 LIMIT 1 Referent Load (5.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082173) ReferentValue Load (5.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082173) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081894) ORDER BY id ASC DispatchedService Load (5.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081894) DispatchedService Load (6.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081894 AND `dispatched_services`.`id` = 2075 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.4ms) BEGIN SQL (5.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2075  (19.5ms) COMMIT Request Load (5.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081894 LIMIT 1 DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (6.8ms) DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894 Referent Load (5.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082173 LIMIT 1 ReferentValue Load (5.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082173) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (17.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081894 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (6.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082173 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (5.0ms) BEGIN SQL (5.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081894  (18.1ms) COMMIT Completed 200 OK in 428ms (Views: 20.3ms | ActiveRecord: 272.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (6.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cec5716750db3a0f3cb42e4c905480c8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (5.0ms) BEGIN SQL (5.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:05', 'foo') SQL (5.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'format', 'book', 969082174, 'book') SQL (5.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'genre', 1, 'book', 969082174, 'book') SQL (5.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'title', 1, 'foo', 969082174, 'foo')  (22.9ms) COMMIT  (4.8ms) BEGIN SQL (6.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 16:08:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082174, 'cec5716750db3a0f3cb42e4c905480c8')  (18.5ms) COMMIT DispatchedService Load (5.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081895 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.3ms) BEGIN SQL (5.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:05', NULL, 969081895, 'BorrowDirect', 'failed_fatal', '2015-02-11 16:08:05')  (19.0ms) COMMIT  (5.3ms) BEGIN SQL (5.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2076  (15.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969081895" for 127.0.0.1 at 2015-02-11 11:08:06 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081895"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081895 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082174 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082174)  (1.0ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081895  (37.7ms) COMMIT DispatchedService Load (4.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081895 Request Load (5.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081895 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081895 [["request_id", 969081895]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (6.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082174 LIMIT 1 ReferentValue Load (5.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082174) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (24.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081895 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081895 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (5.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082174 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (4.9ms) BEGIN SQL (5.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081895  (18.8ms) COMMIT Completed 200 OK in 149ms (Views: 27.4ms | ActiveRecord: 112.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (6.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a282bfb0e8ae8331ca993af220fc2046' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (5.0ms) BEGIN SQL (5.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:06', '9789810743734') SQL (5.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:06', 'format', 'journal', 969082175, 'journal') SQL (6.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:06', 'isbn', 1, '9789810743734', 969082175, '9789810743734')  (19.7ms) COMMIT  (5.6ms) BEGIN SQL (5.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082175, 'a282bfb0e8ae8331ca993af220fc2046')  (18.7ms) COMMIT  (4.9ms) BEGIN SQL (5.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081896  (18.5ms) COMMIT DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896  (5.0ms) BEGIN SQL (5.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:06', NULL, 969081896, 'BorrowDirect', 'queued', '2015-02-11 16:08:06')  (21.9ms) COMMIT  (5.1ms) BEGIN SQL (5.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:06' WHERE `dispatched_services`.`id` = 2077  (17.9ms) COMMIT Request Load (5.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1 Referent Load (5.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082175) ReferentValue Load (5.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175) ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081896) ORDER BY id ASC DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081896) DispatchedService Load (5.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`id` = 2077 AND `dispatched_services`.`status` IN ('queued')  (5.1ms) BEGIN SQL (6.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081896, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.2ms) COMMIT  (3.9ms) BEGIN SQL (4.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:06', 'Choose your delivery location', 969081896, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.1ms) COMMIT DispatchedService Load (4.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (3.9ms) BEGIN SQL (4.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:06' WHERE `dispatched_services`.`id` = 2077  (24.9ms) COMMIT Request Load (3.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1 DispatchedService Load (3.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (4.5ms) DispatchedService Load (3.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 Referent Load (3.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082175 LIMIT 1 ReferentValue Load (4.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (16.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081896 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (4.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (8.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (17.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (18.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (4.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082175 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (4.3ms) BEGIN SQL (4.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081896  (18.6ms) COMMIT Completed 200 OK in 526ms (Views: 37.3ms | ActiveRecord: 232.7ms) Started GET "/borrow_direct/BorrowDirect/969081896?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 11:08:06 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081896"} Request Load (4.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081896 ORDER BY id ASC DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (4.2ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 16:08:06' WHERE `dispatched_services`.`id` = 2077  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:06', 969081896, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082175 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175) Redirected to http://www.example.com/resolve?umlaut.request_id=969081896&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 65ms (ActiveRecord: 55.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 16:08:06' WHERE `dispatched_services`.`id` = 2077  (15.5ms) COMMIT  (2.2ms) BEGIN SQL (2.9ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012855  (16.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969081896&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:06 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081896", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (3.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1 Referent Load (4.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082175 LIMIT 1 ReferentValue Load (4.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175)  (4.5ms) BEGIN SQL (5.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081896  (17.9ms) COMMIT DispatchedService Load (5.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 Request Load (4.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 [["request_id", 969081896]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (5.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082175 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (12.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081896 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082175 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081896  (14.0ms) COMMIT Completed 200 OK in 112ms (Views: 25.7ms | ActiveRecord: 76.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 11:08:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8df3522b06157650a203759577ac53ee' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:07', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'format', 'journal', 969082176, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'isbn', 1, '0109836413', 969082176, '0109836413')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 16:08:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082176, '8df3522b06157650a203759577ac53ee')  (49.6ms) COMMIT  (3.4ms) BEGIN SQL (4.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081897  (62.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:07', NULL, 969081897, 'BorrowDirect', 'queued', '2015-02-11 16:08:07')  (40.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2078  (61.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081897 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082176) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082176) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081897) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081897) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081897 AND `dispatched_services`.`id` = 2078 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081897, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:07', 'This item is not currently available from BorrowDirect', 969081897, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2078  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081897 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082176 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082176) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081897 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082176 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081897  (14.6ms) COMMIT Completed 200 OK in 432ms (Views: 19.8ms | ActiveRecord: 276.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f40daf5e7b0826879e67f4630d47591' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:07', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'format', 'journal', 969082177, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'isbn', 1, '9789810743734', 969082177, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082177, '5f40daf5e7b0826879e67f4630d47591')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081898  (13.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:07', NULL, 969081898, 'BorrowDirect', 'queued', '2015-02-11 16:08:07')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2079  (13.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082177) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081898) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081898) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`id` = 2079 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081898, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:07', 'Choose your delivery location', 969081898, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2079  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082177 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081898 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082177 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081898  (14.9ms) COMMIT Completed 200 OK in 284ms (Views: 22.1ms | ActiveRecord: 109.3ms) Started GET "/borrow_direct/BorrowDirect/969081898?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 11:08:07 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081898"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081898 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2079  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:07', 969081898, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082177 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177) Redirected to http://www.example.com/resolve?umlaut.request_id=969081898&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.0ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2079  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012860  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969081898&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:07 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081898", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082177 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081898  (16.1ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 [["request_id", 969081898]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082177 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081898 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082177 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081898  (14.5ms) COMMIT Completed 200 OK in 72ms (Views: 18.5ms | ActiveRecord: 43.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a2abcade34b0df0960ef9571967f0a61' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:07', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'format', 'journal', 969082178, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'isbn', 1, '9789810743734', 969082178, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082178, 'a2abcade34b0df0960ef9571967f0a61')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081899  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:08', NULL, 969081899, 'BorrowDirect', 'queued', '2015-02-11 16:08:08')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2080  (14.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081899 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082178) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082178) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081899) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081899) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081899 AND `dispatched_services`.`id` = 2080 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081899, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 'Choose your delivery location', 969081899, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2080  (18.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081899 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082178 LIMIT 1 ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082178) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081899 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081899 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082178 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081899  (14.6ms) COMMIT Completed 200 OK in 263ms (Views: 24.6ms | ActiveRecord: 114.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '169218ee0636f57d067d2cbd0684d8f5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:08', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'format', 'journal', 969082179, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'isbn', 1, '9789810743734', 969082179, '9789810743734')  (20.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082179, '169218ee0636f57d067d2cbd0684d8f5')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081900  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:08', NULL, 969081900, 'BorrowDirect', 'queued', '2015-02-11 16:08:08')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2081  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082179) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081900) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081900) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`id` = 2081 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081900, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 'Choose your delivery location', 969081900, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2081  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082179 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081900 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082179 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081900  (14.8ms) COMMIT Completed 200 OK in 303ms (Views: 21.7ms | ActiveRecord: 118.9ms) Started GET "/borrow_direct/BorrowDirect/969081900" for 127.0.0.1 at 2015-02-11 11:08:08 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081900"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081900 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081900, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (17.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082179 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179) Redirected to http://www.example.com/resolve?umlaut.request_id=969081900&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 23.8ms) Started GET "/resolve?umlaut.request_id=969081900&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081900", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082179 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081900  (14.4ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 [["request_id", 969081900]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082179 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081900 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082179 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081900  (13.9ms) COMMIT Completed 200 OK in 74ms (Views: 22.6ms | ActiveRecord: 42.3ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7bd94c08cf535fbd23c5d16d2c209e9e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:08', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'format', 'journal', 969082180, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'title', 1, 'title', 969082180, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'author', 1, 'au', 969082180, 'au')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082180, '7bd94c08cf535fbd23c5d16d2c209e9e')  (13.9ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081901, '--- {}\n', 'test_holding', 'holding')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081901, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081901 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:08', NULL, 969081901, 'test_bd', 'successful', '2015-02-11 16:08:08')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2082  (14.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081901 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081901 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.0ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b62f1c4a479a45771502231c0f0d7519' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:08', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'format', 'journal', 969082181, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'isbn', 1, '121212', 969082181, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082181, 'b62f1c4a479a45771502231c0f0d7519')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081902"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081902 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081902 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081902  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081902, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081902\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082181 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082181) Redirected to http://test.host/resolve?umlaut.request_id=969081902&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 28ms (ActiveRecord: 21.1ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a93624be567ae3d2299715606e59b9e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:08', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'format', 'journal', 969082182, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'isbn', 1, '121212', 969082182, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082182, '1a93624be567ae3d2299715606e59b9e')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081903, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081903"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081903 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081903 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012869  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081903, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012869\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082182 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082182) Redirected to http://test.host/resolve?umlaut.request_id=969081903&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 28ms (ActiveRecord: 21.7ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c51af764a66d8f33a87d50f83dee5e66' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:08', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082183, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '121212', 969082183, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082183, 'c51af764a66d8f33a87d50f83dee5e66')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:09', 969081904, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081904"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081904 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081904 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081904, 'BorrowDirect', 'in_progress', '2015-02-11 16:08:09')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2083  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:09', 969081904, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082183 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082183) Redirected to http://test.host/resolve?umlaut.request_id=969081904&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 65ms (ActiveRecord: 54.7ms) DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081904 ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081904 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2083  (15.2ms) COMMIT  (1.9ms) BEGIN SQL (3.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012872  (17.7ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (5.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c53c200474125a0dd6df47a338f432d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (5.0ms) BEGIN SQL (4.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:09', '121212') SQL (4.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082184, 'journal') SQL (4.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '121212', 969082184, '121212')  (17.7ms) COMMIT  (3.9ms) BEGIN SQL (4.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082184, '0c53c200474125a0dd6df47a338f432d')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081905"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081905 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081905 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:09', 969081905, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082184 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082184) Redirected to http://test.host/resolve?umlaut.request_id=969081905&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.2ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fdb0fcea04b33580e0d167c133362e6a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:09', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082185, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082185, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'aulast', 1, 'grimes', 969082185, 'Grimes')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082185, 'fdb0fcea04b33580e0d167c133362e6a')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081906, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (13.8ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081906 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2c37bf17b90a17c69ed0ee80f733256' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 16:08:09', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'book', 969082186, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'auinit', 1, 'eh', 969082186, 'EH') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'aulast', 1, 'lenneberg', 969082186, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'title', 1, 'biological foundations of language', 969082186, 'Biological foundations of language') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'genre', 1, 'book', 969082186, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'date', 1, '1967', 969082186, '1967')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082186, 'info:sid/google', 'b2c37bf17b90a17c69ed0ee80f733256')  (14.2ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081907 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081907, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081907 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081907, 'test_bd', 'successful', '2015-02-11 16:08:09')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2084  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081907 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '762d776a4aeff9f94551007dd70c2ad7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 16:08:09', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082187, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'auinit', 1, 'rd', 969082187, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'aulast', 1, 'kaplan', 969082187, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'atitle', 1, 'the coming anarchy', 969082187, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'title', 1, 'the atlantic monthly', 969082187, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'volume', 1, '273', 969082187, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'issue', 1, '2', 969082187, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'date', 1, '1994', 969082187, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'spage', 1, '44', 969082187, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'issn', 1, '1072-7825', 969082187, '1072-7825')  (15.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082187, 'info:sid/google', '762d776a4aeff9f94551007dd70c2ad7')  (22.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081908 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081908, 'test_bd', 'successful', '2015-02-11 16:08:09')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2085  (13.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081908 ServiceResponse Exists (1.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081908 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '994886e237c689339f1d21979df8af3e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:09', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082188, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '9789810743734', 969082188, '9789810743734')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082188, '994886e237c689339f1d21979df8af3e')  (14.0ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081909 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081909, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081909 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081909, 'test_bd', 'successful', '2015-02-11 16:08:09')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2086  (14.1ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081909  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db2899bd3449e2e78f27b5544bf0b606' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:09', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082189, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '9789810743734', 969082189, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082189, 'db2899bd3449e2e78f27b5544bf0b606')  (15.0ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081910 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081910, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:09', 'Choose your delivery location', 969081910, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081910 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081910, 'test_bd', 'successful', '2015-02-11 16:08:09')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2087  (13.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081910 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b0ee8d810ec0408e16962da925b65bf' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:09', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082190, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '0109836413', 969082190, '0109836413')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082190, '4b0ee8d810ec0408e16962da925b65bf')  (13.9ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081911 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081911, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.6ms) COMMIT  (3.6ms) BEGIN SQL (4.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:10', 'This item is not currently available from BorrowDirect', 969081911, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (18.5ms) COMMIT DispatchedService Load (5.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081911 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (4.9ms) BEGIN SQL (5.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:10', NULL, 969081911, 'test_bd', 'successful', '2015-02-11 16:08:10')  (18.6ms) COMMIT  (5.1ms) BEGIN SQL (4.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:10' WHERE `dispatched_services`.`id` = 2088  (18.6ms) COMMIT DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081911 Request Load (5.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d3712ff41e8771563e2f04c3694b62e' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.4ms) BEGIN SQL (4.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:10', '000000000') SQL (5.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:10', 'format', 'journal', 969082191, 'journal') SQL (4.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:10', 'isbn', 1, '000000000', 969082191, '000000000')  (17.7ms) COMMIT  (5.1ms) BEGIN SQL (5.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 16:08:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082191, '8d3712ff41e8771563e2f04c3694b62e')  (18.4ms) COMMIT ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081912 ORDER BY id ASC  (4.2ms) BEGIN SQL (4.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081912, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.4ms) COMMIT  (5.8ms) BEGIN SQL (5.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:10', 'This item is not currently available from BorrowDirect', 969081912, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (20.0ms) COMMIT DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081912 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.0ms) BEGIN SQL (5.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:10', NULL, 969081912, 'test_bd', 'successful', '2015-02-11 16:08:10')  (19.0ms) COMMIT  (5.0ms) BEGIN SQL (5.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:10' WHERE `dispatched_services`.`id` = 2089  (18.6ms) COMMIT DispatchedService Load (5.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081912 Request Load (5.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dff88c75957265186fa1f3234a285860' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (5.7ms) BEGIN SQL (5.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:10', '9789810743734') SQL (5.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:10', 'format', 'journal', 969082192, 'journal') SQL (4.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:10', 'isbn', 1, '9789810743734', 969082192, '9789810743734')  (18.9ms) COMMIT  (4.1ms) BEGIN SQL (5.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082192, 'dff88c75957265186fa1f3234a285860')  (18.5ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081913 ORDER BY id ASC  (4.5ms) BEGIN SQL (2.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081913, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (3.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081913 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (2.5ms) BEGIN SQL (3.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:10', NULL, 969081913, 'test_bd', 'failed_temporary', '2015-02-11 16:08:10')  (18.1ms) COMMIT  (4.4ms) BEGIN SQL (5.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 16:08:10' WHERE `dispatched_services`.`id` = 2090  (19.2ms) COMMIT DispatchedService Load (5.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081913 ActiveRecord::SchemaMigration Load (5.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 49ms (Views: 39.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (5.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 51ms (Views: 0.4ms | ActiveRecord: 22.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (5.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb0cc9cef4bcd15f0a51ea5f6853951f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (5.1ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:23', '121212') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082193, 'journal') SQL (2.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'isbn', 1, '121212', 969082193, '121212')  (15.4ms) COMMIT  (2.3ms) BEGIN SQL (2.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082193, 'fb0cc9cef4bcd15f0a51ea5f6853951f')  (18.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081914"} Request Load (4.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081914 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081914 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081914  (4.5ms) BEGIN SQL (5.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081914, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081914\n', 'BorrowDirect', 'bd_request_status')  (20.3ms) COMMIT Referent Load (5.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082193 LIMIT 1 ReferentValue Load (5.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082193) Redirected to http://test.host/resolve?umlaut.request_id=969081914&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 124ms (ActiveRecord: 67.8ms) Request Load (5.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4063402fc3943665dfbda86d6bb0ddb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.6ms) BEGIN SQL (5.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:23', '121212') SQL (5.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082194, 'journal') SQL (5.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'isbn', 1, '121212', 969082194, '121212')  (18.1ms) COMMIT  (4.5ms) BEGIN SQL (5.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082194, 'e4063402fc3943665dfbda86d6bb0ddb')  (22.4ms) COMMIT  (4.8ms) BEGIN SQL (5.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081915, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (19.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081915"} Request Load (5.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081915 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081915 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012885  (4.5ms) BEGIN SQL (5.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081915, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012885\n', 'BorrowDirect', 'bd_request_status')  (21.4ms) COMMIT Referent Load (4.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082194 LIMIT 1 ReferentValue Load (4.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082194) Redirected to http://test.host/resolve?umlaut.request_id=969081915&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 58ms (ActiveRecord: 51.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (5.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca0a444044961c0a25caf8244783816c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.8ms) BEGIN SQL (5.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:23', '121212') SQL (5.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082195, 'journal') SQL (5.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'isbn', 1, '121212', 969082195, '121212')  (23.5ms) COMMIT  (5.4ms) BEGIN SQL (6.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082195, 'ca0a444044961c0a25caf8244783816c')  (18.0ms) COMMIT  (5.5ms) BEGIN SQL (5.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081916, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081916"} Request Load (5.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081916 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081916 ORDER BY id ASC DispatchedService Load (5.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081916 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.4ms) BEGIN SQL (5.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:23', NULL, 969081916, 'BorrowDirect', 'in_progress', '2015-02-11 16:08:23')  (19.0ms) COMMIT  (5.4ms) BEGIN SQL (5.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:23' WHERE `dispatched_services`.`id` = 2091  (19.2ms) COMMIT  (4.8ms) BEGIN SQL (5.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081916, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.2ms) COMMIT Referent Load (4.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082195 LIMIT 1 ReferentValue Load (5.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082195) Redirected to http://test.host/resolve?umlaut.request_id=969081916&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 154ms (ActiveRecord: 133.3ms) DispatchedService Load (10.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081916 ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081916 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081916 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.3ms) BEGIN SQL (5.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 16:08:23' WHERE `dispatched_services`.`id` = 2091  (18.2ms) COMMIT  (5.0ms) BEGIN SQL (5.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012888  (18.8ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (5.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '741d2da25291cd8ea70bcfb359162997' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (5.1ms) BEGIN SQL (5.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:23', '121212') SQL (5.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082196, 'journal') SQL (5.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'isbn', 1, '121212', 969082196, '121212')  (18.2ms) COMMIT  (4.8ms) BEGIN SQL (5.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082196, '741d2da25291cd8ea70bcfb359162997')  (18.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081917"} Request Load (5.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081917 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081917 ORDER BY id ASC  (5.8ms) BEGIN SQL (5.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081917, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (19.3ms) COMMIT Referent Load (5.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082196 LIMIT 1 ReferentValue Load (5.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082196) Redirected to http://test.host/resolve?umlaut.request_id=969081917&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 80ms (ActiveRecord: 71.7ms) Request Load (6.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c3bda0fc6d2b466d73703b6575a218c' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (5.6ms) BEGIN SQL (5.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:23', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (5.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082197, 'journal') SQL (4.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082197, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'aulast', 1, 'grimes', 969082197, 'Grimes')  (14.8ms) COMMIT  (1.4ms) BEGIN SQL (2.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 16:08:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082197, '6c3bda0fc6d2b466d73703b6575a218c')  (16.0ms) COMMIT  (3.1ms) BEGIN SQL (3.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081918, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials+of+the+new+agriculture+by+henry+jackson+waters%22+and+au%3D%22Grimes%22')  (17.9ms) COMMIT ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081918 ORDER BY id ASC Request Load (3.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91019bf2d9f70735a6f1bfdf963a2891' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (3.1ms) BEGIN SQL (3.6ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 16:08:24', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (3.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'format', 'journal', 969082198, 'journal') SQL (4.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'auinit', 1, 'rd', 969082198, 'RD') SQL (3.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'aulast', 1, 'kaplan', 969082198, 'Kaplan') SQL (4.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'atitle', 1, 'the coming anarchy', 969082198, 'The coming anarchy') SQL (4.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'title', 1, 'the atlantic monthly', 969082198, 'The Atlantic monthly') SQL (4.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'volume', 1, '273', 969082198, '273') SQL (5.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'issue', 1, '2', 969082198, '2') SQL (4.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'date', 1, '1994', 969082198, '1994') SQL (4.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'spage', 1, '44', 969082198, '44') SQL (5.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'issn', 1, '1072-7825', 969082198, '1072-7825')  (19.8ms) COMMIT  (4.6ms) BEGIN SQL (5.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 16:08:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082198, 'info:sid/google', '91019bf2d9f70735a6f1bfdf963a2891')  (18.0ms) COMMIT DispatchedService Load (5.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081919 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.1ms) BEGIN SQL (5.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:24', NULL, 969081919, 'test_bd', 'successful', '2015-02-11 16:08:24')  (18.7ms) COMMIT  (4.7ms) BEGIN SQL (38.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:24' WHERE `dispatched_services`.`id` = 2092  (18.0ms) COMMIT DispatchedService Load (5.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081919 ServiceResponse Exists (5.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081919 LIMIT 1 Request Load (5.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd932808a56079c9afb9556201d47c9a3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.7ms) BEGIN SQL (4.9ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 16:08:24', 'biological foundations of language', '1967') SQL (5.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'format', 'book', 969082199, 'book') SQL (5.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'auinit', 1, 'eh', 969082199, 'EH') SQL (4.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'aulast', 1, 'lenneberg', 969082199, 'Lenneberg') SQL (5.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'title', 1, 'biological foundations of language', 969082199, 'Biological foundations of language') SQL (4.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'genre', 1, 'book', 969082199, 'book') SQL (5.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'date', 1, '1967', 969082199, '1967')  (19.3ms) COMMIT  (4.8ms) BEGIN SQL (5.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 16:08:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082199, 'info:sid/google', 'd932808a56079c9afb9556201d47c9a3')  (18.3ms) COMMIT ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081920 ORDER BY id ASC  (4.9ms) BEGIN SQL (5.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081920, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (18.4ms) COMMIT DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081920 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.0ms) BEGIN SQL (5.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:24', NULL, 969081920, 'test_bd', 'successful', '2015-02-11 16:08:24')  (18.7ms) COMMIT  (4.7ms) BEGIN SQL (5.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:24' WHERE `dispatched_services`.`id` = 2093  (19.4ms) COMMIT DispatchedService Load (5.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081920 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (5.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eeaa6fdc2010b3df5a3afd9f995267ac' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (4.9ms) BEGIN SQL (5.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:24', '9789810743734') SQL (4.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'format', 'journal', 969082200, 'journal') SQL (4.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'isbn', 1, '9789810743734', 969082200, '9789810743734')  (18.9ms) COMMIT  (5.3ms) BEGIN SQL (5.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082200, 'eeaa6fdc2010b3df5a3afd9f995267ac')  (18.5ms) COMMIT  (4.7ms) BEGIN SQL (6.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081921  (17.8ms) COMMIT DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921  (4.6ms) BEGIN SQL (5.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:24', NULL, 969081921, 'test_bd', 'queued', '2015-02-11 16:08:24')  (18.3ms) COMMIT  (5.4ms) BEGIN SQL (6.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:24' WHERE `dispatched_services`.`id` = 2094  (18.0ms) COMMIT Request Load (5.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081921 LIMIT 1 Referent Load (6.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082200) ReferentValue Load (5.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082200) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081921) ORDER BY id ASC DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081921) DispatchedService Load (6.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081921 AND `dispatched_services`.`id` = 2094 AND `dispatched_services`.`status` IN ('queued')  (5.6ms) BEGIN SQL (5.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081921, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.6ms) BEGIN SQL (6.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.036133s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 16:08:24' WHERE `dispatched_services`.`id` = 2094  (18.7ms) COMMIT Request Load (5.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081921 LIMIT 1 DispatchedService Load (6.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921 DispatchedService Load (5.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (8.0ms) Referent Load (5.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082200 LIMIT 1 ReferentValue Load (5.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082200) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (24.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081921 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (5.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082200 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (53.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)  (4.9ms) BEGIN SQL (5.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081921  (23.0ms) COMMIT Completed 200 OK in 643ms (Views: 142.6ms | ActiveRecord: 245.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 11:08:25 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (5.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a33a43134b0488c7c40a0a6ca26e81e9' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (4.7ms) BEGIN SQL (5.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:25', 'some book') SQL (5.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'format', 'book', 969082201, 'book') SQL (5.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'genre', 1, 'book', 969082201, 'book') SQL (5.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'author', 1, 'smith', 969082201, 'Smith') SQL (5.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'title', 1, 'some book', 969082201, 'Some Book')  (18.8ms) COMMIT  (5.1ms) BEGIN SQL (5.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 16:08:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082201, 'a33a43134b0488c7c40a0a6ca26e81e9')  (18.8ms) COMMIT  (5.1ms) BEGIN SQL (5.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081922  (18.5ms) COMMIT DispatchedService Load (5.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922  (2.2ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:25', NULL, 969081922, 'BorrowDirect', 'queued', '2015-02-11 16:08:25')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:25' WHERE `dispatched_services`.`id` = 2095  (14.5ms) COMMIT Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081922 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082201) ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082201) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081922) ORDER BY id ASC DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081922) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081922 AND `dispatched_services`.`id` = 2095 AND `dispatched_services`.`status` IN ('queued')  (4.8ms) BEGIN SQL (5.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081922, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.1ms) COMMIT DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (4.7ms) BEGIN SQL (5.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:25' WHERE `dispatched_services`.`id` = 2095  (18.4ms) COMMIT Request Load (5.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081922 LIMIT 1 DispatchedService Load (5.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (6.6ms) DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922 Referent Load (5.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082201 LIMIT 1 ReferentValue Load (5.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082201) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (22.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081922 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (5.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082201 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (14.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (5.4ms) BEGIN SQL (5.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081922  (18.8ms) COMMIT Completed 200 OK in 429ms (Views: 27.5ms | ActiveRecord: 230.2ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 11:08:25 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (5.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70a8dd4f5b7f19d7e2eb0c7b9824dceb' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (5.1ms) BEGIN SQL (6.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:25', 'foo') SQL (4.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'format', 'journal', 969082202, 'journal') SQL (3.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'genre', 1, 'article', 969082202, 'article') SQL (3.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'title', 1, 'foo', 969082202, 'foo') SQL (4.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'author', 1, 'bar', 969082202, 'bar')  (19.0ms) COMMIT  (4.1ms) BEGIN SQL (4.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 16:08:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082202, '70a8dd4f5b7f19d7e2eb0c7b9824dceb')  (17.5ms) COMMIT  (4.2ms) BEGIN SQL (4.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081923  (17.3ms) COMMIT DispatchedService Load (4.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923  (3.9ms) BEGIN SQL (4.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:25', NULL, 969081923, 'BorrowDirect', 'queued', '2015-02-11 16:08:25')  (17.5ms) COMMIT  (4.5ms) BEGIN SQL (4.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:25' WHERE `dispatched_services`.`id` = 2096  (17.5ms) COMMIT Request Load (5.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081923 LIMIT 1 Referent Load (4.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082202) ReferentValue Load (5.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082202) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081923) ORDER BY id ASC DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081923) DispatchedService Load (5.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081923 AND `dispatched_services`.`id` = 2096 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (4.1ms) BEGIN SQL (5.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:25' WHERE `dispatched_services`.`id` = 2096  (18.2ms) COMMIT Request Load (5.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081923 LIMIT 1 DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (5.8ms) DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923 Referent Load (4.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082202 LIMIT 1 ReferentValue Load (4.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082202) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (23.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081923 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (5.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082202 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (4.7ms) BEGIN SQL (5.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081923  (18.8ms) COMMIT Completed 200 OK in 379ms (Views: 27.6ms | ActiveRecord: 225.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (5.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9806dbaa0f94b6f7ab4af6e833bd6acf' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.6ms) BEGIN SQL (5.6ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:26', 'foo') SQL (5.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'format', 'book', 969082203, 'book') SQL (4.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'genre', 1, 'book', 969082203, 'book') SQL (5.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'title', 1, 'foo', 969082203, 'foo')  (18.1ms) COMMIT  (4.6ms) BEGIN SQL (5.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 16:08:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082203, '9806dbaa0f94b6f7ab4af6e833bd6acf')  (19.0ms) COMMIT DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081924 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.1ms) BEGIN SQL (5.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:26', NULL, 969081924, 'BorrowDirect', 'failed_fatal', '2015-02-11 16:08:26')  (19.0ms) COMMIT  (4.9ms) BEGIN SQL (4.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2097  (18.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969081924" for 127.0.0.1 at 2015-02-11 11:08:26 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081924"} Request Load (5.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081924 LIMIT 1 Referent Load (4.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082203 LIMIT 1 ReferentValue Load (5.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082203)  (4.7ms) BEGIN SQL (5.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081924  (18.7ms) COMMIT DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081924 Request Load (5.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081924 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081924 [["request_id", 969081924]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (4.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082203 LIMIT 1 ReferentValue Load (4.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082203) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (11.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081924 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081924 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (5.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082203 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (4.5ms) BEGIN SQL (4.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081924  (18.2ms) COMMIT Completed 200 OK in 134ms (Views: 16.5ms | ActiveRecord: 108.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (5.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98914fa5eaeb928a4d3ffa15d9831cee' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (4.5ms) BEGIN SQL (5.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:26', '9789810743734') SQL (4.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'format', 'journal', 969082204, 'journal') SQL (5.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'isbn', 1, '9789810743734', 969082204, '9789810743734')  (18.8ms) COMMIT  (5.2ms) BEGIN SQL (5.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082204, '98914fa5eaeb928a4d3ffa15d9831cee')  (18.9ms) COMMIT  (5.2ms) BEGIN SQL (5.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081925  (18.7ms) COMMIT DispatchedService Load (5.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925  (5.2ms) BEGIN SQL (5.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:26', NULL, 969081925, 'BorrowDirect', 'queued', '2015-02-11 16:08:26')  (18.7ms) COMMIT  (5.0ms) BEGIN SQL (5.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2098  (17.7ms) COMMIT Request Load (5.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1 Referent Load (4.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082204) ReferentValue Load (5.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204) ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081925) ORDER BY id ASC DispatchedService Load (4.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081925) DispatchedService Load (5.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`id` = 2098 AND `dispatched_services`.`status` IN ('queued')  (4.7ms) BEGIN SQL (5.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081925, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.4ms) COMMIT  (4.5ms) BEGIN SQL (5.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:26', 'Choose your delivery location', 969081925, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.6ms) COMMIT DispatchedService Load (5.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (3.9ms) BEGIN SQL (4.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2098  (17.7ms) COMMIT Request Load (4.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1 DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (5.8ms) DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 Referent Load (4.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082204 LIMIT 1 ReferentValue Load (4.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (19.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081925 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (5.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (12.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (13.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (5.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082204 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (5.0ms) BEGIN SQL (5.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081925  (17.8ms) COMMIT Completed 200 OK in 470ms (Views: 31.8ms | ActiveRecord: 233.8ms) Started GET "/borrow_direct/BorrowDirect/969081925?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 11:08:26 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081925"} Request Load (5.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081925 ORDER BY id ASC DispatchedService Load (5.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (4.4ms) BEGIN SQL (4.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2098  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:26', 969081925, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082204 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204) Redirected to http://www.example.com/resolve?umlaut.request_id=969081925&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' Completed 303 See Other in 74ms (ActiveRecord: 58.6ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.6ms) BEGIN SQL (3.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2098  (16.9ms) COMMIT  (3.0ms) BEGIN SQL (3.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012896  (17.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969081925&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081925", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:26-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (3.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1 Referent Load (3.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082204 LIMIT 1 ReferentValue Load (3.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204)  (3.9ms) BEGIN SQL (4.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081925  (17.5ms) COMMIT DispatchedService Load (4.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 Request Load (4.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 [["request_id", 969081925]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (4.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082204 LIMIT 1 ReferentValue Load (4.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (11.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081925 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (5.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (4.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082204 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (4.7ms) BEGIN SQL (5.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081925  (18.7ms) COMMIT Completed 200 OK in 130ms (Views: 19.8ms | ActiveRecord: 100.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 11:08:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a7e624bad8c95427cf1cf3c06e7a54a5' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:27', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:27', 'format', 'journal', 969082205, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:27', 'isbn', 1, '0109836413', 969082205, '0109836413')  (14.4ms) COMMIT  (1.2ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 16:08:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082205, 'a7e624bad8c95427cf1cf3c06e7a54a5')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081926  (13.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:27', NULL, 969081926, 'BorrowDirect', 'queued', '2015-02-11 16:08:27')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2099  (14.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081926 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082205) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082205) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081926) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081926) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081926 AND `dispatched_services`.`id` = 2099 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081926, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:27', 'This item is not currently available from BorrowDirect', 969081926, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2099  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081926 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082205 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082205) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081926 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082205 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081926  (15.4ms) COMMIT Completed 200 OK in 244ms (Views: 20.4ms | ActiveRecord: 112.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f61e0d5d07781f1a43c1766602a56c5c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:27', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:27', 'format', 'journal', 969082206, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:27', 'isbn', 1, '9789810743734', 969082206, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082206, 'f61e0d5d07781f1a43c1766602a56c5c')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081927  (13.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:27', NULL, 969081927, 'BorrowDirect', 'queued', '2015-02-11 16:08:27')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2100  (13.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082206) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081927) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081927) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`id` = 2100 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081927, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:27', 'Choose your delivery location', 969081927, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (13.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2100  (60.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082206 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081927 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082206 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (15.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081927  (20.6ms) COMMIT Completed 200 OK in 309ms (Views: 21.5ms | ActiveRecord: 132.1ms) Started GET "/borrow_direct/BorrowDirect/969081927?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 11:08:27 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081927"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081927 ORDER BY id ASC DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2100  (27.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:27', 969081927, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (23.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082206 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206) Redirected to http://www.example.com/resolve?umlaut.request_id=969081927&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 119ms (ActiveRecord: 61.7ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2100  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012901  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969081927&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081927", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082206 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081927  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 [["request_id", 969081927]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082206 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081927 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082206 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081927  (14.5ms) COMMIT Completed 200 OK in 72ms (Views: 18.9ms | ActiveRecord: 43.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3990fb7d40783313c44dcfbdc0be6eaf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:28', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082207, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'isbn', 1, '9789810743734', 969082207, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082207, '3990fb7d40783313c44dcfbdc0be6eaf')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081928  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:28', NULL, 969081928, 'BorrowDirect', 'queued', '2015-02-11 16:08:28')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2101  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081928 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082207) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082207) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081928) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081928) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081928 AND `dispatched_services`.`id` = 2101 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081928, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 'Choose your delivery location', 969081928, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.8ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2101  (14.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081928 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082207 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082207) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081928 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081928 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082207 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081928  (14.4ms) COMMIT Completed 200 OK in 250ms (Views: 22.5ms | ActiveRecord: 114.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a023c30422c93a0f844c7cc6511f6b4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:28', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082208, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'isbn', 1, '9789810743734', 969082208, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082208, '1a023c30422c93a0f844c7cc6511f6b4')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081929  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:28', NULL, 969081929, 'BorrowDirect', 'queued', '2015-02-11 16:08:28')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2102  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082208) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081929) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081929) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`id` = 2102 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081929, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.2ms) COMMIT  (1.1ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 'Choose your delivery location', 969081929, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2102  (13.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082208 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081929 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.4ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082208 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081929  (14.1ms) COMMIT Completed 200 OK in 246ms (Views: 22.5ms | ActiveRecord: 111.5ms) Started GET "/borrow_direct/BorrowDirect/969081929" for 127.0.0.1 at 2015-02-11 11:08:28 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081929"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081929 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 969081929, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082208 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208) Redirected to http://www.example.com/resolve?umlaut.request_id=969081929&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.2ms) Started GET "/resolve?umlaut.request_id=969081929&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:28 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081929", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082208 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081929  (14.5ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 [["request_id", 969081929]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082208 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081929 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082208 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081929  (14.6ms) COMMIT Completed 200 OK in 116ms (Views: 21.9ms | ActiveRecord: 42.4ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c528eab89e83d2d167bb941ac81fcf42' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:28', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082209, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'title', 1, 'title', 969082209, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'author', 1, 'au', 969082209, 'au')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082209, 'c528eab89e83d2d167bb941ac81fcf42')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 969081930, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081930 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081930 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:28', NULL, 969081930, 'test_bd', 'successful', '2015-02-11 16:08:28')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2103  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081930 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8601128ce5a19743a5bd4f4c2dcca7bb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:28', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082210, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'title', 1, 'title', 969082210, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'author', 1, 'au', 969082210, 'au')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082210, '8601128ce5a19743a5bd4f4c2dcca7bb')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 969081931, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081931 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081931, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081931 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:28', NULL, 969081931, 'test_bd', 'successful', '2015-02-11 16:08:28')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2104  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081931 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd2d44fd863dac467c53e0227095bbb2b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:28', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082211, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'title', 1, 'title', 969082211, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'author', 1, 'au', 969082211, 'au')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082211, 'd2d44fd863dac467c53e0227095bbb2b')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 969081932, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081932 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081932, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081932 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081932, 'test_bd', 'successful', '2015-02-11 16:08:29')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2105  (14.4ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081932 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '438970e64eb7a0375bbd773723530701' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '9789810743734') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082212, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '9789810743734', 969082212, '9789810743734')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082212, '438970e64eb7a0375bbd773723530701')  (14.1ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081933 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081933, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:29', 'Choose your delivery location', 969081933, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081933 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081933, 'test_bd', 'successful', '2015-02-11 16:08:29')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2106  (14.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081933 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a148fc2c766b828667043b2522787d5' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '000000000') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082213, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '000000000', 969082213, '000000000')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082213, '0a148fc2c766b828667043b2522787d5')  (13.9ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081934 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081934, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:29', 'This item is not currently available from BorrowDirect', 969081934, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081934 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081934, 'test_bd', 'successful', '2015-02-11 16:08:29')  (13.8ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2107  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081934 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a049f87d21bc59f0f63238c220b05ef3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082214, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '0109836413', 969082214, '0109836413')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082214, 'a049f87d21bc59f0f63238c220b05ef3')  (14.0ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081935 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081935, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:29', 'This item is not currently available from BorrowDirect', 969081935, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081935 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081935, 'test_bd', 'successful', '2015-02-11 16:08:29')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2108  (15.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081935 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f9e8094e2139270f7ad27fc66833ba5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082215, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '9789810743734', 969082215, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082215, '9f9e8094e2139270f7ad27fc66833ba5')  (14.0ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081936 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081936, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081936 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081936, 'test_bd', 'failed_temporary', '2015-02-11 16:08:29')  (15.1ms) COMMIT  (2.0ms) BEGIN SQL (2.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2109  (17.0ms) COMMIT DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081936 Request Load (4.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '523806ddd8c1528ededd4674835aa0be' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (3.7ms) BEGIN SQL (3.9ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:29', 'title') SQL (4.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082216, 'journal') SQL (4.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'title', 1, 'title', 969082216, 'title') SQL (4.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'author', 1, 'au', 969082216, 'au')  (18.1ms) COMMIT  (5.3ms) BEGIN SQL (5.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082216, '523806ddd8c1528ededd4674835aa0be')  (18.0ms) COMMIT  (4.9ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:29', 969081937, '--- {}\n', 'test_holding', 'holding')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081937, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081937 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081937, 'test_bd', 'successful', '2015-02-11 16:08:29')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2110  (13.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081937 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081937 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b50b1d90be95e510151b5d4f59369a8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082217, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '9789810743734', 969082217, '9789810743734')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082217, '9b50b1d90be95e510151b5d4f59369a8')  (14.8ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081938 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081938, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081938 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081938, 'test_bd', 'successful', '2015-02-11 16:08:29')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2111  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081938  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '52a082080f04d451372ca765b36aa639' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:07', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:07', 'format', 'journal', 969082218, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:07', 'isbn', 1, '9789810743734', 969082218, '9789810743734')  (35.6ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082218, '52a082080f04d451372ca765b36aa639')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081939  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:07', NULL, 969081939, 'test_bd', 'queued', '2015-02-11 19:57:07')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:07' WHERE `dispatched_services`.`id` = 2112  (15.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081939 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082218) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082218) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081939) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081939) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (24.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081939 AND `dispatched_services`.`id` = 2112 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081939, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003819s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2112  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081939 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082218 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082218) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081939 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (10.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (82.4ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082218 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (11.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081939  (14.3ms) COMMIT Completed 200 OK in 822ms (Views: 245.9ms | ActiveRecord: 164.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 14:57:08 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99865695deee2163593ac508685953a3' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:08', 'some book') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'format', 'book', 969082219, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'genre', 1, 'book', 969082219, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'author', 1, 'smith', 969082219, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'title', 1, 'some book', 969082219, 'Some Book')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 19:57:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082219, '99865695deee2163593ac508685953a3')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081940  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:08', NULL, 969081940, 'BorrowDirect', 'queued', '2015-02-11 19:57:08')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2113  (14.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081940 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082219) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082219) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081940) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081940) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081940 AND `dispatched_services`.`id` = 2113 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081940, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2113  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081940 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082219 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082219) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081940 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082219 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081940  (14.4ms) COMMIT Completed 200 OK in 271ms (Views: 19.6ms | ActiveRecord: 124.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 14:57:08 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d7925bbb90da3cd3e315c8639767c11' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:08', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'format', 'journal', 969082220, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'genre', 1, 'article', 969082220, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'title', 1, 'foo', 969082220, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'author', 1, 'bar', 969082220, 'bar')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 19:57:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082220, '1d7925bbb90da3cd3e315c8639767c11')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081941  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:08', NULL, 969081941, 'BorrowDirect', 'queued', '2015-02-11 19:57:08')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2114  (14.3ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081941 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082220) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082220) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081941) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081941) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081941 AND `dispatched_services`.`id` = 2114 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2114  (14.4ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081941 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082220 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082220) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081941 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082220 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081941  (14.4ms) COMMIT Completed 200 OK in 203ms (Views: 18.4ms | ActiveRecord: 112.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e58debd80c7876f30f6dfd19dd91f2ba' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:08', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'format', 'book', 969082221, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'genre', 1, 'book', 969082221, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'title', 1, 'foo', 969082221, 'foo')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 19:57:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082221, 'e58debd80c7876f30f6dfd19dd91f2ba')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081942 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:08', NULL, 969081942, 'BorrowDirect', 'failed_fatal', '2015-02-11 19:57:08')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2115  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969081942" for 127.0.0.1 at 2015-02-11 14:57:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081942"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081942 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082221 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082221)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081942  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081942 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081942 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081942 [["request_id", 969081942]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082221 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082221) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081942 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081942 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082221 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081942  (14.1ms) COMMIT Completed 200 OK in 72ms (Views: 18.5ms | ActiveRecord: 46.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '829e39fb80e71ea716b42e8401e0b25a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:09', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'format', 'journal', 969082222, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'isbn', 1, '9789810743734', 969082222, '9789810743734')  (32.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082222, '829e39fb80e71ea716b42e8401e0b25a')  (31.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081943  (27.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943  (0.6ms) BEGIN SQL (33.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:09', NULL, 969081943, 'BorrowDirect', 'queued', '2015-02-11 19:57:09')  (64.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2116  (17.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082222) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081943) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081943) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`id` = 2116 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081943, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:09', 'Choose your delivery location', 969081943, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.6ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2116  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082222 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081943 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (44.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (47.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (48.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082222 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081943  (15.2ms) COMMIT Completed 200 OK in 437ms (Views: 66.1ms | ActiveRecord: 248.0ms) Started GET "/borrow_direct/BorrowDirect/969081943?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 14:57:09 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081943"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081943 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2116  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:09', 969081943, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082222 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222) Redirected to http://www.example.com/resolve?umlaut.request_id=969081943&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 37.1ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2116  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012926  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969081943&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:57:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081943", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:57:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082222 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081943  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 [["request_id", 969081943]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.0ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082222 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081943 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082222 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081943  (15.3ms) COMMIT Completed 200 OK in 74ms (Views: 21.5ms | ActiveRecord: 42.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 14:57:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '456150599ac36ab0a7056ab494ba1503' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:09', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'format', 'journal', 969082223, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'isbn', 1, '0109836413', 969082223, '0109836413')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 19:57:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082223, '456150599ac36ab0a7056ab494ba1503')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081944  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:09', NULL, 969081944, 'BorrowDirect', 'queued', '2015-02-11 19:57:09')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2117  (13.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081944 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082223) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082223) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081944) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081944) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081944 AND `dispatched_services`.`id` = 2117 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081944, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:09', 'This item is not currently available from BorrowDirect', 969081944, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2117  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081944 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082223 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082223) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081944 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082223 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081944  (16.3ms) COMMIT Completed 200 OK in 242ms (Views: 19.8ms | ActiveRecord: 112.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f34961a04f26d344b0d7cc95b3467bc4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:09', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'format', 'journal', 969082224, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'isbn', 1, '9789810743734', 969082224, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082224, 'f34961a04f26d344b0d7cc95b3467bc4')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081945  (21.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:09', NULL, 969081945, 'BorrowDirect', 'queued', '2015-02-11 19:57:09')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2118  (14.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082224) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081945) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081945) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`id` = 2118 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081945, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 'Choose your delivery location', 969081945, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2118  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082224 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081945 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (41.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082224 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081945  (14.5ms) COMMIT Completed 200 OK in 294ms (Views: 62.8ms | ActiveRecord: 120.5ms) Started GET "/borrow_direct/BorrowDirect/969081945?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 14:57:10 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081945"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081945 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2118  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 969081945, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082224 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224) Redirected to http://www.example.com/resolve?umlaut.request_id=969081945&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 54ms (ActiveRecord: 38.6ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2118  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012931  (13.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969081945&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:57:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081945", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:57:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082224 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081945  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 [["request_id", 969081945]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082224 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081945 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082224 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081945  (14.3ms) COMMIT Completed 200 OK in 71ms (Views: 18.4ms | ActiveRecord: 42.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f98eedac718388b334cc5d4f4eab33a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:10', '9789810743734') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:10', 'format', 'journal', 969082225, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:10', 'isbn', 1, '9789810743734', 969082225, '9789810743734')  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082225, '5f98eedac718388b334cc5d4f4eab33a')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081946  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:10', NULL, 969081946, 'BorrowDirect', 'queued', '2015-02-11 19:57:10')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2119  (14.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081946 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082225) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082225) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081946) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081946) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081946 AND `dispatched_services`.`id` = 2119 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081946, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 'Choose your delivery location', 969081946, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2119  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081946 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082225 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082225) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081946 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081946 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082225 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081946  (15.8ms) COMMIT Completed 200 OK in 249ms (Views: 22.7ms | ActiveRecord: 114.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9de11c5b99cde8a8fd1052d19d62b32' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:10', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:10', 'format', 'journal', 969082226, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:10', 'isbn', 1, '9789810743734', 969082226, '9789810743734')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082226, 'c9de11c5b99cde8a8fd1052d19d62b32')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081947  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:10', NULL, 969081947, 'BorrowDirect', 'queued', '2015-02-11 19:57:10')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2120  (14.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082226) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081947) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081947) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`id` = 2120 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081947, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 'Choose your delivery location', 969081947, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2120  (14.0ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (44.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082226 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081947 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082226 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081947  (14.2ms) COMMIT Completed 200 OK in 293ms (Views: 64.6ms | ActiveRecord: 116.2ms) Started GET "/borrow_direct/BorrowDirect/969081947" for 127.0.0.1 at 2015-02-11 14:57:10 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081947"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081947 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 969081947, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082226 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226) Redirected to http://www.example.com/resolve?umlaut.request_id=969081947&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 19.7ms) Started GET "/resolve?umlaut.request_id=969081947&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:57:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081947", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:57:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082226 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081947  (14.9ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 [["request_id", 969081947]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082226 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081947 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082226 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081947  (14.2ms) COMMIT Completed 200 OK in 75ms (Views: 22.7ms | ActiveRecord: 43.3ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1cc486831a01640596e95de3ca802e84' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:11', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082227, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'title', 1, 'title', 969082227, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'author', 1, 'au', 969082227, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082227, '1cc486831a01640596e95de3ca802e84')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081948, '--- {}\n', 'test_holding', 'holding')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081948, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081948 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081948, 'test_bd', 'successful', '2015-02-11 19:57:11')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2121  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081948 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081948 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f935363bb9a3cca04fe32b861407cfe2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:11', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082228, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'title', 1, 'title', 969082228, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'author', 1, 'au', 969082228, 'au')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082228, 'f935363bb9a3cca04fe32b861407cfe2')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081949, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081949 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081949 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081949, 'test_bd', 'successful', '2015-02-11 19:57:11')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2122  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081949 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c8f0928deb0fd231b3ed0a9850eb560' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:11', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082229, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'title', 1, 'title', 969082229, 'title') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'author', 1, 'au', 969082229, 'au')  (16.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082229, '4c8f0928deb0fd231b3ed0a9850eb560')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081950, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081950 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081950, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081950 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081950, 'test_bd', 'successful', '2015-02-11 19:57:11')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2123  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081950 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e94bbf9e3ea79f5cbc7b894f32df3d3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:11', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082230, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'title', 1, 'title', 969082230, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'author', 1, 'au', 969082230, 'au')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082230, '5e94bbf9e3ea79f5cbc7b894f32df3d3')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081951, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (13.7ms) COMMIT ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081951 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081951, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081951 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081951, 'test_bd', 'successful', '2015-02-11 19:57:11')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2124  (21.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081951 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ec03e0b07a83eae4b37fe86cb8ed4e4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:11', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082231, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'isbn', 1, '121212', 969082231, '121212')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082231, '3ec03e0b07a83eae4b37fe86cb8ed4e4')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081952"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081952 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081952 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081952  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081952, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081952\n', 'BorrowDirect', 'bd_request_status')  (15.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082231 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082231) Redirected to http://test.host/resolve?umlaut.request_id=969081952&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.9ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5ee2d2988c61706ecb48a03249d4317' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:11', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082232, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'isbn', 1, '121212', 969082232, '121212')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082232, 'c5ee2d2988c61706ecb48a03249d4317')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081953, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081953"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081953 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081953 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012945  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081953, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012945\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082232 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082232) Redirected to http://test.host/resolve?umlaut.request_id=969081953&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 28ms (ActiveRecord: 21.6ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a0ac1a41290b859c2332786243a0ba4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:11', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082233, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'isbn', 1, '121212', 969082233, '121212')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082233, '8a0ac1a41290b859c2332786243a0ba4')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081954, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081954"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081954 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081954 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081954 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081954, 'BorrowDirect', 'in_progress', '2015-02-11 19:57:11')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2125  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081954, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082233 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082233) Redirected to http://test.host/resolve?umlaut.request_id=969081954&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 69ms (ActiveRecord: 56.0ms) DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081954 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081954 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081954 ORDER BY id ASC  (1.3ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2125  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012948  (14.0ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '997ae55672ec9cd647aa69e7c11ead06' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:11', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082234, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'isbn', 1, '121212', 969082234, '121212')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082234, '997ae55672ec9cd647aa69e7c11ead06')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081955"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081955 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081955 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:12', 969081955, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082234 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082234) Redirected to http://test.host/resolve?umlaut.request_id=969081955&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.9ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37b68f7ac4577af91d249514ad7c16b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082235, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '9789810743734', 969082235, '9789810743734')  (19.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082235, '37b68f7ac4577af91d249514ad7c16b3')  (14.5ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081956 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081956, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081956 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081956, 'test_bd', 'successful', '2015-02-11 19:57:12')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2126  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081956 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3927d8b0d2b48528eca2606ced16c007' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 19:57:12', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082236, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'auinit', 1, 'rd', 969082236, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'aulast', 1, 'kaplan', 969082236, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'atitle', 1, 'the coming anarchy', 969082236, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'title', 1, 'the atlantic monthly', 969082236, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'volume', 1, '273', 969082236, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'issue', 1, '2', 969082236, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'date', 1, '1994', 969082236, '1994') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'spage', 1, '44', 969082236, '44') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'issn', 1, '1072-7825', 969082236, '1072-7825')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082236, 'info:sid/google', '3927d8b0d2b48528eca2606ced16c007')  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081957 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081957, 'test_bd', 'successful', '2015-02-11 19:57:12')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2127  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081957 ServiceResponse Exists (1.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081957 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10acca0a13f002257c489da65c649241' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 19:57:12', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'book', 969082237, 'book') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'auinit', 1, 'eh', 969082237, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'aulast', 1, 'lenneberg', 969082237, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'title', 1, 'biological foundations of language', 969082237, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'genre', 1, 'book', 969082237, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'date', 1, '1967', 969082237, '1967')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082237, 'info:sid/google', '10acca0a13f002257c489da65c649241')  (14.1ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081958 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081958, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.2ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081958 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081958, 'test_bd', 'successful', '2015-02-11 19:57:12')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2128  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081958 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4269d62442c888466de252aaeb749f8b' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:12', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082238, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082238, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'aulast', 1, 'grimes', 969082238, 'Grimes')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082238, '4269d62442c888466de252aaeb749f8b')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081959, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (13.7ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081959 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a16b59f5da305c67b446122e9d568c8f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082239, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '9789810743734', 969082239, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082239, 'a16b59f5da305c67b446122e9d568c8f')  (13.9ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081960 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081960, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:12', 'Choose your delivery location', 969081960, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (21.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081960 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081960, 'test_bd', 'successful', '2015-02-11 19:57:12')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2129  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081960 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9fefa0ec797c79588f2279f1f735b81c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082240, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '0109836413', 969082240, '0109836413')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082240, '9fefa0ec797c79588f2279f1f735b81c')  (14.6ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081961 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081961, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:12', 'This item is not currently available from BorrowDirect', 969081961, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (18.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081961 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081961, 'test_bd', 'successful', '2015-02-11 19:57:12')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2130  (19.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081961 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '778371dc4f7811f8d2750d05edbec03f' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082241, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '000000000', 969082241, '000000000')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082241, '778371dc4f7811f8d2750d05edbec03f')  (14.1ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081962 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081962, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:12', 'This item is not currently available from BorrowDirect', 969081962, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081962 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081962, 'test_bd', 'successful', '2015-02-11 19:57:12')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2131  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081962 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a0f8806c0c937cbc166b04444447c9e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082242, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '9789810743734', 969082242, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082242, '2a0f8806c0c937cbc166b04444447c9e')  (14.4ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081963 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081963, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081963 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081963, 'test_bd', 'failed_temporary', '2015-02-11 19:57:12')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2132  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081963 ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2ba25da0cb365d68fc728e4b988159e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:10', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:10', 'format', 'journal', 969082243, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:10', 'isbn', 1, '9789810743734', 969082243, '9789810743734')  (22.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082243, 'e2ba25da0cb365d68fc728e4b988159e')  (14.3ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081964 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081964, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081964 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081964, 'test_bd', 'successful', '2015-02-11 19:58:11')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2133  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081964 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 19ms (Views: 11.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a6828fdf8cfb16d5304acdb632aafdd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:11', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082244, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'isbn', 1, '121212', 969082244, '121212')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082244, '2a6828fdf8cfb16d5304acdb632aafdd')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081965"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081965 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081965 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081965  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081965, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081965\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082244 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082244) Redirected to http://test.host/resolve?umlaut.request_id=969081965&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 21.8ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a11ce776f49bcb3c21d108ea716dab7d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:11', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082245, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'isbn', 1, '121212', 969082245, '121212')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082245, 'a11ce776f49bcb3c21d108ea716dab7d')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081966, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081966"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081966 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081966 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081966 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081966, 'BorrowDirect', 'in_progress', '2015-02-11 19:58:11')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2134  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081966, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082245 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082245) Redirected to http://test.host/resolve?umlaut.request_id=969081966&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 66ms (ActiveRecord: 56.1ms) DispatchedService Load (4.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081966 ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081966 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e48c40271dba3b3fc7d73aa39d88f2b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:11', '121212') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081966 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082246, 'journal')  (1.1ms) BEGIN SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'isbn', 1, '121212', 969082246, '121212') SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2134  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082246, '5e48c40271dba3b3fc7d73aa39d88f2b')  (18.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012963  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081967"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081967 ORDER BY `requests`.`id` ASC LIMIT 1  (16.6ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081967 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081967, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082246 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082246) Redirected to http://test.host/resolve?umlaut.request_id=969081967&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.3ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1799d78e0827b82f8d10783b9041c0c2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:11', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082247, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'title', 1, 'title', 969082247, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'author', 1, 'au', 969082247, 'au')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082247, '1799d78e0827b82f8d10783b9041c0c2')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081968, '--- {}\n', 'test_holding', 'holding')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081968, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081968 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081968, 'test_bd', 'successful', '2015-02-11 19:58:11')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2135  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081968 ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081968 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '58957771bb5fdb896d291c101649f23d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:11', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082248, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'title', 1, 'title', 969082248, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'author', 1, 'au', 969082248, 'au')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082248, '58957771bb5fdb896d291c101649f23d')  (14.9ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081969, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081969 ORDER BY id ASC  (1.1ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081969, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081969 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081969, 'test_bd', 'successful', '2015-02-11 19:58:11')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2136  (14.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081969 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfa11cb355e70aa927733ae1d887ec77' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:11', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082249, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'title', 1, 'title', 969082249, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'author', 1, 'au', 969082249, 'au')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082249, 'dfa11cb355e70aa927733ae1d887ec77')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081970, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081970 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081970, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081970 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.3ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081970, 'test_bd', 'successful', '2015-02-11 19:58:11')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2137  (14.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081970 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0349e67287c2fe71c34028a437a6945d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:12', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082250, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'title', 1, 'title', 969082250, 'title') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'author', 1, 'au', 969082250, 'au')  (15.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082250, '0349e67287c2fe71c34028a437a6945d')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (0.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:12', 969081971, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081971 ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081971 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081971, 'test_bd', 'successful', '2015-02-11 19:58:12')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2138  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081971  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8405c7b329fa571958a4299c742a1b6' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:12', '000000000') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082251, 'journal') SQL (0.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'isbn', 1, '000000000', 969082251, '000000000')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (0.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082251, 'e8405c7b329fa571958a4299c742a1b6')  (13.8ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081972 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081972, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:12', 'This item is not currently available from BorrowDirect', 969081972, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081972 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081972, 'test_bd', 'successful', '2015-02-11 19:58:12')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2139  (14.0ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081972 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da4d24b629ee7080c401c33e28d74c1c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:12', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082252, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'isbn', 1, '0109836413', 969082252, '0109836413')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082252, 'da4d24b629ee7080c401c33e28d74c1c')  (15.0ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081973 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081973, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:12', 'This item is not currently available from BorrowDirect', 969081973, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081973 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081973, 'test_bd', 'successful', '2015-02-11 19:58:12')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2140  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081973 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b8a7198acce3f44e5c727c0dae04995' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:12', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082253, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'isbn', 1, '9789810743734', 969082253, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082253, '9b8a7198acce3f44e5c727c0dae04995')  (14.0ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081974 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081974, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:12', 'Choose your delivery location', 969081974, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081974 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081974, 'test_bd', 'successful', '2015-02-11 19:58:12')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2141  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081974 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86acba68c93f8aa57d89e89684c0f2e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:12', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082254, 'journal') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'isbn', 1, '9789810743734', 969082254, '9789810743734')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082254, '86acba68c93f8aa57d89e89684c0f2e4')  (14.4ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081975 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081975, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081975 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081975, 'test_bd', 'failed_temporary', '2015-02-11 19:58:12')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2142  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081975 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1452cc580c6eb6b7b7266e65a271f49' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:12', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082255, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082255, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'aulast', 1, 'grimes', 969082255, 'Grimes')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082255, 'a1452cc580c6eb6b7b7266e65a271f49')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081976, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.1ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081976 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6f995778a91d5cccc4f0cabc3524799' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 19:58:12', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082256, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'auinit', 1, 'rd', 969082256, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'aulast', 1, 'kaplan', 969082256, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'atitle', 1, 'the coming anarchy', 969082256, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'title', 1, 'the atlantic monthly', 969082256, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'volume', 1, '273', 969082256, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'issue', 1, '2', 969082256, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'date', 1, '1994', 969082256, '1994') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'spage', 1, '44', 969082256, '44') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'issn', 1, '1072-7825', 969082256, '1072-7825')  (14.9ms) COMMIT  (1.2ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082256, 'info:sid/google', 'd6f995778a91d5cccc4f0cabc3524799')  (15.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081977 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081977, 'test_bd', 'successful', '2015-02-11 19:58:12')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2143  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081977 ServiceResponse Exists (1.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081977 LIMIT 1 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fa8afdef1f34148ef526b997ab036b2' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 19:58:12', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'book', 969082257, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'auinit', 1, 'eh', 969082257, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'aulast', 1, 'lenneberg', 969082257, 'Lenneberg') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'title', 1, 'biological foundations of language', 969082257, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'genre', 1, 'book', 969082257, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'date', 1, '1967', 969082257, '1967')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082257, 'info:sid/google', '3fa8afdef1f34148ef526b997ab036b2')  (14.3ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081978 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081978, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081978 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081978, 'test_bd', 'successful', '2015-02-11 19:58:12')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2144  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081978 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc16cc32dab52abb37a00f52799fd53f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:13', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:13', 'format', 'journal', 969082258, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:13', 'isbn', 1, '9789810743734', 969082258, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082258, 'cc16cc32dab52abb37a00f52799fd53f')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081979  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:13', NULL, 969081979, 'test_bd', 'queued', '2015-02-11 19:58:13')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:13' WHERE `dispatched_services`.`id` = 2145  (14.5ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081979 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082258) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082258) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081979) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081979) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081979 AND `dispatched_services`.`id` = 2145 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081979, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 19:58:13' WHERE `dispatched_services`.`id` = 2145  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081979 LIMIT 1 DispatchedService Load (7.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082258 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082258) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081979 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082258 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081979  (15.6ms) COMMIT Completed 200 OK in 3532ms (Views: 3246.0ms | ActiveRecord: 119.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 14:58:16 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '347e90ccf31d05529f2c4ccea1dd9bec' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:16', 'some book') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'format', 'book', 969082259, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'genre', 1, 'book', 969082259, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'author', 1, 'smith', 969082259, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'title', 1, 'some book', 969082259, 'Some Book')  (16.4ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 19:58:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082259, '347e90ccf31d05529f2c4ccea1dd9bec')  (14.2ms) COMMIT  (1.1ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081980  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:16', NULL, 969081980, 'BorrowDirect', 'queued', '2015-02-11 19:58:16')  (15.0ms) COMMIT  (1.1ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:16' WHERE `dispatched_services`.`id` = 2146  (14.4ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081980 LIMIT 1 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082259) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082259) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081980) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081980) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081980 AND `dispatched_services`.`id` = 2146 AND `dispatched_services`.`status` IN ('queued')  (1.2ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081980, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:16' WHERE `dispatched_services`.`id` = 2146  (14.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081980 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082259 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082259) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081980 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082259 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081980  (15.1ms) COMMIT Completed 200 OK in 281ms (Views: 20.0ms | ActiveRecord: 125.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 14:58:16 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd96a3fe1631eb9cd170edaf7e3f6912' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:16', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'format', 'journal', 969082260, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'genre', 1, 'article', 969082260, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'title', 1, 'foo', 969082260, 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'author', 1, 'bar', 969082260, 'bar')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 19:58:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082260, 'dd96a3fe1631eb9cd170edaf7e3f6912')  (16.1ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081981  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:16', NULL, 969081981, 'BorrowDirect', 'queued', '2015-02-11 19:58:16')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:16' WHERE `dispatched_services`.`id` = 2147  (14.4ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081981 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082260) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082260) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081981) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081981) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081981 AND `dispatched_services`.`id` = 2147 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:16' WHERE `dispatched_services`.`id` = 2147  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081981 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082260 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082260) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081981 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082260 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081981  (14.9ms) COMMIT Completed 200 OK in 210ms (Views: 18.9ms | ActiveRecord: 119.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '465a25c7a01bbce0e78490f14d085704' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:17', 'foo') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'format', 'book', 969082261, 'book') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'genre', 1, 'book', 969082261, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'title', 1, 'foo', 969082261, 'foo')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 19:58:17', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082261, '465a25c7a01bbce0e78490f14d085704')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081982 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:17', NULL, 969081982, 'BorrowDirect', 'failed_fatal', '2015-02-11 19:58:17')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2148  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969081982" for 127.0.0.1 at 2015-02-11 14:58:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081982"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081982 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082261 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082261)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081982  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081982 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081982 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081982 [["request_id", 969081982]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082261 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082261) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081982 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081982 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082261 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081982  (14.5ms) COMMIT Completed 200 OK in 70ms (Views: 19.2ms | ActiveRecord: 43.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9aace551fc70d5c25123084dfe7d5f69' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:17', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'format', 'journal', 969082262, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'isbn', 1, '9789810743734', 969082262, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082262, '9aace551fc70d5c25123084dfe7d5f69')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081983  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:17', NULL, 969081983, 'BorrowDirect', 'queued', '2015-02-11 19:58:17')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2149  (14.4ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082262) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081983) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081983) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`id` = 2149 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081983, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:17', 'Choose your delivery location', 969081983, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2149  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082262 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081983 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082262 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081983  (14.1ms) COMMIT Completed 200 OK in 252ms (Views: 25.6ms | ActiveRecord: 111.1ms) Started GET "/borrow_direct/BorrowDirect/969081983?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 14:58:17 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081983"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081983 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2149  (14.2ms) COMMIT  (1.2ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:17', 969081983, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082262 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262) Redirected to http://www.example.com/resolve?umlaut.request_id=969081983&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' Completed 303 See Other in 53ms (ActiveRecord: 38.3ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2149  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012985  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969081983&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:58:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081983", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:58:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082262 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081983  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 [["request_id", 969081983]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082262 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081983 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082262 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081983  (14.6ms) COMMIT Completed 200 OK in 75ms (Views: 20.5ms | ActiveRecord: 45.4ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 14:58:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '315a94efb3c1f47a562218fbecbc55e4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:17', '0109836413') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'format', 'journal', 969082263, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'isbn', 1, '0109836413', 969082263, '0109836413')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 19:58:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082263, '315a94efb3c1f47a562218fbecbc55e4')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081984  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:17', NULL, 969081984, 'BorrowDirect', 'queued', '2015-02-11 19:58:17')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2150  (14.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081984 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082263) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082263) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081984) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081984) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081984 AND `dispatched_services`.`id` = 2150 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081984, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:17', 'This item is not currently available from BorrowDirect', 969081984, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2150  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081984 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082263 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082263) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081984 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082263 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081984  (14.4ms) COMMIT Completed 200 OK in 247ms (Views: 20.1ms | ActiveRecord: 112.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecb619e19d885db902d4d9dcf98cae1e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:17', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'format', 'journal', 969082264, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'isbn', 1, '9789810743734', 969082264, '9789810743734')  (17.8ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082264, 'ecb619e19d885db902d4d9dcf98cae1e')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081985  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:18', NULL, 969081985, 'BorrowDirect', 'queued', '2015-02-11 19:58:18')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2151  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082264) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081985) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081985) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`id` = 2151 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081985, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:18', 'Choose your delivery location', 969081985, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2151  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082264 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081985 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082264 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081985  (14.7ms) COMMIT Completed 200 OK in 250ms (Views: 21.5ms | ActiveRecord: 115.2ms) Started GET "/borrow_direct/BorrowDirect/969081985?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 14:58:18 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081985"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081985 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2151  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:18', 969081985, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082264 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264) Redirected to http://www.example.com/resolve?umlaut.request_id=969081985&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 37.9ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2151  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012990  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969081985&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:58:18 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081985", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:58:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082264 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264)  (1.0ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081985  (14.4ms) COMMIT DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 [["request_id", 969081985]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082264 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081985 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082264 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081985  (14.3ms) COMMIT Completed 200 OK in 78ms (Views: 22.3ms | ActiveRecord: 46.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1bb219beaf700c8ba1cdfe3744f9ce1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:18', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:18', 'format', 'journal', 969082265, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:18', 'isbn', 1, '9789810743734', 969082265, '9789810743734')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082265, 'a1bb219beaf700c8ba1cdfe3744f9ce1')  (14.7ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081986  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:18', NULL, 969081986, 'BorrowDirect', 'queued', '2015-02-11 19:58:18')  (14.4ms) COMMIT  (1.2ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2152  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081986 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082265) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082265) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081986) ORDER BY id ASC DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081986) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081986 AND `dispatched_services`.`id` = 2152 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081986, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (1.2ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:18', 'Choose your delivery location', 969081986, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2152  (15.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081986 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082265 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082265) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081986 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081986 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082265 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081986  (14.6ms) COMMIT Completed 200 OK in 255ms (Views: 21.6ms | ActiveRecord: 115.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f33b3b44191643df17f51b6145559c97' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:18', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:18', 'format', 'journal', 969082266, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:18', 'isbn', 1, '9789810743734', 969082266, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082266, 'f33b3b44191643df17f51b6145559c97')  (14.4ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081987  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:18', NULL, 969081987, 'BorrowDirect', 'queued', '2015-02-11 19:58:18')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2153  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082266) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081987) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081987) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`id` = 2153 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081987, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:18', 'Choose your delivery location', 969081987, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2153  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082266 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081987 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082266 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081987  (14.8ms) COMMIT Completed 200 OK in 252ms (Views: 22.1ms | ActiveRecord: 115.7ms) Started GET "/borrow_direct/BorrowDirect/969081987" for 127.0.0.1 at 2015-02-11 14:58:19 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081987"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081987 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:19', 969081987, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082266 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266) Redirected to http://www.example.com/resolve?umlaut.request_id=969081987&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.3ms) Started GET "/resolve?umlaut.request_id=969081987&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:58:19 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969081987", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:58:19-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082266 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081987  (14.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 [["request_id", 969081987]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082266 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081987 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082266 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081987  (14.7ms) COMMIT Completed 200 OK in 77ms (Views: 22.8ms | ActiveRecord: 44.2ms) ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 53ms (Views: 11.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 77ms (Views: 0.4ms | ActiveRecord: 6.3ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c62536671b58a2f41e018236565f4fb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:04', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'format', 'journal', 969082267, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'isbn', 1, '121212', 969082267, '121212')  (22.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082267, '5c62536671b58a2f41e018236565f4fb')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081988"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081988 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081988 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969081988  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:04', 969081988, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081988\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082267 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082267) Redirected to http://test.host/resolve?umlaut.request_id=969081988&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 68ms (ActiveRecord: 28.7ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6352dd2ccb18967fbac61d1578cde04' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (2.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:04', '121212') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'format', 'journal', 969082268, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'isbn', 1, '121212', 969082268, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082268, 'b6352dd2ccb18967fbac61d1578cde04')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:04', 969081989, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081989"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081989 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081989 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081989 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:04', NULL, 969081989, 'BorrowDirect', 'in_progress', '2015-02-11 20:00:04')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:04' WHERE `dispatched_services`.`id` = 2154  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:04', 969081989, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082268 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082268) Redirected to http://test.host/resolve?umlaut.request_id=969081989&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 115ms (ActiveRecord: 61.5ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081989 ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081989 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e59e904e029ff1d81ed1140c9de5e4f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:04', '121212') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081989 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'format', 'journal', 969082269, 'journal')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'isbn', 1, '121212', 969082269, '121212') SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 20:00:04' WHERE `dispatched_services`.`id` = 2154  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082269, '8e59e904e029ff1d81ed1140c9de5e4f')  (19.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012998  (18.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081990"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081990 ORDER BY `requests`.`id` ASC LIMIT 1  (20.0ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081990 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 969081990, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082269 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082269) Redirected to http://test.host/resolve?umlaut.request_id=969081990&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 22.8ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4577a816bee4e2b9d2191cbffc63f4b8' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:05', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082270, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'title', 1, 'title', 969082270, 'title') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'author', 1, 'au', 969082270, 'au')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082270, '4577a816bee4e2b9d2191cbffc63f4b8')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 969081991, '--- {}\n', 'test_holding', 'holding')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081991, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (13.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081991 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081991, 'test_bd', 'successful', '2015-02-11 20:00:05')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2155  (14.0ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081991 ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081991 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc481dca677e9a6bc71d2ed488610c7f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:05', '0109836413') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082271, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'isbn', 1, '0109836413', 969082271, '0109836413')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082271, 'cc481dca677e9a6bc71d2ed488610c7f')  (14.7ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081992 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081992, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 'This item is not currently available from BorrowDirect', 969081992, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (15.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081992 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081992, 'test_bd', 'successful', '2015-02-11 20:00:05')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2156  (15.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081992 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b9cd516e49c0335264dafdd63e966a8b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:05', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082272, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'isbn', 1, '9789810743734', 969082272, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082272, 'b9cd516e49c0335264dafdd63e966a8b')  (14.1ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081993 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081993, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081993 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081993, 'test_bd', 'failed_temporary', '2015-02-11 20:00:05')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/code/umlaut/lib/umlaut/test_help.rb:33:in `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2157  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081993 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f10e83870e1024c1c8260f4b1a734d24' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:05', '000000000') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082273, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'isbn', 1, '000000000', 969082273, '000000000')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082273, 'f10e83870e1024c1c8260f4b1a734d24')  (13.9ms) COMMIT ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081994 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081994, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 'This item is not currently available from BorrowDirect', 969081994, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081994 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081994, 'test_bd', 'successful', '2015-02-11 20:00:05')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2158  (13.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081994 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b51e4208e0d6ffa09d2ab74b15799c21' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:05', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082274, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'isbn', 1, '9789810743734', 969082274, '9789810743734')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082274, 'b51e4208e0d6ffa09d2ab74b15799c21')  (14.2ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081995 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081995, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 'Choose your delivery location', 969081995, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081995 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081995, 'test_bd', 'successful', '2015-02-11 20:00:05')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2159  (14.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081995 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f96b48ab2135f3f9da26503528130423' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:05', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082275, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'title', 1, 'title', 969082275, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'author', 1, 'au', 969082275, 'au')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082275, 'f96b48ab2135f3f9da26503528130423')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 969081996, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081996 ORDER BY id ASC  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081996, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081996 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081996, 'test_bd', 'successful', '2015-02-11 20:00:05')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2160  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081996 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '36f2e9bb98f559cf15b9fd076043ae93' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:05', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082276, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'title', 1, 'title', 969082276, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'author', 1, 'au', 969082276, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082276, '36f2e9bb98f559cf15b9fd076043ae93')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 969081997, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.0ms) COMMIT ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081997 ORDER BY id ASC  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081997, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081997 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081997, 'test_bd', 'successful', '2015-02-11 20:00:05')  (15.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2161  (15.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081997 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05154adac31bbc82d2c0766822ae5217' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:05', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082277, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'title', 1, 'title', 969082277, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'author', 1, 'au', 969082277, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082277, '05154adac31bbc82d2c0766822ae5217')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:06', 969081998, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081998 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081998 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:06', NULL, 969081998, 'test_bd', 'successful', '2015-02-11 20:00:06')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:06' WHERE `dispatched_services`.`id` = 2162  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081998  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7926a3cee87e2c267d5ddbd5dae5b417' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:06', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:06', 'format', 'journal', 969082278, 'journal') SQL (2.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:06', 'isbn', 1, '9789810743734', 969082278, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082278, '7926a3cee87e2c267d5ddbd5dae5b417')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081999  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:06', NULL, 969081999, 'test_bd', 'queued', '2015-02-11 20:00:06')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:06' WHERE `dispatched_services`.`id` = 2163  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081999 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082278) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082278) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081999) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081999) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081999 AND `dispatched_services`.`id` = 2163 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081999, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut/app/service_adaptors/service.rb:92:in `handle_wrapper\'\n- /Users/jrochkind/code/umlaut/app/models/service_wave.rb:88:in `block (2 levels)\n in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 20:00:06' WHERE `dispatched_services`.`id` = 2163  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081999 LIMIT 1 DispatchedService Load (40.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999 Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082278 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082278) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (10.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081999 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (20.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (2.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (13.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (13.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082278 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (11.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.9ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081999  (14.7ms) COMMIT Completed 200 OK in 2287ms (Views: 2034.8ms | ActiveRecord: 119.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 15:00:08 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7f2e2f4cf4e2e974973bedb60e470a9' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:08', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'format', 'book', 969082279, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'genre', 1, 'book', 969082279, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'author', 1, 'smith', 969082279, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'title', 1, 'some book', 969082279, 'Some Book')  (15.4ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 20:00:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082279, 'f7f2e2f4cf4e2e974973bedb60e470a9')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082000  (19.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:08', NULL, 969082000, 'BorrowDirect', 'queued', '2015-02-11 20:00:08')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:08' WHERE `dispatched_services`.`id` = 2164  (18.2ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082000 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082279) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082279) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082000) ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082000) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082000 AND `dispatched_services`.`id` = 2164 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082000, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:08' WHERE `dispatched_services`.`id` = 2164  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082000 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000 Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082279 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082279) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082000 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082279 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (22.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082000  (13.5ms) COMMIT Completed 200 OK in 264ms (Views: 20.6ms | ActiveRecord: 140.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 15:00:08 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3c859a3c68381e9caf158d8587aa2a5' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:08', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'format', 'journal', 969082280, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'genre', 1, 'article', 969082280, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'title', 1, 'foo', 969082280, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'author', 1, 'bar', 969082280, 'bar')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 20:00:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082280, 'b3c859a3c68381e9caf158d8587aa2a5')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082001  (17.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:08', NULL, 969082001, 'BorrowDirect', 'queued', '2015-02-11 20:00:08')  (13.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:08' WHERE `dispatched_services`.`id` = 2165  (17.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082001 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082280) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082280) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082001) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082001) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082001 AND `dispatched_services`.`id` = 2165 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:08' WHERE `dispatched_services`.`id` = 2165  (17.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082001 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001 Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.2ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082280 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082280) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082001 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082280 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082001  (24.7ms) COMMIT Completed 200 OK in 227ms (Views: 16.2ms | ActiveRecord: 130.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6fc76de975e886cab4bcf76691248e33' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:09', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'format', 'book', 969082281, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'genre', 1, 'book', 969082281, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'title', 1, 'foo', 969082281, 'foo')  (17.2ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 20:00:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082281, '6fc76de975e886cab4bcf76691248e33')  (16.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082002 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:09', NULL, 969082002, 'BorrowDirect', 'failed_fatal', '2015-02-11 20:00:09')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2166  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969082002" for 127.0.0.1 at 2015-02-11 15:00:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082002"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082002 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082281 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082281)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082002  (18.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082002 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082002 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082002 [["request_id", 969082002]] Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082281 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082281) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082002 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082002 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082281 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082002  (17.7ms) COMMIT Completed 200 OK in 77ms (Views: 17.7ms | ActiveRecord: 51.8ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4939d1d9aef6068b65f7abc4d947bc4d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:09', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'format', 'journal', 969082282, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'isbn', 1, '9789810743734', 969082282, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082282, '4939d1d9aef6068b65f7abc4d947bc4d')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082003  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:09', NULL, 969082003, 'BorrowDirect', 'queued', '2015-02-11 20:00:09')  (18.8ms) COMMIT  (0.8ms) BEGIN SQL (0.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2167  (15.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082282) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082003) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082003) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`id` = 2167 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082003, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:09', 'Choose your delivery location', 969082003, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2167  (13.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082282 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082003 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082282 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082003  (15.3ms) COMMIT Completed 200 OK in 259ms (Views: 24.8ms | ActiveRecord: 117.5ms) Started GET "/borrow_direct/BorrowDirect/969082003?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 15:00:09 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082003"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082003 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2167  (24.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:09', 969082003, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082282 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282) Redirected to http://www.example.com/resolve?umlaut.request_id=969082003&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 56ms (ActiveRecord: 46.7ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2167  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013018  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969082003&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 15:00:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082003", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T15:00:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082282 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082003  (13.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 Request Load (2.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 [["request_id", 969082003]] Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082282 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082003 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082282 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082003  (14.0ms) COMMIT Completed 200 OK in 72ms (Views: 20.8ms | ActiveRecord: 42.3ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 15:00:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '889cdf6fb37596e4df06f167ff547d84' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:09', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'format', 'journal', 969082283, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'isbn', 1, '0109836413', 969082283, '0109836413')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 20:00:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082283, '889cdf6fb37596e4df06f167ff547d84')  (32.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082004  (22.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:09', NULL, 969082004, 'BorrowDirect', 'queued', '2015-02-11 20:00:09')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2168  (13.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082004 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082283) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082283) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082004) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082004) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082004 AND `dispatched_services`.`id` = 2168 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082004, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:09', 'This item is not currently available from BorrowDirect', 969082004, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (16.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2168  (14.6ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082004 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004 Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082283 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082283) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082004 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (43.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (45.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082283 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082004  (14.5ms) COMMIT Completed 200 OK in 313ms (Views: 66.0ms | ActiveRecord: 135.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4425534ee2af6899ec6df9530ad2564' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:10', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'format', 'journal', 969082284, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'isbn', 1, '9789810743734', 969082284, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082284, 'b4425534ee2af6899ec6df9530ad2564')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082005  (16.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:10', NULL, 969082005, 'BorrowDirect', 'queued', '2015-02-11 20:00:10')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2169  (15.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082284) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082005) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082005) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`id` = 2169 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082005, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:10', 'Choose your delivery location', 969082005, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2169  (15.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082284 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082005 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082284 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.4ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082005  (19.9ms) COMMIT Completed 200 OK in 258ms (Views: 21.4ms | ActiveRecord: 122.4ms) Started GET "/borrow_direct/BorrowDirect/969082005?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 15:00:10 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082005"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082005 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2169  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:10', 969082005, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.7ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082284 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284) Redirected to http://www.example.com/resolve?umlaut.request_id=969082005&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 57ms (ActiveRecord: 47.9ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2169  (16.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013023  (23.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969082005&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 15:00:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082005", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T15:00:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082284 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082005  (20.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 [["request_id", 969082005]] Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082284 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082005 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082284 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082005  (17.8ms) COMMIT Completed 200 OK in 81ms (Views: 18.7ms | ActiveRecord: 52.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aebf25fd4c4b639ebd56037b6b90817b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:10', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'format', 'journal', 969082285, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'isbn', 1, '9789810743734', 969082285, '9789810743734')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082285, 'aebf25fd4c4b639ebd56037b6b90817b')  (24.9ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082006  (17.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:10', NULL, 969082006, 'BorrowDirect', 'queued', '2015-02-11 20:00:10')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2170  (14.6ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082006 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082285) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082285) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082006) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082006) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082006 AND `dispatched_services`.`id` = 2170 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082006, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:10', 'Choose your delivery location', 969082006, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2170  (14.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082006 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006 Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082285 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082285) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082006 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082006 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082285 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082006  (15.1ms) COMMIT Completed 200 OK in 314ms (Views: 22.9ms | ActiveRecord: 132.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71b0c6fe293f65b2648c76ebe6e9be43' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:10', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'format', 'journal', 969082286, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'isbn', 1, '9789810743734', 969082286, '9789810743734')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082286, '71b0c6fe293f65b2648c76ebe6e9be43')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082007  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:10', NULL, 969082007, 'BorrowDirect', 'queued', '2015-02-11 20:00:10')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2171  (14.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082286) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082007) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082007) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`id` = 2171 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082007, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:10', 'Choose your delivery location', 969082007, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2171  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082286 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082007 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082286 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082007  (14.5ms) COMMIT Completed 200 OK in 251ms (Views: 21.4ms | ActiveRecord: 115.2ms) Started GET "/borrow_direct/BorrowDirect/969082007" for 127.0.0.1 at 2015-02-11 15:00:11 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082007"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082007 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:11', 969082007, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082286 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286) Redirected to http://www.example.com/resolve?umlaut.request_id=969082007&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.8ms) Started GET "/resolve?umlaut.request_id=969082007&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 15:00:11 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082007", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T15:00:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082286 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082007  (14.8ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 [["request_id", 969082007]] Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082286 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082007 ORDER BY id ASC Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082286 Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082007  (14.5ms) COMMIT Completed 200 OK in 76ms (Views: 22.2ms | ActiveRecord: 44.3ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25f93293d5b704dc0384fdc785cdcbfa' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:11', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'format', 'journal', 969082287, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082287, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'aulast', 1, 'grimes', 969082287, 'Grimes')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 20:00:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082287, '25f93293d5b704dc0384fdc785cdcbfa')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082008, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.2ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082008 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f94968f151a333264ce2d2f66916697' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 20:00:11', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'format', 'journal', 969082288, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'auinit', 1, 'rd', 969082288, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'aulast', 1, 'kaplan', 969082288, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'atitle', 1, 'the coming anarchy', 969082288, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'title', 1, 'the atlantic monthly', 969082288, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'volume', 1, '273', 969082288, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'issue', 1, '2', 969082288, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'date', 1, '1994', 969082288, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'spage', 1, '44', 969082288, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'issn', 1, '1072-7825', 969082288, '1072-7825')  (15.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 20:00:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082288, 'info:sid/google', '8f94968f151a333264ce2d2f66916697')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082009 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:11', NULL, 969082009, 'test_bd', 'successful', '2015-02-11 20:00:11')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:11' WHERE `dispatched_services`.`id` = 2172  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082009 ServiceResponse Exists (1.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082009 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0cff3c7f45b0b5bb43a04783a6f2cb1' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 20:00:11', 'biological foundations of language', '1967') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'format', 'book', 969082289, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'auinit', 1, 'eh', 969082289, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'aulast', 1, 'lenneberg', 969082289, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'title', 1, 'biological foundations of language', 969082289, 'Biological foundations of language') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'genre', 1, 'book', 969082289, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'date', 1, '1967', 969082289, '1967')  (15.1ms) COMMIT  (1.0ms) BEGIN SQL (2.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 20:00:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082289, 'info:sid/google', 'e0cff3c7f45b0b5bb43a04783a6f2cb1')  (14.7ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082010 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082010, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082010 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:11', NULL, 969082010, 'test_bd', 'successful', '2015-02-11 20:00:11')  (19.5ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:11' WHERE `dispatched_services`.`id` = 2173  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082010 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99104ff1247ad1aa9784599cccc31f9b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:11', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'format', 'journal', 969082290, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'isbn', 1, '9789810743734', 969082290, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082290, '99104ff1247ad1aa9784599cccc31f9b')  (15.5ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082011 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082011, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082011 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:11', NULL, 969082011, 'test_bd', 'successful', '2015-02-11 20:00:11')  (16.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:11' WHERE `dispatched_services`.`id` = 2174  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082011 ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d708a52d02546bffde818970241bf5d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:43', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:43', 'format', 'journal', 969082291, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:43', 'isbn', 1, '121212', 969082291, '121212')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082291, '7d708a52d02546bffde818970241bf5d')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082012"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082012 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082012 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:43', 969082012, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.8ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082291 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082291) Redirected to http://test.host/resolve?umlaut.request_id=969082012&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 69ms (ActiveRecord: 29.3ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '214bce8c9408b1ab91a3ded57a6af01a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:59', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:59', 'format', 'journal', 969082292, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:59', 'isbn', 1, '121212', 969082292, '121212')  (34.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082292, '214bce8c9408b1ab91a3ded57a6af01a')  (25.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082013"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082013 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082013 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:59', 969082013, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082292 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082292) Redirected to http://test.host/resolve?umlaut.request_id=969082013&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 71ms (ActiveRecord: 30.1ms) ActiveRecord::SchemaMigration Load (1.3ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '175abbb48dfd0c9615fe9ff3fcc123a1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:02', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082293, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'title', 1, 'title', 969082293, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'author', 1, 'au', 969082293, 'au')  (22.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082293, '175abbb48dfd0c9615fe9ff3fcc123a1')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:02', 969082014, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082014 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f348e3d03adda01243f8f4a74c00f05f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:02', 'title') SQL (2.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082294, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'title', 1, 'title', 969082294, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'author', 1, 'au', 969082294, 'au')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082294, 'f348e3d03adda01243f8f4a74c00f05f')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:02', 969082015, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082015 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66811e667859bf8d11080f13eddd686f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:02', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082295, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'title', 1, 'title', 969082295, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'author', 1, 'au', 969082295, 'au')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082295, '66811e667859bf8d11080f13eddd686f')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:02', 969082016, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (18.7ms) COMMIT ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082016 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082016 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:02', NULL, 969082016, 'test_bd', 'successful', '2015-02-12 20:38:02')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:02' WHERE `dispatched_services`.`id` = 2175  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082016 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6d3a4fc03da3f49bcd10ba027063c61' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:02', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082296, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'title', 1, 'title', 969082296, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'author', 1, 'au', 969082296, 'au')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082296, 'c6d3a4fc03da3f49bcd10ba027063c61')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:02', 969082017, '--- {}\n', 'test_holding', 'holding')  (14.5ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cec42504863eb331307fc9e3aff3707' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:02', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082297, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'isbn', 1, '9789810743734', 969082297, '9789810743734')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082297, '8cec42504863eb331307fc9e3aff3707')  (13.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082018  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:03', NULL, 969082018, 'test_bd', 'queued', '2015-02-12 20:38:03')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:03' WHERE `dispatched_services`.`id` = 2176  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082018 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082297) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082297) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082018) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082018) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082018 AND `dispatched_services`.`id` = 2176 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: test_bd, ArgumentError Don't recognize field code `max_title_words`. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:03' WHERE `dispatched_services`.`id` = 2176  (18.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082018 LIMIT 1 DispatchedService Load (86.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082297 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082297) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082018 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (137.3ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082297 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (11.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.0ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082018  (15.1ms) COMMIT Completed 200 OK in 2349ms (Views: 2047.2ms | ActiveRecord: 139.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:38:05 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd88250abdf7b84a06e754800e57da41' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:05', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'format', 'book', 969082298, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'genre', 1, 'book', 969082298, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'author', 1, 'smith', 969082298, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'title', 1, 'some book', 969082298, 'Some Book')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:38:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082298, 'cd88250abdf7b84a06e754800e57da41')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082019  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:05', NULL, 969082019, 'BorrowDirect', 'queued', '2015-02-12 20:38:05')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2177  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082019 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082298) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082298) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082019) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082019) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082019 AND `dispatched_services`.`id` = 2177 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2177  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082019 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082298 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082298) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082019 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082298 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082019  (14.2ms) COMMIT Completed 200 OK in 216ms (Views: 19.8ms | ActiveRecord: 141.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:38:05 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a777901160728802e6fb7b0f56aa3cf' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:05', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'format', 'journal', 969082299, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'genre', 1, 'article', 969082299, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'title', 1, 'foo', 969082299, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'author', 1, 'bar', 969082299, 'bar')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:38:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082299, '9a777901160728802e6fb7b0f56aa3cf')  (13.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082020  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:05', NULL, 969082020, 'BorrowDirect', 'queued', '2015-02-12 20:38:05')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2178  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082020 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082299) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082299) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082020) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082020) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082020 AND `dispatched_services`.`id` = 2178 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2178  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082020 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082299 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082299) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082020 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082299 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (38.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082020  (14.3ms) COMMIT Completed 200 OK in 241ms (Views: 18.3ms | ActiveRecord: 152.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b91b0b8aea25fa9433ca5e8802085b41' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:05', 'foo') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'format', 'book', 969082300, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'genre', 1, 'book', 969082300, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'title', 1, 'foo', 969082300, 'foo')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082300, 'b91b0b8aea25fa9433ca5e8802085b41')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082021 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:05', NULL, 969082021, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:38:05')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2179  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082021" for 127.0.0.1 at 2015-02-12 15:38:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082021"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082021 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082300 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082300)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082021  (15.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082021 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082021 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082021 [["request_id", 969082021]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082300 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082300) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082021 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082021 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082300 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082021  (14.5ms) COMMIT Completed 200 OK in 73ms (Views: 18.2ms | ActiveRecord: 47.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '19b096c9051c34c7e1fb38537be24f78' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:05', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'format', 'journal', 969082301, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'isbn', 1, '9789810743734', 969082301, '9789810743734')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082301, '19b096c9051c34c7e1fb38537be24f78')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082022  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082022, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2180  (14.3ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082022 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082301) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082301) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082022) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082022) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082022 AND `dispatched_services`.`id` = 2180 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2180  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082022 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082301 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082301) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082022 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082301 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082022  (14.5ms) COMMIT Completed 200 OK in 202ms (Views: 20.1ms | ActiveRecord: 130.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:38:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e25d0e23b26be311b01f56aad4f4e1c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:06', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'format', 'journal', 969082302, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'isbn', 1, '0109836413', 969082302, '0109836413')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082302, '2e25d0e23b26be311b01f56aad4f4e1c')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082023  (14.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082023, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2181  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082023 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082302) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082302) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082023) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082023) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082023 AND `dispatched_services`.`id` = 2181 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2181  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082023 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082302 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082302) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082023 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082302 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082023  (14.4ms) COMMIT Completed 200 OK in 205ms (Views: 19.4ms | ActiveRecord: 130.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c936837929d33f16a6ea0759f39efd9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:06', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'format', 'journal', 969082303, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'isbn', 1, '9789810743734', 969082303, '9789810743734')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082303, '9c936837929d33f16a6ea0759f39efd9')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082024  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082024, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2182  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082024 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082303) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082303) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082024) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082024) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082024 AND `dispatched_services`.`id` = 2182 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2182  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082024 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082303 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082303) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082024 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082303 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082024  (14.4ms) COMMIT Completed 200 OK in 247ms (Views: 19.2ms | ActiveRecord: 133.1ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '498e9fd53b199e2c44fe600416635b27' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:06', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'format', 'journal', 969082304, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'isbn', 1, '9789810743734', 969082304, '9789810743734')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082304, '498e9fd53b199e2c44fe600416635b27')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082025  (15.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082025, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2183  (14.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082025 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082304) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082304) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082025) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082025) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082025 AND `dispatched_services`.`id` = 2183 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2183  (14.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082025 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082304 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082304) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082025 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082304 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082025  (14.2ms) COMMIT Completed 200 OK in 204ms (Views: 20.3ms | ActiveRecord: 131.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07b82291a1e96dc9efa15da7b8538881' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:06', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'format', 'journal', 969082305, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'isbn', 1, '9789810743734', 969082305, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082305, '07b82291a1e96dc9efa15da7b8538881')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082026  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082026, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2184  (14.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082026 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082305) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082305) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082026) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082026) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082026 AND `dispatched_services`.`id` = 2184 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:07' WHERE `dispatched_services`.`id` = 2184  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082026 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082305 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082305) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082026 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082305 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082026  (14.2ms) COMMIT Completed 200 OK in 202ms (Views: 19.8ms | ActiveRecord: 129.6ms)  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 45ms (Views: 44.9ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5737d5bd5d8387546c158d6386c85680' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082306, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '121212', 969082306, '121212')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082306, '5737d5bd5d8387546c158d6386c85680')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082027"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082027 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082027 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082027  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082027, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082027\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082306 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082306) Redirected to http://test.host/resolve?umlaut.request_id=969082027&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 22.7ms) Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c21a67d6f37dc47ee0891d8e74461df3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082307, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '121212', 969082307, '121212')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082307, 'c21a67d6f37dc47ee0891d8e74461df3')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082028, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082028"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082028 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082028 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013039  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082028, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013039\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082307 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082307) Redirected to http://test.host/resolve?umlaut.request_id=969082028&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4ecd78502cbcf347d50f5d5e090f1d7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082308, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '121212', 969082308, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082308, 'a4ecd78502cbcf347d50f5d5e090f1d7')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082029, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082029"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082029 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082029 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082029 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:07', NULL, 969082029, 'BorrowDirect', 'in_progress', '2015-02-12 20:38:07')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:07' WHERE `dispatched_services`.`id` = 2185  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082029, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082308 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082308) Redirected to http://test.host/resolve?umlaut.request_id=969082029&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 67ms (ActiveRecord: 56.4ms) DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082029 ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082029 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082029 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:07' WHERE `dispatched_services`.`id` = 2185  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013042  (14.2ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f045b695b7011619b957b31cb78d0a0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082309, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '121212', 969082309, '121212')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082309, '4f045b695b7011619b957b31cb78d0a0')  (15.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082030"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082030 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082030 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082030, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082309 LIMIT 1 ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082309) Redirected to http://test.host/resolve?umlaut.request_id=969082030&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.5ms) Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a63f5223f883194d112e1d2fbf07d81b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082310, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '9789810743734', 969082310, '9789810743734')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082310, 'a63f5223f883194d112e1d2fbf07d81b')  (14.1ms) COMMIT ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082031 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7f96a4a3ee71ce72494a4e584f132a9' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:38:07', 'biological foundations of language', '1967') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'book', 969082311, 'book') SQL (2.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'auinit', 1, 'eh', 969082311, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'aulast', 1, 'lenneberg', 969082311, 'Lenneberg') SQL (2.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'title', 1, 'biological foundations of language', 969082311, 'Biological foundations of language') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'genre', 1, 'book', 969082311, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'date', 1, '1967', 969082311, '1967')  (19.5ms) COMMIT  (1.3ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082311, 'info:sid/google', 'd7f96a4a3ee71ce72494a4e584f132a9')  (14.1ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082032 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66e2d5422fcf10c6f4ba5281210bdd6a' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:38:07', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082312, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'auinit', 1, 'rd', 969082312, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'aulast', 1, 'kaplan', 969082312, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'atitle', 1, 'the coming anarchy', 969082312, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'title', 1, 'the atlantic monthly', 969082312, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'volume', 1, '273', 969082312, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'issue', 1, '2', 969082312, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'date', 1, '1994', 969082312, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'spage', 1, '44', 969082312, '44') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'issn', 1, '1072-7825', 969082312, '1072-7825')  (15.6ms) COMMIT  (0.6ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082312, 'info:sid/google', '66e2d5422fcf10c6f4ba5281210bdd6a')  (14.5ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082033 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:07', NULL, 969082033, 'test_bd', 'successful', '2015-02-12 20:38:07')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:07' WHERE `dispatched_services`.`id` = 2186  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082033 ServiceResponse Exists (1.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082033 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1099b589ceff6bbd4fbf227db81a178' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:07', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082313, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082313, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'aulast', 1, 'grimes', 969082313, 'Grimes')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082313, 'a1099b589ceff6bbd4fbf227db81a178')  (14.9ms) COMMIT Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb39ad81cca9404547c1737e28f7fb3a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082314, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '9789810743734', 969082314, '9789810743734')  (13.9ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082314, 'eb39ad81cca9404547c1737e28f7fb3a')  (14.0ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082035 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c7e8d5c95fc5082abe483860d393e183' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082315, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '9789810743734', 969082315, '9789810743734')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082315, 'c7e8d5c95fc5082abe483860d393e183')  (14.8ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082036 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1fbf21e598b2380c71a9ff1484e22a96' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082316, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '0109836413', 969082316, '0109836413')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:38:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082316, '1fbf21e598b2380c71a9ff1484e22a96')  (14.4ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082037 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f56d9ae22145baf46f90187c49e0b617' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:08', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:08', 'format', 'journal', 969082317, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:08', 'isbn', 1, '000000000', 969082317, '000000000')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:38:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082317, 'f56d9ae22145baf46f90187c49e0b617')  (14.3ms) COMMIT ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082038 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:53 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecfa0b7e33774245059bee0e52d663d4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:54', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'format', 'journal', 969082318, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'isbn', 1, '9789810743734', 969082318, '9789810743734')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (2.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082318, 'ecfa0b7e33774245059bee0e52d663d4')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082039  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:54', NULL, 969082039, 'test_bd', 'queued', '2015-02-12 20:38:54')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:54' WHERE `dispatched_services`.`id` = 2187  (14.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082039 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082318) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082318) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082039) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082039) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082039 AND `dispatched_services`.`id` = 2187 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: test_bd, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:54' WHERE `dispatched_services`.`id` = 2187  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082039 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082318 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082318) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082039 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (34.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (35.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (90.1ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082318 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082039  (14.2ms) COMMIT Completed 200 OK in 600ms (Views: 136.2ms | ActiveRecord: 157.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:38:54 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2cb1ffe777adef69b52cbb479604426' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:54', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'format', 'book', 969082319, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'genre', 1, 'book', 969082319, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'author', 1, 'smith', 969082319, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'title', 1, 'some book', 969082319, 'Some Book')  (14.4ms) COMMIT  (1.2ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:38:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082319, 'f2cb1ffe777adef69b52cbb479604426')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082040  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:54', NULL, 969082040, 'BorrowDirect', 'queued', '2015-02-12 20:38:54')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:54' WHERE `dispatched_services`.`id` = 2188  (14.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082040 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082319) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082319) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082040) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082040) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082040 AND `dispatched_services`.`id` = 2188 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (2.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082040, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2188  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082040 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082319 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082319) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082040 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082319 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082040  (17.5ms) COMMIT Completed 200 OK in 256ms (Views: 22.8ms | ActiveRecord: 130.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:38:55 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f343a862c5c447bae9d6d095fde4564' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:55', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'format', 'journal', 969082320, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'genre', 1, 'article', 969082320, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'title', 1, 'foo', 969082320, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'author', 1, 'bar', 969082320, 'bar')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:38:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082320, '9f343a862c5c447bae9d6d095fde4564')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082041  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:55', NULL, 969082041, 'BorrowDirect', 'queued', '2015-02-12 20:38:55')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2189  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082041 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082320) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082320) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082041) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082041) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082041 AND `dispatched_services`.`id` = 2189 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2189  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082041 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082320 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082320) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082041 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082320 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082041  (15.9ms) COMMIT Completed 200 OK in 207ms (Views: 17.1ms | ActiveRecord: 118.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '68e82bfbe09768f7f255b46542b12296' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:55', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'format', 'book', 969082321, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'genre', 1, 'book', 969082321, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'title', 1, 'foo', 969082321, 'foo')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:38:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082321, '68e82bfbe09768f7f255b46542b12296')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082042 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:55', NULL, 969082042, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:38:55')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2190  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082042" for 127.0.0.1 at 2015-02-12 15:38:55 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082042"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082042 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082321 LIMIT 1 ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082321)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082042  (14.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082042 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082042 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082042 [["request_id", 969082042]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082321 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082321) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082042 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082042 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082321 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082042  (14.9ms) COMMIT Completed 200 OK in 74ms (Views: 18.4ms | ActiveRecord: 47.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b05ee76819416f0cc697b6a38948f1a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (2.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:55', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'format', 'journal', 969082322, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'isbn', 1, '9789810743734', 969082322, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082322, '3b05ee76819416f0cc697b6a38948f1a')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082043  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:55', NULL, 969082043, 'BorrowDirect', 'queued', '2015-02-12 20:38:55')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2191  (14.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082043 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082322) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082322) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082043) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082043) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082043 AND `dispatched_services`.`id` = 2191 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2191  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082043 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043 Referent Load (2.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082322 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082322) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082043 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082322 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082043  (14.4ms) COMMIT Completed 200 OK in 207ms (Views: 19.4ms | ActiveRecord: 135.4ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:38:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7b0abf2a5bf8d4053efd2c82a2a32eb' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:55', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'format', 'journal', 969082323, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'isbn', 1, '0109836413', 969082323, '0109836413')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:38:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082323, 'e7b0abf2a5bf8d4053efd2c82a2a32eb')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082044  (15.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:55', NULL, 969082044, 'BorrowDirect', 'queued', '2015-02-12 20:38:55')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2192  (15.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082044 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082323) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082323) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082044) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082044) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082044 AND `dispatched_services`.`id` = 2192 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2192  (15.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082044 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082323 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082323) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082044 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082323 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082044  (14.8ms) COMMIT Completed 200 OK in 208ms (Views: 18.6ms | ActiveRecord: 136.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd41260f5781137550c426b42004bcf20' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:56', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082324, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'isbn', 1, '9789810743734', 969082324, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082324, 'd41260f5781137550c426b42004bcf20')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082045  (20.5ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082045, 'BorrowDirect', 'queued', '2015-02-12 20:38:56')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2193  (15.0ms) COMMIT Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082045 LIMIT 1 Referent Load (2.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082324) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082324) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082045) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082045) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082045 AND `dispatched_services`.`id` = 2193 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2193  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082045 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082324 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082324) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082045 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (42.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (43.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082324 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082045  (15.0ms) COMMIT Completed 200 OK in 255ms (Views: 58.3ms | ActiveRecord: 142.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:56 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9fda5b78825dec0cbfc031f3699abdd6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:56', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082325, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'isbn', 1, '9789810743734', 969082325, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082325, '9fda5b78825dec0cbfc031f3699abdd6')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082046  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082046, 'BorrowDirect', 'queued', '2015-02-12 20:38:56')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2194  (14.2ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082046 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082325) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082325) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082046) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082046) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082046 AND `dispatched_services`.`id` = 2194 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2194  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082046 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082325 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082325) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082046 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082325 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082046  (14.6ms) COMMIT Completed 200 OK in 207ms (Views: 19.2ms | ActiveRecord: 134.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:56 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5183485e140a81e93e6aca049676fc51' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:56', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082326, 'journal') SQL (2.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'isbn', 1, '9789810743734', 969082326, '9789810743734')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082326, '5183485e140a81e93e6aca049676fc51')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082047  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047  (1.6ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082047, 'BorrowDirect', 'queued', '2015-02-12 20:38:56')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2195  (14.2ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082047 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082326) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082326) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082047) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082047) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082047 AND `dispatched_services`.`id` = 2195 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2195  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082047 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.7ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082326 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082326) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082047 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082326 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082047  (15.4ms) COMMIT Completed 200 OK in 212ms (Views: 18.3ms | ActiveRecord: 139.9ms) Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c177cb8c491c3c5ec81820e4f614a14' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:56', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082327, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'title', 1, 'title', 969082327, 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'author', 1, 'au', 969082327, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082327, '6c177cb8c491c3c5ec81820e4f614a14')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:56', 969082048, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082048 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082048 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082048, 'test_bd', 'successful', '2015-02-12 20:38:56')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2196  (14.5ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082048 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0f2f24c09b65aa1c6b56f65e0e298f6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:56', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082328, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'title', 1, 'title', 969082328, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'author', 1, 'au', 969082328, 'au')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082328, 'd0f2f24c09b65aa1c6b56f65e0e298f6')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:56', 969082049, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082049 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:56', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082049, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082049 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082049, 'test_bd', 'successful', '2015-02-12 20:38:56')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2197  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082049 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d0b0c82ab909c3775b388dbe2756452' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:56', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082329, 'journal') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'title', 1, 'title', 969082329, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'author', 1, 'au', 969082329, 'au')  (15.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082329, '4d0b0c82ab909c3775b388dbe2756452')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:56', 969082050, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (15.3ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082050 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082050, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082050 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:57', NULL, 969082050, 'test_bd', 'successful', '2015-02-12 20:38:57')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2198  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082050 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 2.0ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (3.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f03bc552cfe03967fb5950b57cfaa038' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082330, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '121212', 969082330, '121212')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082330, 'f03bc552cfe03967fb5950b57cfaa038')  (16.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082051"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082051 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082051 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082051  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082051, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082051\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082330 LIMIT 1 ReferentValue Load (2.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082330) Redirected to http://test.host/resolve?umlaut.request_id=969082051&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 23.7ms) Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f31f95c43c1e5536f7ae80142914c37' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082331, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '121212', 969082331, '121212')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082331, '4f31f95c43c1e5536f7ae80142914c37')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082052, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082052"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082052 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082052 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013051  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082052, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013051\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082331 LIMIT 1 ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082331) Redirected to http://test.host/resolve?umlaut.request_id=969082052&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c346248b67cf3da29778daa64e4c387' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082332, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '121212', 969082332, '121212')  (22.9ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082332, '8c346248b67cf3da29778daa64e4c387')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082053, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082053"} Request Load (2.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082053 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082053 ORDER BY id ASC DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082053 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:57', NULL, 969082053, 'BorrowDirect', 'in_progress', '2015-02-12 20:38:57')  (16.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2199  (14.3ms) COMMIT  (1.4ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082053, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082332 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082332) Redirected to http://test.host/resolve?umlaut.request_id=969082053&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 73ms (ActiveRecord: 62.8ms) DispatchedService Load (3.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082053 ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082053 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082053 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2199  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013054  (15.0ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b7d544732ac5603c246559d55559f1f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '121212') SQL (2.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082333, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '121212', 969082333, '121212')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082333, '9b7d544732ac5603c246559d55559f1f')  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082054"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082054 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082054 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082054, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082333 LIMIT 1 ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082333) Redirected to http://test.host/resolve?umlaut.request_id=969082054&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.1ms) Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'baddc6cdefe762817501744db88efbd9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:57', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082334, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082334, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'aulast', 1, 'grimes', 969082334, 'Grimes')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082334, 'baddc6cdefe762817501744db88efbd9')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082055, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.2ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082055 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b588d1789a4806eccbb2882f065589d5' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:38:57', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082335, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'auinit', 1, 'rd', 969082335, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'aulast', 1, 'kaplan', 969082335, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'atitle', 1, 'the coming anarchy', 969082335, 'The coming anarchy') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'title', 1, 'the atlantic monthly', 969082335, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'volume', 1, '273', 969082335, '273') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'issue', 1, '2', 969082335, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'date', 1, '1994', 969082335, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'spage', 1, '44', 969082335, '44') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'issn', 1, '1072-7825', 969082335, '1072-7825')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082335, 'info:sid/google', 'b588d1789a4806eccbb2882f065589d5')  (15.1ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082056 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:57', NULL, 969082056, 'test_bd', 'successful', '2015-02-12 20:38:57')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2200  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082056 ServiceResponse Exists (3.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082056 LIMIT 1 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5dcf9545e72b6e7777fc000cd3818a9c' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:38:57', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'book', 969082336, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'auinit', 1, 'eh', 969082336, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'aulast', 1, 'lenneberg', 969082336, 'Lenneberg') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'title', 1, 'biological foundations of language', 969082336, 'Biological foundations of language') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'genre', 1, 'book', 969082336, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'date', 1, '1967', 969082336, '1967')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082336, 'info:sid/google', '5dcf9545e72b6e7777fc000cd3818a9c')  (15.5ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082057 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082057, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082057 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (2.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:57', NULL, 969082057, 'test_bd', 'successful', '2015-02-12 20:38:57')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2201  (14.9ms) COMMIT DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082057 Request Load (2.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3e625eb4565ea64e436a2ec0ffac388a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082337, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '9789810743734', 969082337, '9789810743734')  (14.8ms) COMMIT  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082337, '3e625eb4565ea64e436a2ec0ffac388a')  (14.5ms) COMMIT ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082058 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37c07c571874c40d352627be09f1605e' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082338, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '000000000', 969082338, '000000000')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082338, '37c07c571874c40d352627be09f1605e')  (15.5ms) COMMIT ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082059 ORDER BY id ASC Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e5991d6f9a00eb63bca000087c1b131' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:58', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'format', 'journal', 969082339, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'isbn', 1, '0109836413', 969082339, '0109836413')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082339, '7e5991d6f9a00eb63bca000087c1b131')  (14.3ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082060 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0ffce009aa7869008c819c32a4dafdc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:58', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'format', 'journal', 969082340, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'isbn', 1, '9789810743734', 969082340, '9789810743734')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082340, 'd0ffce009aa7869008c819c32a4dafdc')  (14.9ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082061 ORDER BY id ASC Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '612f597818785b03957e0bda31e8b2b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:58', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'format', 'journal', 969082341, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'isbn', 1, '9789810743734', 969082341, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082341, '612f597818785b03957e0bda31e8b2b3')  (14.6ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082062 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfc0528fba181b8ca5bfbdb0115265f5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:58', 'title') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'format', 'journal', 969082342, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'title', 1, 'title', 969082342, 'title') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'author', 1, 'au', 969082342, 'au')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082342, 'bfc0528fba181b8ca5bfbdb0115265f5')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:58', 969082063, '--- {}\n', 'test_holding', 'holding')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082063, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (2.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082063 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:58', NULL, 969082063, 'test_bd', 'successful', '2015-02-12 20:38:58')  (15.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:58' WHERE `dispatched_services`.`id` = 2202  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082063 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082063 ORDER BY id ASC  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a5500ea44bd6667fc055c39a7ae63ac' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:34', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'format', 'journal', 969082343, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'title', 1, 'title', 969082343, 'title') SQL (2.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'author', 1, 'au', 969082343, 'au')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:45:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082343, '1a5500ea44bd6667fc055c39a7ae63ac')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:34', 969082064, '--- {}\n', 'test_holding', 'holding')  (16.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082064, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082064 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:34', NULL, 969082064, 'test_bd', 'successful', '2015-02-12 20:45:34')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:34' WHERE `dispatched_services`.`id` = 2203  (14.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082064 ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082064 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7dec79cbddd9709c73bf0356ec99c528' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:34', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'format', 'journal', 969082344, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'isbn', 1, '9789810743734', 969082344, '9789810743734')  (16.6ms) COMMIT  (0.7ms) BEGIN SQL (2.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082344, '7dec79cbddd9709c73bf0356ec99c528')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082065  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:34', NULL, 969082065, 'test_bd', 'queued', '2015-02-12 20:45:34')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:34' WHERE `dispatched_services`.`id` = 2204  (15.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082065 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082344) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082344) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082065) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082065) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082065 AND `dispatched_services`.`id` = 2204 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: test_bd, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:34' WHERE `dispatched_services`.`id` = 2204  (14.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082065 LIMIT 1 DispatchedService Load (37.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082344 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082344) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082065 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (88.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082344 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082065  (14.2ms) COMMIT Completed 200 OK in 459ms (Views: 136.2ms | ActiveRecord: 135.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:45:34 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ef572a7e0780a87458c528dc6d95ff89' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:34', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'format', 'book', 969082345, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'genre', 1, 'book', 969082345, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'author', 1, 'smith', 969082345, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'title', 1, 'some book', 969082345, 'Some Book')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:45:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082345, 'ef572a7e0780a87458c528dc6d95ff89')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082066  (15.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082066, 'BorrowDirect', 'queued', '2015-02-12 20:45:35')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2205  (15.2ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082066 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082345) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082345) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082066) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082066) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082066 AND `dispatched_services`.`id` = 2205 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082066, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (15.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2205  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082066 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082345 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082345) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082066 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082345 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082066  (15.1ms) COMMIT Completed 200 OK in 250ms (Views: 24.3ms | ActiveRecord: 129.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:45:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98b9634ae86001563e57bb39cd411041' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:35', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'format', 'journal', 969082346, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'genre', 1, 'article', 969082346, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'title', 1, 'foo', 969082346, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'author', 1, 'bar', 969082346, 'bar')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:45:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082346, '98b9634ae86001563e57bb39cd411041')  (18.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082067  (14.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082067, 'BorrowDirect', 'queued', '2015-02-12 20:45:35')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2206  (18.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082067 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082346) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082346) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082067) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082067) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082067 AND `dispatched_services`.`id` = 2206 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2206  (15.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082067 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082346 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082346) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082067 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082346 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082067  (15.6ms) COMMIT Completed 200 OK in 217ms (Views: 17.2ms | ActiveRecord: 126.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '910f75b501c510f4319ef524737ae5f1' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (37.6ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:35', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'format', 'book', 969082347, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'genre', 1, 'book', 969082347, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'title', 1, 'foo', 969082347, 'foo')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:45:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082347, '910f75b501c510f4319ef524737ae5f1')  (20.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082068 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082068, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:45:35')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2207  (15.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969082068" for 127.0.0.1 at 2015-02-12 15:45:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082068"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082068 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082347 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082347)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082068  (17.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082068 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082068 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082068 [["request_id", 969082068]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082347 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082347) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082068 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082068 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082347 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082068  (15.0ms) COMMIT Completed 200 OK in 75ms (Views: 18.1ms | ActiveRecord: 49.8ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be7e038d641f01a5d573a532d977c486' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:35', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'format', 'journal', 969082348, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'isbn', 1, '9789810743734', 969082348, '9789810743734')  (15.6ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082348, 'be7e038d641f01a5d573a532d977c486')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082069  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082069, 'BorrowDirect', 'queued', '2015-02-12 20:45:35')  (16.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2208  (14.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082069 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082348) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082348) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082069) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082069) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082069 AND `dispatched_services`.`id` = 2208 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2208  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082069 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082348 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082348) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082069 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082348 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082069  (15.5ms) COMMIT Completed 200 OK in 215ms (Views: 20.4ms | ActiveRecord: 138.3ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:45:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b563ea973da01dcabd7af99dd7cce9fa' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:35', '0109836413') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'format', 'journal', 969082349, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'isbn', 1, '0109836413', 969082349, '0109836413')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:45:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082349, 'b563ea973da01dcabd7af99dd7cce9fa')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082070  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082070, 'BorrowDirect', 'queued', '2015-02-12 20:45:35')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2209  (15.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082070 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082349) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082349) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082070) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082070) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082070 AND `dispatched_services`.`id` = 2209 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2209  (21.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082070 LIMIT 1 DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.4ms) DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082349 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082349) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082070 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082349 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082070  (15.0ms) COMMIT Completed 200 OK in 222ms (Views: 19.9ms | ActiveRecord: 148.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '567b3484598a95fd302c2acb1b155368' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:36', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'format', 'journal', 969082350, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'isbn', 1, '9789810743734', 969082350, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082350, '567b3484598a95fd302c2acb1b155368')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082071  (17.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:36', NULL, 969082071, 'BorrowDirect', 'queued', '2015-02-12 20:45:36')  (21.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2210  (14.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082071 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082350) ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082350) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082071) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082071) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082071 AND `dispatched_services`.`id` = 2210 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2210  (15.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082071 LIMIT 1 DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082350 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082350) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082071 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082350 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082071  (18.2ms) COMMIT Completed 200 OK in 261ms (Views: 18.8ms | ActiveRecord: 149.4ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e6df3093edfeb7544ff929e738ec644' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:36', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'format', 'journal', 969082351, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'isbn', 1, '9789810743734', 969082351, '9789810743734')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082351, '7e6df3093edfeb7544ff929e738ec644')  (27.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082072  (16.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:36', NULL, 969082072, 'BorrowDirect', 'queued', '2015-02-12 20:45:36')  (15.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2211  (15.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082072 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082351) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082351) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082072) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082072) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082072 AND `dispatched_services`.`id` = 2211 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2211  (25.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082072 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082351 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082351) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082072 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082351 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082072  (16.2ms) COMMIT Completed 200 OK in 236ms (Views: 18.9ms | ActiveRecord: 164.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66c03471ba849d2c280e1c26547f034e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:36', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'format', 'journal', 969082352, 'journal') SQL (1.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'isbn', 1, '9789810743734', 969082352, '9789810743734')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082352, '66c03471ba849d2c280e1c26547f034e')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082073  (20.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:36', NULL, 969082073, 'BorrowDirect', 'queued', '2015-02-12 20:45:36')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2212  (16.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082073 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082352) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082352) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082073) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082073) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082073 AND `dispatched_services`.`id` = 2212 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2212  (25.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082073 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082352 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082352) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082073 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082352 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082073  (14.1ms) COMMIT Completed 200 OK in 233ms (Views: 19.7ms | ActiveRecord: 158.3ms)  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 44ms (Views: 43.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3882aaca2b3a63612e53a01ccd43f659' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:36', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'format', 'journal', 969082353, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'isbn', 1, '121212', 969082353, '121212')  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082353, '3882aaca2b3a63612e53a01ccd43f659')  (19.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082074"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082074 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082074 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082074  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082074, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082074\n', 'BorrowDirect', 'bd_request_status')  (20.2ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082353 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082353) Redirected to http://test.host/resolve?umlaut.request_id=969082074&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A45%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 29.6ms) Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bf1aca778ea01b2653f122875a85a44' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082354, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '121212', 969082354, '121212')  (18.0ms) COMMIT  (1.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082354, '9bf1aca778ea01b2653f122875a85a44')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082075, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082075"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082075 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082075 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013064  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082075, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013064\n', 'BorrowDirect', 'bd_request_status')  (15.7ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082354 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082354) Redirected to http://test.host/resolve?umlaut.request_id=969082075&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A45%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.1ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8564f68a653005e5d585d7e237870383' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082355, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '121212', 969082355, '121212')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082355, '8564f68a653005e5d585d7e237870383')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082076, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082076"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082076 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082076 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082076 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:37', NULL, 969082076, 'BorrowDirect', 'in_progress', '2015-02-12 20:45:37')  (24.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:37' WHERE `dispatched_services`.`id` = 2213  (34.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082076, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (23.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082355 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082355) Redirected to http://test.host/resolve?umlaut.request_id=969082076&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A45%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 107ms (ActiveRecord: 96.7ms) DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082076 ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082076 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082076 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:37' WHERE `dispatched_services`.`id` = 2213  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013067  (21.6ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fc70ac454b76df243bec972674df5e7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082356, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '121212', 969082356, '121212')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082356, '8fc70ac454b76df243bec972674df5e7')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082077"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082077 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082077 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082077, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082356 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082356) Redirected to http://test.host/resolve?umlaut.request_id=969082077&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A45%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.6ms) Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b1a92c1429c433601aa31a83050a622' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082357, 'journal') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '9789810743734', 969082357, '9789810743734')  (16.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082357, '1b1a92c1429c433601aa31a83050a622')  (17.2ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082078 ORDER BY id ASC Request Load (2.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '957ca886a279271248d5034bb31190fa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082358, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '9789810743734', 969082358, '9789810743734')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082358, '957ca886a279271248d5034bb31190fa')  (14.4ms) COMMIT ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082079 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29ba9354f67d918f0c8276c00ad32200' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082359, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '000000000', 969082359, '000000000')  (47.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082359, '29ba9354f67d918f0c8276c00ad32200')  (27.3ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082080 ORDER BY id ASC Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bd9e95a843479832566dd6aff3ffcdd' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '0109836413') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082360, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '0109836413', 969082360, '0109836413')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082360, '6bd9e95a843479832566dd6aff3ffcdd')  (15.4ms) COMMIT ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082081 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18ec157bea5d459c80a3a43847a3e83c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082361, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '9789810743734', 969082361, '9789810743734')  (25.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082361, '18ec157bea5d459c80a3a43847a3e83c')  (19.3ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082082 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '68924b1eecdada73d00156af2af7a946' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:37', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082362, 'journal') SQL (2.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082362, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'aulast', 1, 'grimes', 969082362, 'Grimes')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082362, '68924b1eecdada73d00156af2af7a946')  (24.8ms) COMMIT  (0.8ms) BEGIN SQL (2.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082083, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (18.3ms) COMMIT ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082083 ORDER BY id ASC Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4d9552c779a4436f108fd5a3083bf19' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:45:37', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082363, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'auinit', 1, 'rd', 969082363, 'RD') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'aulast', 1, 'kaplan', 969082363, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'atitle', 1, 'the coming anarchy', 969082363, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'title', 1, 'the atlantic monthly', 969082363, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'volume', 1, '273', 969082363, '273') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'issue', 1, '2', 969082363, '2') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'date', 1, '1994', 969082363, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'spage', 1, '44', 969082363, '44') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'issn', 1, '1072-7825', 969082363, '1072-7825')  (15.7ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082363, 'info:sid/google', 'b4d9552c779a4436f108fd5a3083bf19')  (39.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082084 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:37', NULL, 969082084, 'test_bd', 'successful', '2015-02-12 20:45:37')  (23.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2214  (21.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082084 ServiceResponse Exists (1.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082084 LIMIT 1 Request Load (2.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76222d6371bb08a84d0270e0fc0c3301' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:45:38', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'format', 'book', 969082364, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'auinit', 1, 'eh', 969082364, 'EH') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'aulast', 1, 'lenneberg', 969082364, 'Lenneberg') SQL (4.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'title', 1, 'biological foundations of language', 969082364, 'Biological foundations of language') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'genre', 1, 'book', 969082364, 'book') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'date', 1, '1967', 969082364, '1967')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:45:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082364, 'info:sid/google', '76222d6371bb08a84d0270e0fc0c3301')  (25.2ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082085 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082085, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (23.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082085 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:38', NULL, 969082085, 'test_bd', 'successful', '2015-02-12 20:45:38')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2215  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082085 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b17049c2a9fa91cff100a8861778e1ec' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:38', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'format', 'journal', 969082365, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'title', 1, 'title', 969082365, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'author', 1, 'au', 969082365, 'au')  (23.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:45:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082365, 'b17049c2a9fa91cff100a8861778e1ec')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:38', 969082086, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (19.0ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082086 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082086 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:38', NULL, 969082086, 'test_bd', 'successful', '2015-02-12 20:45:38')  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2216  (15.4ms) COMMIT DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082086 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3edad09810ac80e70e42d41fb6c96ba6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:38', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'format', 'journal', 969082366, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'title', 1, 'title', 969082366, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'author', 1, 'au', 969082366, 'au')  (16.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:45:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082366, '3edad09810ac80e70e42d41fb6c96ba6')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:38', 969082087, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (15.4ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082087 ORDER BY id ASC  (0.9ms) BEGIN SQL (2.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082087, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082087 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:38', NULL, 969082087, 'test_bd', 'successful', '2015-02-12 20:45:38')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2217  (20.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082087 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a4b9e2032cd813cf68cc2a641460192' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:38', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'format', 'journal', 969082367, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'title', 1, 'title', 969082367, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'author', 1, 'au', 969082367, 'au')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:45:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082367, '3a4b9e2032cd813cf68cc2a641460192')  (31.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:38', 969082088, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (16.2ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082088 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082088, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082088 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:38', NULL, 969082088, 'test_bd', 'successful', '2015-02-12 20:45:38')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2218  (15.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082088 ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ffbff8baede8fc3b0a6ab241f7c831f1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:29', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:29', 'format', 'journal', 969082368, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:29', 'isbn', 1, '9789810743734', 969082368, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082368, 'ffbff8baede8fc3b0a6ab241f7c831f1')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082089  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:29', NULL, 969082089, 'test_bd', 'queued', '2015-02-12 20:47:29')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:29' WHERE `dispatched_services`.`id` = 2219  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082089 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082368) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082368) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082089) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082089) DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082089 AND `dispatched_services`.`id` = 2219 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2219  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082089 LIMIT 1 DispatchedService Load (7.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082368 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082368) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082089 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (34.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (37.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (39.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (93.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082368 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082089  (15.1ms) COMMIT Completed 200 OK in 617ms (Views: 102.3ms | ActiveRecord: 211.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:47:30 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af199b3058cd8703f3163420662d8683' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:30', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'format', 'book', 969082369, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'genre', 1, 'book', 969082369, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'author', 1, 'smith', 969082369, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'title', 1, 'some book', 969082369, 'Some Book')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:47:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082369, 'af199b3058cd8703f3163420662d8683')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082090  (14.5ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:30', NULL, 969082090, 'BorrowDirect', 'queued', '2015-02-12 20:47:30')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2220  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082090 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082369) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082369) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082090) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082090) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082090 AND `dispatched_services`.`id` = 2220 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2220  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082090 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082369 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082369) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082090 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082369 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082090  (14.8ms) COMMIT Completed 200 OK in 219ms (Views: 20.0ms | ActiveRecord: 142.7ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:47:30 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b45dd9e5009570fe091c09753897121' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:30', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'format', 'journal', 969082370, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'genre', 1, 'article', 969082370, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'title', 1, 'foo', 969082370, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'author', 1, 'bar', 969082370, 'bar')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:47:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082370, '4b45dd9e5009570fe091c09753897121')  (14.4ms) COMMIT  (1.2ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082091  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:30', NULL, 969082091, 'BorrowDirect', 'queued', '2015-02-12 20:47:30')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2221  (13.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082091 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082370) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082370) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082091) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082091) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082091 AND `dispatched_services`.`id` = 2221 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2221  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082091 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082370 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082370) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082091 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082370 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082091  (14.2ms) COMMIT Completed 200 OK in 200ms (Views: 17.0ms | ActiveRecord: 113.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08961149ee6c52ab13132904d563c524' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.9ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:30', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'format', 'book', 969082371, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'genre', 1, 'book', 969082371, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'title', 1, 'foo', 969082371, 'foo')  (15.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:47:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082371, '08961149ee6c52ab13132904d563c524')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082092 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:30', NULL, 969082092, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:47:30')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2222  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082092" for 127.0.0.1 at 2015-02-12 15:47:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082092"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082092 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082371 LIMIT 1 ReferentValue Load (2.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082371)  (3.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082092  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082092 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082092 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082092 [["request_id", 969082092]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082371 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082371) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082092 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082092 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082371 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082092  (14.1ms) COMMIT Completed 200 OK in 76ms (Views: 19.0ms | ActiveRecord: 48.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0a56bd8225927766f1fc789f95d98ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:30', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'format', 'journal', 969082372, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'isbn', 1, '9789810743734', 969082372, '9789810743734')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082372, 'a0a56bd8225927766f1fc789f95d98ff')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082093  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:30', NULL, 969082093, 'BorrowDirect', 'queued', '2015-02-12 20:47:30')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2223  (14.0ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082093 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082372) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082372) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082093) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082093) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082093 AND `dispatched_services`.`id` = 2223 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2223  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082093 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082372 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082372) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082093 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082372 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082093  (14.2ms) COMMIT Completed 200 OK in 201ms (Views: 19.0ms | ActiveRecord: 130.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:47:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9c34cb827e3b41b283d77446bb6e381' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:31', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'format', 'journal', 969082373, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'isbn', 1, '0109836413', 969082373, '0109836413')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:47:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082373, 'd9c34cb827e3b41b283d77446bb6e381')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082094  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:31', NULL, 969082094, 'BorrowDirect', 'queued', '2015-02-12 20:47:31')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2224  (14.4ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082094 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082373) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082373) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082094) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082094) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082094 AND `dispatched_services`.`id` = 2224 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2224  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082094 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082373 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082373) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082094 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082373 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082094  (14.8ms) COMMIT Completed 200 OK in 203ms (Views: 18.4ms | ActiveRecord: 131.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2c13cb82033c3d8fa410de5bb6a84eb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:31', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'format', 'journal', 969082374, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'isbn', 1, '9789810743734', 969082374, '9789810743734')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082374, 'e2c13cb82033c3d8fa410de5bb6a84eb')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082095  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:31', NULL, 969082095, 'BorrowDirect', 'queued', '2015-02-12 20:47:31')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2225  (14.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082095 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082374) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082374) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082095) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082095) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (55.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082095 AND `dispatched_services`.`id` = 2225 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2225  (53.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082095 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082374 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082374) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082095 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082374 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (4.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082095  (30.4ms) COMMIT Completed 200 OK in 304ms (Views: 20.4ms | ActiveRecord: 190.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69c1d6f3a2f83016802ccdae2360c36d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:31', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'format', 'journal', 969082375, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'isbn', 1, '9789810743734', 969082375, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082375, '69c1d6f3a2f83016802ccdae2360c36d')  (19.8ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082096  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:31', NULL, 969082096, 'BorrowDirect', 'queued', '2015-02-12 20:47:31')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2226  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082096 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082375) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082375) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082096) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082096) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082096 AND `dispatched_services`.`id` = 2226 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2226  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082096 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082375 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082375) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082096 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082375 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082096  (15.1ms) COMMIT Completed 200 OK in 249ms (Views: 19.3ms | ActiveRecord: 137.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b4f6f6cbd12311c31193532de1c97aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:31', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'format', 'journal', 969082376, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'isbn', 1, '9789810743734', 969082376, '9789810743734')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (2.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082376, '8b4f6f6cbd12311c31193532de1c97aa')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082097  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:32', NULL, 969082097, 'BorrowDirect', 'queued', '2015-02-12 20:47:32')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:32' WHERE `dispatched_services`.`id` = 2227  (13.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082097 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082376) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082376) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082097) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082097) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082097 AND `dispatched_services`.`id` = 2227 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:32' WHERE `dispatched_services`.`id` = 2227  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082097 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082376 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082376) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082097 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082376 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082097  (14.7ms) COMMIT Completed 200 OK in 205ms (Views: 19.7ms | ActiveRecord: 135.2ms) Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '52ea3d689d14461207cba99ae66f18d2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:47:32', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082377, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'auinit', 1, 'rd', 969082377, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'aulast', 1, 'kaplan', 969082377, 'Kaplan') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'atitle', 1, 'the coming anarchy', 969082377, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'the atlantic monthly', 969082377, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'volume', 1, '273', 969082377, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'issue', 1, '2', 969082377, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'date', 1, '1994', 969082377, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'spage', 1, '44', 969082377, '44') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'issn', 1, '1072-7825', 969082377, '1072-7825')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082377, 'info:sid/google', '52ea3d689d14461207cba99ae66f18d2')  (14.2ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082098 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:32', NULL, 969082098, 'test_bd', 'successful', '2015-02-12 20:47:32')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:32' WHERE `dispatched_services`.`id` = 2228  (15.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082098 ServiceResponse Exists (1.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082098 LIMIT 1 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4953c4551aef697322219e7b320782be' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:47:32', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'book', 969082378, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'auinit', 1, 'eh', 969082378, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'aulast', 1, 'lenneberg', 969082378, 'Lenneberg') SQL (4.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'biological foundations of language', 969082378, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'genre', 1, 'book', 969082378, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'date', 1, '1967', 969082378, '1967')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082378, 'info:sid/google', '4953c4551aef697322219e7b320782be')  (15.3ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082099 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e7f141fa4c012e738f6acaa0aadd329' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:32', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082379, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082379, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'aulast', 1, 'grimes', 969082379, 'Grimes')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082379, '8e7f141fa4c012e738f6acaa0aadd329')  (14.5ms) COMMIT Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f5e9661143adc7ca405fca97030a892' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:32', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082380, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'isbn', 1, '9789810743734', 969082380, '9789810743734')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082380, '8f5e9661143adc7ca405fca97030a892')  (14.3ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082101 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05165363a6e2d6047bf2b9b651ddf932' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:32', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082381, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'title', 969082381, 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'author', 1, 'au', 969082381, 'au')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082381, '05165363a6e2d6047bf2b9b651ddf932')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:32', 969082102, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082102 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082102 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:32', NULL, 969082102, 'test_bd', 'successful', '2015-02-12 20:47:32')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:32' WHERE `dispatched_services`.`id` = 2229  (14.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082102 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfc5e167f5cfdaeee0595c5d8c6bfc41' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:32', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082382, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'title', 969082382, 'title') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'author', 1, 'au', 969082382, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082382, 'bfc5e167f5cfdaeee0595c5d8c6bfc41')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:32', 969082103, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (15.6ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082103 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd32cc23af6733dea50933772df48f25' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:32', 'title') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082383, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'title', 969082383, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'author', 1, 'au', 969082383, 'au')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082383, 'dd32cc23af6733dea50933772df48f25')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:32', 969082104, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.4ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082104 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c83d85377e815ed779fe25a851e0bc2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (2.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:32', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082384, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'isbn', 1, '9789810743734', 969082384, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082384, '6c83d85377e815ed779fe25a851e0bc2')  (14.1ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082105 ORDER BY id ASC Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f551467ec6bb868b93fa1fae51207672' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:32', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082385, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'isbn', 1, '0109836413', 969082385, '0109836413')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082385, 'f551467ec6bb868b93fa1fae51207672')  (14.3ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082106 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecc521f08cd06d10f948779924c52424' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:32', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082386, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'isbn', 1, '9789810743734', 969082386, '9789810743734')  (215.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082386, 'ecc521f08cd06d10f948779924c52424')  (14.3ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082107 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2389d97596a237e544dd79c900ebac0' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082387, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '000000000', 969082387, '000000000')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082387, 'b2389d97596a237e544dd79c900ebac0')  (14.5ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082108 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a720367f8fbbe92e6ac9bdc00bcf6ed' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:33', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082388, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'title', 1, 'title', 969082388, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'author', 1, 'au', 969082388, 'au')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082388, '6a720367f8fbbe92e6ac9bdc00bcf6ed')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082109, '--- {}\n', 'test_holding', 'holding')  (13.9ms) COMMIT ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09198795289c682e047d6ada28685541' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082389, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '121212', 969082389, '121212')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082389, '09198795289c682e047d6ada28685541')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082110"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082110 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082110 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082110  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082110, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082110\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082389 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082389) Redirected to http://test.host/resolve?umlaut.request_id=969082110&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A47%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.3ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a3e6d9669ac2338e89473def92790e1d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082390, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '121212', 969082390, '121212')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082390, 'a3e6d9669ac2338e89473def92790e1d')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082111, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082111"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082111 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082111 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013081  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082111, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013081\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082390 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082390) Redirected to http://test.host/resolve?umlaut.request_id=969082111&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A47%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 28ms (ActiveRecord: 21.6ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9294a94478c2b8ea3e8e6c72ffade7f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082391, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '121212', 969082391, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082391, 'a9294a94478c2b8ea3e8e6c72ffade7f')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082112, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082112"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082112 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082112 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082112 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:33', NULL, 969082112, 'BorrowDirect', 'in_progress', '2015-02-12 20:47:33')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:33' WHERE `dispatched_services`.`id` = 2230  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082112, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082391 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082391) Redirected to http://test.host/resolve?umlaut.request_id=969082112&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A47%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 68ms (ActiveRecord: 56.6ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082112 ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082112 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082112 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:33' WHERE `dispatched_services`.`id` = 2230  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013084  (14.0ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83366c6b40efa58d3dffc46dc1185a01' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082392, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '121212', 969082392, '121212')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082392, '83366c6b40efa58d3dffc46dc1185a01')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082113"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082113 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082113 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082113, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082392 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082392) Redirected to http://test.host/resolve?umlaut.request_id=969082113&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A47%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 21.9ms)  (0.6ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (1.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 22ms (Views: 10.9ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 64ms (Views: 0.4ms | ActiveRecord: 6.5ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a38d21174bf0a9a11a6ab8e9f229862a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:01', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:01', 'format', 'journal', 969082393, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:01', 'isbn', 1, '121212', 969082393, '121212')  (27.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:49:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082393, 'a38d21174bf0a9a11a6ab8e9f229862a')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082114"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082114 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082114 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082114  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:01', 969082114, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082114\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082393 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082393) Redirected to http://test.host/resolve?umlaut.request_id=969082114&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A49%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 55ms (ActiveRecord: 29.2ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47a71ac2a7d2cfc647ac0cf81aa042d1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:01', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:01', 'format', 'journal', 969082394, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:01', 'isbn', 1, '121212', 969082394, '121212')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:49:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082394, '47a71ac2a7d2cfc647ac0cf81aa042d1')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082115, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082115"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082115 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082115 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013087  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082115, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013087\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082394 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082394) Redirected to http://test.host/resolve?umlaut.request_id=969082115&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A49%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 22.6ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c22a239db8f52a69d5b29ddd25cdac3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:02', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082395, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'isbn', 1, '121212', 969082395, '121212')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082395, '9c22a239db8f52a69d5b29ddd25cdac3')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082116, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082116"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082116 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082116 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082116 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:02', NULL, 969082116, 'BorrowDirect', 'in_progress', '2015-02-12 20:49:02')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2231  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082116, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082395 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082395) Redirected to http://test.host/resolve?umlaut.request_id=969082116&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A49%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 82ms (ActiveRecord: 61.4ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082116 ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082116 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082116 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2231  (22.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013090  (14.1ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '350e97322b60cd49dfb7912ae4ab5e84' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:02', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082396, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'isbn', 1, '121212', 969082396, '121212')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082396, '350e97322b60cd49dfb7912ae4ab5e84')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082117"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082117 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082117 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082117, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082396 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082396) Redirected to http://test.host/resolve?umlaut.request_id=969082117&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A49%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 38ms (ActiveRecord: 30.9ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '905307531e04df9fd88cb5acd045810e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:02', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082397, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082397, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'aulast', 1, 'grimes', 969082397, 'Grimes')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082397, '905307531e04df9fd88cb5acd045810e')  (13.9ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aade275d897883ba9f21e9e60d0e4f23' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:49:02', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082398, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'auinit', 1, 'rd', 969082398, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'aulast', 1, 'kaplan', 969082398, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'atitle', 1, 'the coming anarchy', 969082398, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'title', 1, 'the atlantic monthly', 969082398, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'volume', 1, '273', 969082398, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'issue', 1, '2', 969082398, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'date', 1, '1994', 969082398, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'spage', 1, '44', 969082398, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'issn', 1, '1072-7825', 969082398, '1072-7825')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082398, 'info:sid/google', 'aade275d897883ba9f21e9e60d0e4f23')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082119 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:02', NULL, 969082119, 'test_bd', 'successful', '2015-02-12 20:49:02')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2232  (18.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082119 ServiceResponse Exists (1.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082119 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e3c015ad40462bfd7aa69cb589585d3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:49:02', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'book', 969082399, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'auinit', 1, 'eh', 969082399, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'aulast', 1, 'lenneberg', 969082399, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'title', 1, 'biological foundations of language', 969082399, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'genre', 1, 'book', 969082399, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'date', 1, '1967', 969082399, '1967')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082399, 'info:sid/google', '9e3c015ad40462bfd7aa69cb589585d3')  (14.5ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082120 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed4349a343976c1f2b903b71cee0a142' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:02', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082400, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'isbn', 1, '9789810743734', 969082400, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082400, 'ed4349a343976c1f2b903b71cee0a142')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082121  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:02', NULL, 969082121, 'test_bd', 'queued', '2015-02-12 20:49:02')  (17.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2233  (18.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082121 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082400) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082400) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082121) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082121) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082121 AND `dispatched_services`.`id` = 2233 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2233  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082121 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082400 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082400) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082121 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (36.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (37.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms) Permalink Load (1.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082400 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (11.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (1.2ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082121  (25.4ms) COMMIT Completed 200 OK in 370ms (Views: 127.1ms | ActiveRecord: 152.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:49:03 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2cf8efc1fb5ea2b2cb013fcd62108722' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:03', 'some book') SQL (4.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'format', 'book', 969082401, 'book') SQL (22.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'genre', 1, 'book', 969082401, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'author', 1, 'smith', 969082401, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'title', 1, 'some book', 969082401, 'Some Book')  (22.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:49:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082401, '2cf8efc1fb5ea2b2cb013fcd62108722')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082122  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:03', NULL, 969082122, 'BorrowDirect', 'queued', '2015-02-12 20:49:03')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2234  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082122 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082401) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082401) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082122) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082122) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082122 AND `dispatched_services`.`id` = 2234 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2234  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082122 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082401 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082401) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082122 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082401 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082122  (14.5ms) COMMIT Completed 200 OK in 246ms (Views: 21.4ms | ActiveRecord: 170.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:49:03 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '035b570c9946a2cc6bfe4b2dd7df1f53' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:03', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'format', 'journal', 969082402, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'genre', 1, 'article', 969082402, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'title', 1, 'foo', 969082402, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'author', 1, 'bar', 969082402, 'bar')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:49:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082402, '035b570c9946a2cc6bfe4b2dd7df1f53')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082123  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:03', NULL, 969082123, 'BorrowDirect', 'queued', '2015-02-12 20:49:03')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2235  (13.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082123 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082402) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082402) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082123) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082123) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082123 AND `dispatched_services`.`id` = 2235 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2235  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082123 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082402 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082402) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082123 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082402 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082123  (15.6ms) COMMIT Completed 200 OK in 204ms (Views: 18.4ms | ActiveRecord: 114.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd11518f0becf3484e80df66c4a371a3' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:03', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'format', 'book', 969082403, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'genre', 1, 'book', 969082403, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'title', 1, 'foo', 969082403, 'foo')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:49:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082403, 'cd11518f0becf3484e80df66c4a371a3')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082124 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:03', NULL, 969082124, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:49:03')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2236  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969082124" for 127.0.0.1 at 2015-02-12 15:49:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082124"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082124 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082403 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082403)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082124  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082124 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082124 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082124 [["request_id", 969082124]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082403 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082403) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082124 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082124 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082403 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082124  (14.2ms) COMMIT Completed 200 OK in 71ms (Views: 19.0ms | ActiveRecord: 44.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '931596f147f1563df50afa643a02dba4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:03', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'format', 'journal', 969082404, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'isbn', 1, '9789810743734', 969082404, '9789810743734')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082404, '931596f147f1563df50afa643a02dba4')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082125  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:03', NULL, 969082125, 'BorrowDirect', 'queued', '2015-02-12 20:49:03')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2237  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082125 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082404) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082404) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082125) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082125) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082125 AND `dispatched_services`.`id` = 2237 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2237  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082125 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082404 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082404) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082125 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082404 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082125  (14.2ms) COMMIT Completed 200 OK in 242ms (Views: 20.4ms | ActiveRecord: 128.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:49:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9754d56ba8efcec049e185db0827749a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:03', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082405, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'isbn', 1, '0109836413', 969082405, '0109836413')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:49:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082405, '9754d56ba8efcec049e185db0827749a')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082126  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:04', NULL, 969082126, 'BorrowDirect', 'queued', '2015-02-12 20:49:04')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2238  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082126 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082405) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082405) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082126) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082126) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082126 AND `dispatched_services`.`id` = 2238 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2238  (14.9ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082126 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082405 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082405) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082126 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082405 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082126  (14.4ms) COMMIT Completed 200 OK in 203ms (Views: 19.1ms | ActiveRecord: 131.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '638d0c3df0dde0b496845aead486c40e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:04', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082406, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'isbn', 1, '9789810743734', 969082406, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082406, '638d0c3df0dde0b496845aead486c40e')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082127  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:04', NULL, 969082127, 'BorrowDirect', 'queued', '2015-02-12 20:49:04')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2239  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082127 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082406) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082406) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082127) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082127) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082127 AND `dispatched_services`.`id` = 2239 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2239  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082127 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082406 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082406) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082127 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082406 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082127  (14.4ms) COMMIT Completed 200 OK in 201ms (Views: 19.6ms | ActiveRecord: 130.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '365c01755955e23087e0129a1b14f61e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:04', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082407, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'isbn', 1, '9789810743734', 969082407, '9789810743734')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082407, '365c01755955e23087e0129a1b14f61e')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082128  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:04', NULL, 969082128, 'BorrowDirect', 'queued', '2015-02-12 20:49:04')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2240  (14.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082128 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082407) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082407) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082128) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082128) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082128 AND `dispatched_services`.`id` = 2240 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2240  (18.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082128 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082407 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082407) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082128 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082407 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082128  (14.2ms) COMMIT Completed 200 OK in 250ms (Views: 20.0ms | ActiveRecord: 137.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe113f0dfb6d72bc398899e536c8c6fd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:04', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082408, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'isbn', 1, '9789810743734', 969082408, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (3.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082408, 'fe113f0dfb6d72bc398899e536c8c6fd')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082129  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:04', NULL, 969082129, 'BorrowDirect', 'queued', '2015-02-12 20:49:04')  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2241  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082129 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082408) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082408) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082129) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082129) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082129 AND `dispatched_services`.`id` = 2241 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2241  (14.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082129 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082408 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082408) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082129 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082408 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082129  (14.4ms) COMMIT Completed 200 OK in 207ms (Views: 19.8ms | ActiveRecord: 134.5ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfb3ae99e531505bde83cf934f074b01' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:04', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082409, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'title', 1, 'title', 969082409, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'author', 1, 'au', 969082409, 'au')  (16.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:49:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082409, 'dfb3ae99e531505bde83cf934f074b01')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:04', 969082130, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082130 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de096849fc7fc5815e1745fe7f6c1954' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:04', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082410, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'title', 1, 'title', 969082410, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'author', 1, 'au', 969082410, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082410, 'de096849fc7fc5815e1745fe7f6c1954')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:05', 969082131, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (13.9ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082131 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082131 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:05', NULL, 969082131, 'test_bd', 'successful', '2015-02-12 20:49:05')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:05' WHERE `dispatched_services`.`id` = 2242  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082131 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acf0adcce2a118c287ce2434efd021a3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:05', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082411, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'title', 1, 'title', 969082411, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'author', 1, 'au', 969082411, 'au')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082411, 'acf0adcce2a118c287ce2434efd021a3')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:05', 969082132, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (18.1ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082132 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '369ce7882f33633c0c6e856b8eccbd5c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082412, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '9789810743734', 969082412, '9789810743734')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082412, '369ce7882f33633c0c6e856b8eccbd5c')  (14.6ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082133 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8dcd9aaa3210c27d1cd29ed5d8e46c6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082413, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '9789810743734', 969082413, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082413, 'e8dcd9aaa3210c27d1cd29ed5d8e46c6')  (14.2ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082134 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5f17720e4f53ca8707ddc7d5e006d0b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082414, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '0109836413', 969082414, '0109836413')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082414, 'b5f17720e4f53ca8707ddc7d5e006d0b')  (14.0ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082135 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '93f91b8974f5e3c40c0b43e1893d5755' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082415, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '000000000', 969082415, '000000000')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082415, '93f91b8974f5e3c40c0b43e1893d5755')  (14.1ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082136 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '57427e0864cf7a9d0dbab365d2f5bda7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082416, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '9789810743734', 969082416, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082416, '57427e0864cf7a9d0dbab365d2f5bda7')  (14.0ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082137 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc9691587f41a95b296bd71482d7016e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:05', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082417, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'title', 1, 'title', 969082417, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'author', 1, 'au', 969082417, 'au')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082417, 'dc9691587f41a95b296bd71482d7016e')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:05', 969082138, '--- {}\n', 'test_holding', 'holding')  (14.2ms) COMMIT  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a4e862c815df12ee852af9505578599' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (3.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082418, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '9789810743734', 969082418, '9789810743734')  (22.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082418, '5a4e862c815df12ee852af9505578599')  (15.0ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082139 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '578432070816872f63b6eff8ae15cc28' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082419, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '9789810743734', 969082419, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082419, '578432070816872f63b6eff8ae15cc28')  (14.0ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082140 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10749e40499bc47aa8078f2e6918bcf6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082420, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '0109836413', 969082420, '0109836413')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (41.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082420, '10749e40499bc47aa8078f2e6918bcf6')  (24.6ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082141 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41e397efa1b73987b2ec8efbc386ebb2' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082421, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '000000000', 969082421, '000000000')  (16.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082421, '41e397efa1b73987b2ec8efbc386ebb2')  (14.6ms) COMMIT ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082142 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 20ms (Views: 11.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.6ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c82c9bf4f4883a24fa59fdf6da4187d2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082422, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '121212', 969082422, '121212')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082422, 'c82c9bf4f4883a24fa59fdf6da4187d2')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082143"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082143 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082143 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082143  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:48', 969082143, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082143\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082422 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082422) Redirected to http://test.host/resolve?umlaut.request_id=969082143&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A53%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 80ms (ActiveRecord: 26.5ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '981210ea3d5d91c8cc8b4c4d468c6d34' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082423, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '121212', 969082423, '121212')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082423, '981210ea3d5d91c8cc8b4c4d468c6d34')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:48', 969082144, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082144"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082144 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082144 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013097  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:48', 969082144, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013097\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082423 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082423) Redirected to http://test.host/resolve?umlaut.request_id=969082144&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A53%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 23.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6cf0740980f2389b375aebbfa916a345' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082424, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '121212', 969082424, '121212')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082424, '6cf0740980f2389b375aebbfa916a345')  (18.6ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:48', 969082145, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082145"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082145 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082145 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082145 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:49', NULL, 969082145, 'BorrowDirect', 'in_progress', '2015-02-12 20:53:49')  (15.6ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2243  (18.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082145, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082424 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082424) Redirected to http://test.host/resolve?umlaut.request_id=969082145&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A53%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 90ms (ActiveRecord: 69.4ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082145 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082145 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082145 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2243  (22.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013100  (14.3ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0629e2ceaa46444900bd4ef86ff34fc4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:49', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082425, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'isbn', 1, '121212', 969082425, '121212')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082425, '0629e2ceaa46444900bd4ef86ff34fc4')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082146"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082146 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082146 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082146, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082425 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082425) Redirected to http://test.host/resolve?umlaut.request_id=969082146&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A53%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 31.9ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95ec160906ec7ae153845cbba8aca40d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:49', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082426, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'title', 969082426, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'author', 1, 'au', 969082426, 'au')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082426, '95ec160906ec7ae153845cbba8aca40d')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082147, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082147 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082147 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:49', NULL, 969082147, 'test_bd', 'successful', '2015-02-12 20:53:49')  (16.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2244  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082147 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3968a5eedc9f0cfbc0304f761695f326' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:49', 'title') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082427, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'title', 969082427, 'title') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'author', 1, 'au', 969082427, 'au')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082427, '3968a5eedc9f0cfbc0304f761695f326')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082148, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082148 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fbfc3de152d057eb13176212e84a09b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:49', 'title') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082428, 'journal') SQL (3.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'title', 969082428, 'title') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'author', 1, 'au', 969082428, 'au')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082428, '0fbfc3de152d057eb13176212e84a09b')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082149, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (15.0ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082149 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cafe163b8119a1057036724a15b373d2' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:53:49', 'biological foundations of language', '1967') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'book', 969082429, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'auinit', 1, 'eh', 969082429, 'EH') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'aulast', 1, 'lenneberg', 969082429, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'biological foundations of language', 969082429, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'genre', 1, 'book', 969082429, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'date', 1, '1967', 969082429, '1967')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082429, 'info:sid/google', 'cafe163b8119a1057036724a15b373d2')  (18.0ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082150 ORDER BY id ASC Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '686cb08df85017b61bc30d70db36a712' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:53:49', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082430, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'auinit', 1, 'rd', 969082430, 'RD') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'aulast', 1, 'kaplan', 969082430, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'atitle', 1, 'the coming anarchy', 969082430, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'the atlantic monthly', 969082430, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'volume', 1, '273', 969082430, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'issue', 1, '2', 969082430, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'date', 1, '1994', 969082430, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'spage', 1, '44', 969082430, '44') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'issn', 1, '1072-7825', 969082430, '1072-7825')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082430, 'info:sid/google', '686cb08df85017b61bc30d70db36a712')  (13.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082151 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:49', NULL, 969082151, 'test_bd', 'successful', '2015-02-12 20:53:49')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2245  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082151 ServiceResponse Exists (1.6ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082151 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1db675a3aaf25744b3236c5c13a09fe0' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:49', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082431, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082431, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'aulast', 1, 'grimes', 969082431, 'Grimes')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082431, '1db675a3aaf25744b3236c5c13a09fe0')  (15.3ms) COMMIT  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f0b7fc2556663d55833bffb4e22c6fe' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:49', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082432, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'isbn', 1, '9789810743734', 969082432, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082432, '6f0b7fc2556663d55833bffb4e22c6fe')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082153  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:49', NULL, 969082153, 'test_bd', 'queued', '2015-02-12 20:53:49')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2246  (13.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082153 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082432) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082432) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082153) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082153) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082153 AND `dispatched_services`.`id` = 2246 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2246  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082153 LIMIT 1 DispatchedService Load (40.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.8ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082432 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082432) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082153 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082432 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082153  (14.6ms) COMMIT Completed 200 OK in 352ms (Views: 129.3ms | ActiveRecord: 133.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:53:50 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f7f3987e91247f0b1fb350501c721cc' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:50', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'format', 'book', 969082433, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'genre', 1, 'book', 969082433, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'author', 1, 'smith', 969082433, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'title', 1, 'some book', 969082433, 'Some Book')  (15.7ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:53:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082433, '9f7f3987e91247f0b1fb350501c721cc')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082154  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:50', NULL, 969082154, 'BorrowDirect', 'queued', '2015-02-12 20:53:50')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2247  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082154 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082433) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082433) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082154) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082154) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082154 AND `dispatched_services`.`id` = 2247 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2247  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082154 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082433 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082433) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082154 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082433 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082154  (14.6ms) COMMIT Completed 200 OK in 214ms (Views: 19.1ms | ActiveRecord: 139.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:53:50 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2722469826bdafef4a2a429771c543d6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:50', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'format', 'journal', 969082434, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'genre', 1, 'article', 969082434, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'title', 1, 'foo', 969082434, 'foo') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'author', 1, 'bar', 969082434, 'bar')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:53:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082434, '2722469826bdafef4a2a429771c543d6')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082155  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:50', NULL, 969082155, 'BorrowDirect', 'queued', '2015-02-12 20:53:50')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2248  (14.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082155 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082434) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082434) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082155) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082155) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082155 AND `dispatched_services`.`id` = 2248 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2248  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082155 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082434 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082434) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082155 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082434 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082155  (14.5ms) COMMIT Completed 200 OK in 206ms (Views: 16.5ms | ActiveRecord: 117.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7ad534077569b9551c692ba9bd4d866' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:50', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'format', 'book', 969082435, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'genre', 1, 'book', 969082435, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'title', 1, 'foo', 969082435, 'foo')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:53:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082435, 'b7ad534077569b9551c692ba9bd4d866')  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082156 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:50', NULL, 969082156, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:53:50')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2249  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082156" for 127.0.0.1 at 2015-02-12 15:53:50 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082156"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082156 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082435 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082435)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082156  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082156 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082156 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082156 [["request_id", 969082156]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082435 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082435) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082156 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082156 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082435 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082156  (15.3ms) COMMIT Completed 200 OK in 73ms (Views: 18.3ms | ActiveRecord: 46.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6515eb3927668815527a4bd111ce09c5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:50', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'format', 'journal', 969082436, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'isbn', 1, '9789810743734', 969082436, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082436, '6515eb3927668815527a4bd111ce09c5')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082157  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:50', NULL, 969082157, 'BorrowDirect', 'queued', '2015-02-12 20:53:50')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2250  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082157 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082436) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082436) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082157) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082157) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082157 AND `dispatched_services`.`id` = 2250 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2250  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082157 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082436 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082436) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082157 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082436 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082157  (14.3ms) COMMIT Completed 200 OK in 205ms (Views: 19.2ms | ActiveRecord: 134.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:53:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb539c1a61d7a27d635fd6d4809ed7d1' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:51', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082437, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'isbn', 1, '0109836413', 969082437, '0109836413')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:53:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082437, 'fb539c1a61d7a27d635fd6d4809ed7d1')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082158  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:51', NULL, 969082158, 'BorrowDirect', 'queued', '2015-02-12 20:53:51')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2251  (16.3ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082158 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082437) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082437) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082158) ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082158) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082158 AND `dispatched_services`.`id` = 2251 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2251  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082158 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082437 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082437) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082158 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082437 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082158  (14.5ms) COMMIT Completed 200 OK in 209ms (Views: 18.7ms | ActiveRecord: 137.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b28a8bec3061e3c06c8e0ee85bb6ae08' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:51', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082438, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'isbn', 1, '9789810743734', 969082438, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082438, 'b28a8bec3061e3c06c8e0ee85bb6ae08')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082159  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:51', NULL, 969082159, 'BorrowDirect', 'queued', '2015-02-12 20:53:51')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2252  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082159 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082438) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082438) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082159) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082159) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082159 AND `dispatched_services`.`id` = 2252 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2252  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082159 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082438 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082438) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082159 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082438 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082159  (14.4ms) COMMIT Completed 200 OK in 244ms (Views: 19.9ms | ActiveRecord: 132.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0142759ae82ecc5512f0d9c59f76932' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:51', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082439, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'isbn', 1, '9789810743734', 969082439, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082439, 'e0142759ae82ecc5512f0d9c59f76932')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082160  (14.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:51', NULL, 969082160, 'BorrowDirect', 'queued', '2015-02-12 20:53:51')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2253  (13.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082160 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082439) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082439) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082160) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082160) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082160 AND `dispatched_services`.`id` = 2253 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2253  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082160 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082439 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082439) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082160 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082439 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082160  (14.9ms) COMMIT Completed 200 OK in 208ms (Views: 20.9ms | ActiveRecord: 130.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1592049511ec4b1c31a1d8185d6b16ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:51', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082440, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'isbn', 1, '9789810743734', 969082440, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082440, '1592049511ec4b1c31a1d8185d6b16ff')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082161  (14.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161  (1.2ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:51', NULL, 969082161, 'BorrowDirect', 'queued', '2015-02-12 20:53:51')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2254  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082161 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082440) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082440) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082161) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082161) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082161 AND `dispatched_services`.`id` = 2254 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2254  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082161 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082440 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082440) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082161 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082440 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082161  (14.5ms) COMMIT Completed 200 OK in 202ms (Views: 18.8ms | ActiveRecord: 129.5ms) Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6894a3ef416faed1df1137711494361d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:51', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082441, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'title', 1, 'title', 969082441, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'author', 1, 'au', 969082441, 'au')  (15.2ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:53:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082441, '6894a3ef416faed1df1137711494361d')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:52', 969082162, '--- {}\n', 'test_holding', 'holding')  (14.3ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f3d48be5db85d9b1c47a6159c04ad226' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:52', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:52', 'format', 'journal', 969082442, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:52', 'isbn', 1, '9789810743734', 969082442, '9789810743734')  (14.8ms) COMMIT  (1.2ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082442, 'f3d48be5db85d9b1c47a6159c04ad226')  (14.1ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082163 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89381876c6532f9e835740a7dd8c03a1' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:54:17', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'format', 'journal', 969082443, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'auinit', 1, 'rd', 969082443, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'aulast', 1, 'kaplan', 969082443, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'atitle', 1, 'the coming anarchy', 969082443, 'The coming anarchy') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'title', 1, 'the atlantic monthly', 969082443, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'volume', 1, '273', 969082443, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'issue', 1, '2', 969082443, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'date', 1, '1994', 969082443, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'spage', 1, '44', 969082443, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'issn', 1, '1072-7825', 969082443, '1072-7825')  (22.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:54:17', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082443, 'info:sid/google', '89381876c6532f9e835740a7dd8c03a1')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082164 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:18', NULL, 969082164, 'test_bd', 'successful', '2015-02-12 20:54:18')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2255  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082164 ServiceResponse Exists (1.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082164 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95e3dd70d6032aa89d905e7003335adb' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:18', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'journal', 969082444, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082444, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'aulast', 1, 'grimes', 969082444, 'Grimes')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (3.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:54:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082444, '95e3dd70d6032aa89d905e7003335adb')  (13.9ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '33a181eeebd3f86a9d138cfe8ac19b46' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:54:18', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'book', 969082445, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'auinit', 1, 'eh', 969082445, 'EH') SQL (4.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'aulast', 1, 'lenneberg', 969082445, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'title', 1, 'biological foundations of language', 969082445, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'genre', 1, 'book', 969082445, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'date', 1, '1967', 969082445, '1967')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:54:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082445, 'info:sid/google', '33a181eeebd3f86a9d138cfe8ac19b46')  (16.2ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082166 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37b84a1fe3c29c24589bc8daa4ed80c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:18', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'journal', 969082446, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'isbn', 1, '9789810743734', 969082446, '9789810743734')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082446, '37b84a1fe3c29c24589bc8daa4ed80c0')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082167  (19.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:18', NULL, 969082167, 'test_bd', 'queued', '2015-02-12 20:54:18')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2256  (18.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082167 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082446) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082446) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082167) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082167) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082167 AND `dispatched_services`.`id` = 2256 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2256  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082167 LIMIT 1 DispatchedService Load (37.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082446 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082446) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082167 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (86.8ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082446 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082167  (14.2ms) COMMIT Completed 200 OK in 421ms (Views: 131.9ms | ActiveRecord: 141.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:54:18 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7637b292bc34d100b9082b93c3ed10b' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:18', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'book', 969082447, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'genre', 1, 'book', 969082447, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'author', 1, 'smith', 969082447, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'title', 1, 'some book', 969082447, 'Some Book')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:54:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082447, 'e7637b292bc34d100b9082b93c3ed10b')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082168  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:18', NULL, 969082168, 'BorrowDirect', 'queued', '2015-02-12 20:54:18')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2257  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082168 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082447) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082447) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082168) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082168) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082168 AND `dispatched_services`.`id` = 2257 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2257  (14.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082168 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082447 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082447) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082168 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082447 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (24.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082168  (17.2ms) COMMIT Completed 200 OK in 246ms (Views: 21.4ms | ActiveRecord: 168.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:54:18 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a69251e160c0eb1d9b2ebfc63fd296b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:18', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'journal', 969082448, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'genre', 1, 'article', 969082448, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'title', 1, 'foo', 969082448, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'author', 1, 'bar', 969082448, 'bar')  (47.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:54:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082448, '6a69251e160c0eb1d9b2ebfc63fd296b')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082169  (15.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:19', NULL, 969082169, 'BorrowDirect', 'queued', '2015-02-12 20:54:19')  (13.4ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2258  (14.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082169 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082448) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082448) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082169) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082169) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082169 AND `dispatched_services`.`id` = 2258 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2258  (15.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082169 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082448 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082448) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082169 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082448 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082169  (17.9ms) COMMIT Completed 200 OK in 249ms (Views: 17.6ms | ActiveRecord: 157.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c3ef7f1f70bbac6f24c3f6f83778f36' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:19', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'format', 'book', 969082449, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'genre', 1, 'book', 969082449, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'title', 1, 'foo', 969082449, 'foo')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:54:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082449, '2c3ef7f1f70bbac6f24c3f6f83778f36')  (19.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082170 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:19', NULL, 969082170, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:54:19')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2259  (13.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969082170" for 127.0.0.1 at 2015-02-12 15:54:19 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082170"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082170 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082449 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082449)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082170  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082170 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082170 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082170 [["request_id", 969082170]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082449 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082449) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082170 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082170 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082449 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082170  (14.6ms) COMMIT Completed 200 OK in 71ms (Views: 17.6ms | ActiveRecord: 44.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:19 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfc276479d0d10524b93432b69cc3930' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:19', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'format', 'journal', 969082450, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'isbn', 1, '9789810743734', 969082450, '9789810743734')  (21.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082450, 'bfc276479d0d10524b93432b69cc3930')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082171  (18.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:19', NULL, 969082171, 'BorrowDirect', 'queued', '2015-02-12 20:54:19')  (15.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2260  (18.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082171 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082450) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082450) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082171) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082171) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082171 AND `dispatched_services`.`id` = 2260 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2260  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082171 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082450 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082450) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082171 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082450 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082171  (17.4ms) COMMIT Completed 200 OK in 223ms (Views: 18.6ms | ActiveRecord: 150.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:54:19 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80be171554308dc0bad736837fc4b337' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:19', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'format', 'journal', 969082451, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'isbn', 1, '0109836413', 969082451, '0109836413')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:54:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082451, '80be171554308dc0bad736837fc4b337')  (33.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082172  (19.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:19', NULL, 969082172, 'BorrowDirect', 'queued', '2015-02-12 20:54:19')  (25.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2261  (14.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082172 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082451) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082451) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082172) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082172) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082172 AND `dispatched_services`.`id` = 2261 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2261  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082172 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082451 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082451) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082172 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082451 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082172  (16.4ms) COMMIT Completed 200 OK in 240ms (Views: 19.0ms | ActiveRecord: 168.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:19 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4300979f914483d0a8e6cb4f406be70b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:19', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'format', 'journal', 969082452, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082452, '9789810743734')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082452, '4300979f914483d0a8e6cb4f406be70b')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082173  (19.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:20', NULL, 969082173, 'BorrowDirect', 'queued', '2015-02-12 20:54:20')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2262  (15.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082173 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082452) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082452) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082173) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082173) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082173 AND `dispatched_services`.`id` = 2262 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2262  (16.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082173 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082452 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082452) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082173 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082452 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082173  (29.2ms) COMMIT Completed 200 OK in 277ms (Views: 19.7ms | ActiveRecord: 163.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5760ac2f72c4719090c44c15f12b0c98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082453, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082453, '9789810743734')  (20.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082453, '5760ac2f72c4719090c44c15f12b0c98')  (27.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082174  (15.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:20', NULL, 969082174, 'BorrowDirect', 'queued', '2015-02-12 20:54:20')  (23.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2263  (21.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082174 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082453) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082453) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082174) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082174) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082174 AND `dispatched_services`.`id` = 2263 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2263  (15.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082174 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082453 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082453) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082174 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082453 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082174  (14.7ms) COMMIT Completed 200 OK in 240ms (Views: 19.4ms | ActiveRecord: 168.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '274cb28259c1731b4c916e660bd67869' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (3.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082454, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082454, '9789810743734')  (20.3ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082454, '274cb28259c1731b4c916e660bd67869')  (22.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082175  (29.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:20', NULL, 969082175, 'BorrowDirect', 'queued', '2015-02-12 20:54:20')  (18.1ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2264  (13.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082175 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082454) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082454) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082175) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082175) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082175 AND `dispatched_services`.`id` = 2264 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2264  (17.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082175 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082454 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082454) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082175 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082454 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082175  (14.6ms) COMMIT Completed 200 OK in 240ms (Views: 19.4ms | ActiveRecord: 169.8ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fb8dcf4fd08425f3869ef20f973e114' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082455, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082455, '9789810743734')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082455, '3fb8dcf4fd08425f3869ef20f973e114')  (14.2ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082176 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45fd5937ef75a1c9e9e57fb9f4e28a0f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082456, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '0109836413', 969082456, '0109836413')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:54:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082456, '45fd5937ef75a1c9e9e57fb9f4e28a0f')  (14.1ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082177 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce81b0e8335ce2c5618d95c3f48d9451' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082457, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '000000000', 969082457, '000000000')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:54:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082457, 'ce81b0e8335ce2c5618d95c3f48d9451')  (14.0ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082178 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '73f3ccb54626acc5dd0c088eb416ab8d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082458, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082458, '9789810743734')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082458, '73f3ccb54626acc5dd0c088eb416ab8d')  (14.1ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082179 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96d7c4184611e59284317cae59321299' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082459, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082459, '9789810743734')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082459, '96d7c4184611e59284317cae59321299')  (16.0ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082180 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '456f55728ecf12dfc474a10e77359d32' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:21', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082460, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'title', 1, 'title', 969082460, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'author', 1, 'au', 969082460, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082460, '456f55728ecf12dfc474a10e77359d32')  (13.9ms) COMMIT  (0.9ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082181, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082181 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f78a2998e0a4419cee52294c7334c12d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:21', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082461, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'title', 1, 'title', 969082461, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'author', 1, 'au', 969082461, 'au')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082461, 'f78a2998e0a4419cee52294c7334c12d')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082182, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (16.3ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082182 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082182 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:21', NULL, 969082182, 'test_bd', 'successful', '2015-02-12 20:54:21')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:21' WHERE `dispatched_services`.`id` = 2265  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082182 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9795f4906f08207bbaa8ee91f3d04055' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:21', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082462, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'title', 1, 'title', 969082462, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'author', 1, 'au', 969082462, 'au')  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082462, '9795f4906f08207bbaa8ee91f3d04055')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082183, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082183 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.3ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76876aa5442a3d2590b5d1f3a1b3945f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:21', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082463, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'isbn', 1, '121212', 969082463, '121212')  (19.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082463, '76876aa5442a3d2590b5d1f3a1b3945f')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082184"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082184 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082184 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082184  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082184, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082184\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082463 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082463) Redirected to http://test.host/resolve?umlaut.request_id=969082184&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A54%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.3ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '872353980ee975909ed454586022c5fe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:21', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082464, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'isbn', 1, '121212', 969082464, '121212')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082464, '872353980ee975909ed454586022c5fe')  (21.1ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082185, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (32.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082185"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082185 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082185 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013110  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082185, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013110\n', 'BorrowDirect', 'bd_request_status')  (24.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082464 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082464) Redirected to http://test.host/resolve?umlaut.request_id=969082185&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A54%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 39ms (ActiveRecord: 32.6ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f3d16d0b7a8c9d128cd9c4269deaee62' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:21', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082465, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'isbn', 1, '121212', 969082465, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082465, 'f3d16d0b7a8c9d128cd9c4269deaee62')  (13.9ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082186, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082186"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082186 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082186 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082186 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:21', NULL, 969082186, 'BorrowDirect', 'in_progress', '2015-02-12 20:54:21')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:21' WHERE `dispatched_services`.`id` = 2266  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082186, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.6ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082465 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082465) Redirected to http://test.host/resolve?umlaut.request_id=969082186&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A54%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 72ms (ActiveRecord: 57.5ms) DispatchedService Load (6.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082186 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082186 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082186 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:21' WHERE `dispatched_services`.`id` = 2266  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013113  (14.7ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc2e9a868127ff6c6c85a2afc37c8c02' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:21', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082466, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'isbn', 1, '121212', 969082466, '121212')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082466, 'fc2e9a868127ff6c6c85a2afc37c8c02')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082187"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082187 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082187 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082187, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082466 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082466) Redirected to http://test.host/resolve?umlaut.request_id=969082187&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A54%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.3ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '997ae1a4327abe73a8ab322081246669' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:21', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082467, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'title', 1, 'title', 969082467, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'author', 1, 'au', 969082467, 'au')  (14.6ms) COMMIT  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082467, '997ae1a4327abe73a8ab322081246669')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082188, '--- {}\n', 'test_holding', 'holding')  (14.1ms) COMMIT  (0.6ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.8ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31a499e6b7738919f38d81cf089bb7a7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:09', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'format', 'journal', 969082468, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'title', 1, 'title', 969082468, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'author', 1, 'au', 969082468, 'au')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082468, '31a499e6b7738919f38d81cf089bb7a7')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:09', 969082189, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082189 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60dd97af963c51243f5894c8dc087127' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:09', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'format', 'journal', 969082469, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'title', 1, 'title', 969082469, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'author', 1, 'au', 969082469, 'au')  (18.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082469, '60dd97af963c51243f5894c8dc087127')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:09', 969082190, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (13.8ms) COMMIT ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082190 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6660ed0f1a143c6fe4511f2a4d15a98' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:10', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'format', 'journal', 969082470, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'title', 1, 'title', 969082470, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'author', 1, 'au', 969082470, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082470, 'c6660ed0f1a143c6fe4511f2a4d15a98')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:10', 969082191, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082191 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082191 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:10', NULL, 969082191, 'test_bd', 'successful', '2015-02-12 21:17:10')  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2267  (13.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082191 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da63ef0b928d908fa1e6098dc229b200' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:10', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'format', 'journal', 969082471, 'journal') SQL (5.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'isbn', 1, '9789810743734', 969082471, '9789810743734')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082471, 'da63ef0b928d908fa1e6098dc229b200')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082192  (14.1ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:10', NULL, 969082192, 'test_bd', 'queued', '2015-02-12 21:17:10')  (17.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2268  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082192 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082471) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082471) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082192) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082192) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082192 AND `dispatched_services`.`id` = 2268 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2268  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082192 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082471 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082471) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082192 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (92.4ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082471 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.0ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082192  (14.4ms) COMMIT Completed 200 OK in 446ms (Views: 141.5ms | ActiveRecord: 139.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 16:17:10 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8b31c44dfe3b307c3a06037016eccd1' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:10', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'format', 'book', 969082472, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'genre', 1, 'book', 969082472, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'author', 1, 'smith', 969082472, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'title', 1, 'some book', 969082472, 'Some Book')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 21:17:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082472, 'c8b31c44dfe3b307c3a06037016eccd1')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082193  (15.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:10', NULL, 969082193, 'BorrowDirect', 'queued', '2015-02-12 21:17:10')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2269  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082193 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082472) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082472) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082193) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082193) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082193 AND `dispatched_services`.`id` = 2269 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2269  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082193 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082472 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082472) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082193 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082472 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082193  (17.6ms) COMMIT Completed 200 OK in 225ms (Views: 21.2ms | ActiveRecord: 146.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 16:17:10 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b7498667be14cc87e054d2dd02b3b80' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:10', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'format', 'journal', 969082473, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'genre', 1, 'article', 969082473, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'title', 1, 'foo', 969082473, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'author', 1, 'bar', 969082473, 'bar')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 21:17:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082473, '9b7498667be14cc87e054d2dd02b3b80')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082194  (14.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:10', NULL, 969082194, 'BorrowDirect', 'queued', '2015-02-12 21:17:10')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2270  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082194 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082473) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082473) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082194) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082194) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082194 AND `dispatched_services`.`id` = 2270 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2270  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082194 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082473 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082473) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082194 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082473 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082194  (14.4ms) COMMIT Completed 200 OK in 204ms (Views: 18.3ms | ActiveRecord: 113.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9257b67aaac58e9ea3505cb067e2145f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:11', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'format', 'book', 969082474, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'genre', 1, 'book', 969082474, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'title', 1, 'foo', 969082474, 'foo')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 21:17:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082474, '9257b67aaac58e9ea3505cb067e2145f')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082195 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:11', NULL, 969082195, 'BorrowDirect', 'failed_fatal', '2015-02-12 21:17:11')  (13.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2271  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082195" for 127.0.0.1 at 2015-02-12 16:17:11 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082195"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082195 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082474 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082474)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082195  (14.5ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082195 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082195 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082195 [["request_id", 969082195]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082474 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082474) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082195 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082195 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082474 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082195  (14.2ms) COMMIT Completed 200 OK in 72ms (Views: 19.2ms | ActiveRecord: 45.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3b42278dd184508289be8e8c8647f35' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (14.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:11', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'format', 'journal', 969082475, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'isbn', 1, '9789810743734', 969082475, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082475, 'd3b42278dd184508289be8e8c8647f35')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082196  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:11', NULL, 969082196, 'BorrowDirect', 'queued', '2015-02-12 21:17:11')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2272  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082196 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082475) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082475) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082196) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082196) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082196 AND `dispatched_services`.`id` = 2272 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2272  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082196 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082475 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082475) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082196 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082475 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082196  (14.4ms) COMMIT Completed 200 OK in 216ms (Views: 20.2ms | ActiveRecord: 143.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 16:17:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4df3231afe5a9ac0fbbd11bf7a90650e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:11', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'format', 'journal', 969082476, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'isbn', 1, '0109836413', 969082476, '0109836413')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 21:17:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082476, '4df3231afe5a9ac0fbbd11bf7a90650e')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082197  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:11', NULL, 969082197, 'BorrowDirect', 'queued', '2015-02-12 21:17:11')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2273  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082197 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082476) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082476) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082197) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082197) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082197 AND `dispatched_services`.`id` = 2273 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2273  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082197 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082476 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082476) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082197 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082476 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082197  (14.4ms) COMMIT Completed 200 OK in 203ms (Views: 20.7ms | ActiveRecord: 127.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '551ee33ec9d53448b9c8d6df9e29c1e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:11', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'format', 'journal', 969082477, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'isbn', 1, '9789810743734', 969082477, '9789810743734')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082477, '551ee33ec9d53448b9c8d6df9e29c1e4')  (14.5ms) COMMIT  (3.0ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082198  (14.5ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:11', NULL, 969082198, 'BorrowDirect', 'queued', '2015-02-12 21:17:11')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2274  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082198 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082477) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082477) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082198) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082198) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082198 AND `dispatched_services`.`id` = 2274 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2274  (67.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082198 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082477 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082477) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082198 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082477 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082198  (30.3ms) COMMIT Completed 200 OK in 279ms (Views: 22.3ms | ActiveRecord: 202.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '52e700fab3d28663a692bf95b1db79bb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082478, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082478, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082478, '52e700fab3d28663a692bf95b1db79bb')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082199  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:12', NULL, 969082199, 'BorrowDirect', 'queued', '2015-02-12 21:17:12')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:12' WHERE `dispatched_services`.`id` = 2275  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082199 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082478) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082478) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082199) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082199) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082199 AND `dispatched_services`.`id` = 2275 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:12' WHERE `dispatched_services`.`id` = 2275  (15.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082199 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082478 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082478) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082199 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082478 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082199  (14.3ms) COMMIT Completed 200 OK in 204ms (Views: 20.9ms | ActiveRecord: 130.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '126e49933772e4cf164ea8c229aad94a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082479, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082479, '9789810743734')  (15.3ms) COMMIT  (0.6ms) BEGIN SQL (3.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082479, '126e49933772e4cf164ea8c229aad94a')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082200  (13.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:12', NULL, 969082200, 'BorrowDirect', 'queued', '2015-02-12 21:17:12')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:12' WHERE `dispatched_services`.`id` = 2276  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082200 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082479) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082479) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082200) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082200) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082200 AND `dispatched_services`.`id` = 2276 AND `dispatched_services`.`status` IN ('queued') Umlaut: Threaded service raised exception. Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:12' WHERE `dispatched_services`.`id` = 2276  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082200 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082479 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082479) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082200 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082479 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082200  (14.6ms) COMMIT Completed 200 OK in 208ms (Views: 20.8ms | ActiveRecord: 132.5ms)  (0.6ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85fa73b4c2d27945005aa61ebf678c9b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082480, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082480, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082480, '85fa73b4c2d27945005aa61ebf678c9b')  (13.8ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082201 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6b0236949463e467672378ec0d66e296' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082481, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '000000000', 969082481, '000000000')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082481, '6b0236949463e467672378ec0d66e296')  (14.1ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082202 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed621808b5ef3697655f3255b4f91d04' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082482, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082482, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082482, 'ed621808b5ef3697655f3255b4f91d04')  (14.0ms) COMMIT ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082203 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a9d2206315df41cea8c5fcaa16ff215' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '0109836413') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082483, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '0109836413', 969082483, '0109836413')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082483, '0a9d2206315df41cea8c5fcaa16ff215')  (14.0ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082204 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b505853a172a3be130c8990ae8662053' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082484, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082484, '9789810743734')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082484, 'b505853a172a3be130c8990ae8662053')  (14.1ms) COMMIT ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082205 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '486ad445523ed8c75a7277b66eb16dba' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:12', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082485, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'title', 1, 'title', 969082485, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'author', 1, 'au', 969082485, 'au')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082485, '486ad445523ed8c75a7277b66eb16dba')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:12', 969082206, '--- {}\n', 'test_holding', 'holding')  (14.5ms) COMMIT Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e5aa8c7a5cbca292b7e58680e250a703' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 21:17:12', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'book', 969082486, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'auinit', 1, 'eh', 969082486, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'aulast', 1, 'lenneberg', 969082486, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'title', 1, 'biological foundations of language', 969082486, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'genre', 1, 'book', 969082486, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'date', 1, '1967', 969082486, '1967')  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082486, 'info:sid/google', 'e5aa8c7a5cbca292b7e58680e250a703')  (26.6ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082207 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3efbc6dfd4f966c9cd857d447660e13' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 21:17:12', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082487, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'auinit', 1, 'rd', 969082487, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'aulast', 1, 'kaplan', 969082487, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'atitle', 1, 'the coming anarchy', 969082487, 'The coming anarchy') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'title', 1, 'the atlantic monthly', 969082487, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'volume', 1, '273', 969082487, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'issue', 1, '2', 969082487, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'date', 1, '1994', 969082487, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'spage', 1, '44', 969082487, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'issn', 1, '1072-7825', 969082487, '1072-7825')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082487, 'info:sid/google', 'c3efbc6dfd4f966c9cd857d447660e13')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082208 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:13', NULL, 969082208, 'test_bd', 'successful', '2015-02-12 21:17:13')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:13' WHERE `dispatched_services`.`id` = 2277  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082208 ServiceResponse Exists (1.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082208 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77c7820b37489327ea240350a40126c9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:13', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082488, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082488, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'aulast', 1, 'grimes', 969082488, 'Grimes')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082488, '77c7820b37489327ea240350a40126c9')  (14.1ms) COMMIT ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ca603079ef3e4a0056f4f505674663f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:13', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082489, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'isbn', 1, '121212', 969082489, '121212')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082489, '8ca603079ef3e4a0056f4f505674663f')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082210"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082210 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082210 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082210  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082210, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082210\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082489 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082489) Redirected to http://test.host/resolve?umlaut.request_id=969082210&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.5ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fadf9bad735d40a14a25ddc121f8d9f8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:13', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082490, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'isbn', 1, '121212', 969082490, '121212')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082490, 'fadf9bad735d40a14a25ddc121f8d9f8')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082211, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082211"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082211 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082211 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013121  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082211, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013121\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082490 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082490) Redirected to http://test.host/resolve?umlaut.request_id=969082211&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd31e65869b66868721479599673f3d47' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:13', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082491, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'isbn', 1, '121212', 969082491, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082491, 'd31e65869b66868721479599673f3d47')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082212, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082212"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082212 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082212 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:13', NULL, 969082212, 'BorrowDirect', 'in_progress', '2015-02-12 21:17:13')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:13' WHERE `dispatched_services`.`id` = 2278  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082212, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082491 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082491) Redirected to http://test.host/resolve?umlaut.request_id=969082212&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 71ms (ActiveRecord: 56.2ms) DispatchedService Load (6.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082212 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082212 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:13' WHERE `dispatched_services`.`id` = 2278  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013124  (14.6ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2affb566249721659ca2ef0ac12c0b8a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (3.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:13', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082492, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'isbn', 1, '121212', 969082492, '121212')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082492, '2affb566249721659ca2ef0ac12c0b8a')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082213"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082213 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082213 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082213, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (20.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082492 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082492) Redirected to http://test.host/resolve?umlaut.request_id=969082213&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 78ms (ActiveRecord: 28.7ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbc555a14514d42e71d1d83f944f598c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:35', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'format', 'journal', 969082493, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'title', 1, 'title', 969082493, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'author', 1, 'au', 969082493, 'au')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082493, 'bbc555a14514d42e71d1d83f944f598c')  (13.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:35', 969082214, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (15.4ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082214 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082214 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:35', NULL, 969082214, 'test_bd', 'successful', '2015-02-12 21:17:35')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:35' WHERE `dispatched_services`.`id` = 2279  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082214 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc775f87bbf8c11c5a162d771e4f6371' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:35', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'format', 'journal', 969082494, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'title', 1, 'title', 969082494, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'author', 1, 'au', 969082494, 'au')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082494, 'bc775f87bbf8c11c5a162d771e4f6371')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:35', 969082215, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082215 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082215, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082215 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:35', NULL, 969082215, 'test_bd', 'successful', '2015-02-12 21:17:35')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:35' WHERE `dispatched_services`.`id` = 2280  (14.8ms) COMMIT DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082215 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7234d032811f07f359243b557157eb87' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:35', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'format', 'journal', 969082495, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'title', 1, 'title', 969082495, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'author', 1, 'au', 969082495, 'au')  (16.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082495, '7234d032811f07f359243b557157eb87')  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:35', 969082216, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082216 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082216, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082216 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:35', NULL, 969082216, 'test_bd', 'successful', '2015-02-12 21:17:35')  (13.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:35' WHERE `dispatched_services`.`id` = 2281  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082216 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca1a08b2796b65c507e6fd1c111ea6d2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:35', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'format', 'journal', 969082496, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'title', 1, 'title', 969082496, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'author', 1, 'au', 969082496, 'au')  (40.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082496, 'ca1a08b2796b65c507e6fd1c111ea6d2')  (36.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082217, '--- {}\n', 'test_holding', 'holding')  (13.4ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082217, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082217 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:36', NULL, 969082217, 'test_bd', 'successful', '2015-02-12 21:17:36')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2282  (14.1ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082217 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082217 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a6ea9d3516a86e284e157e91934b0581' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:36', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082497, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082497, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'aulast', 1, 'grimes', 969082497, 'Grimes')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082497, 'a6ea9d3516a86e284e157e91934b0581')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082218, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.6ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082218 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8cfa4e50b57d29391c29a2a8a40d7c2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 21:17:36', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082498, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'auinit', 1, 'rd', 969082498, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'aulast', 1, 'kaplan', 969082498, 'Kaplan') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'atitle', 1, 'the coming anarchy', 969082498, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'title', 1, 'the atlantic monthly', 969082498, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'volume', 1, '273', 969082498, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'issue', 1, '2', 969082498, '2') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'date', 1, '1994', 969082498, '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'spage', 1, '44', 969082498, '44') SQL (4.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'issn', 1, '1072-7825', 969082498, '1072-7825')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082498, 'info:sid/google', 'd8cfa4e50b57d29391c29a2a8a40d7c2')  (14.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082219 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:36', NULL, 969082219, 'test_bd', 'successful', '2015-02-12 21:17:36')  (16.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2283  (15.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082219 ServiceResponse Exists (1.6ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082219 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64b21d2d905837c2efdb1edde10f9c5a' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 21:17:36', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'book', 969082499, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'auinit', 1, 'eh', 969082499, 'EH') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'aulast', 1, 'lenneberg', 969082499, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'title', 1, 'biological foundations of language', 969082499, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'genre', 1, 'book', 969082499, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'date', 1, '1967', 969082499, '1967')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082499, 'info:sid/google', '64b21d2d905837c2efdb1edde10f9c5a')  (18.7ms) COMMIT ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082220 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082220, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (13.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082220 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:36', NULL, 969082220, 'test_bd', 'successful', '2015-02-12 21:17:36')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2284  (15.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082220 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 49ms (Views: 48.9ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.4ms | ActiveRecord: 1.6ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '28699752f1c68e1bc459faa20d6c05e9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:36', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082500, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'isbn', 1, '121212', 969082500, '121212')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082500, '28699752f1c68e1bc459faa20d6c05e9')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082221"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082221 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082221 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082221  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082221, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082221\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082500 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082500) Redirected to http://test.host/resolve?umlaut.request_id=969082221&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 38ms (ActiveRecord: 24.3ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a607a0deda4b81c6e9feb59192f41e0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:36', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082501, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'isbn', 1, '121212', 969082501, '121212')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082501, '8a607a0deda4b81c6e9feb59192f41e0')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082222, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082222"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082222 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082222 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013136  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082222, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013136\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082501 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082501) Redirected to http://test.host/resolve?umlaut.request_id=969082222&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 24.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23014f0b39acaec1ed0d942aa3987796' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:36', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082502, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'isbn', 1, '121212', 969082502, '121212')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082502, '23014f0b39acaec1ed0d942aa3987796')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082223, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082223"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082223 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082223 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082223 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:36', NULL, 969082223, 'BorrowDirect', 'in_progress', '2015-02-12 21:17:36')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2285  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082223, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082502 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082502) Redirected to http://test.host/resolve?umlaut.request_id=969082223&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 74ms (ActiveRecord: 58.7ms) DispatchedService Load (6.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082223 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082223 ORDER BY id ASC DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082223 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2285  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013139  (14.9ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94ab48a4829c0799eab6562140bb7498' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:36', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082503, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'isbn', 1, '121212', 969082503, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (2.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082503, '94ab48a4829c0799eab6562140bb7498')  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082224"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082224 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082224 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:37', 969082224, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082503 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082503) Redirected to http://test.host/resolve?umlaut.request_id=969082224&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 32.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6ba63d609175c031457d196459f310f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:37', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'format', 'journal', 969082504, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'isbn', 1, '9789810743734', 969082504, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082504, 'd6ba63d609175c031457d196459f310f')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082225  (14.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:37', NULL, 969082225, 'test_bd', 'queued', '2015-02-12 21:17:37')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2286  (14.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082225 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082504) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082504) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082225) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082225) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082225 AND `dispatched_services`.`id` = 2286 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082225, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2286  (16.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082225 LIMIT 1 DispatchedService Load (42.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082504 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082504) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082225 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082504 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.6ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082225  (17.8ms) COMMIT Completed 200 OK in 396ms (Views: 136.3ms | ActiveRecord: 121.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 16:17:37 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd1809669d2f385b13c77e9ccbafc9db' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:37', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'format', 'book', 969082505, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'genre', 1, 'book', 969082505, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'author', 1, 'smith', 969082505, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'title', 1, 'some book', 969082505, 'Some Book')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 21:17:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082505, 'cd1809669d2f385b13c77e9ccbafc9db')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082226  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:37', NULL, 969082226, 'BorrowDirect', 'queued', '2015-02-12 21:17:37')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2287  (14.5ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082226 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082505) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082505) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082226) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082226) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082226 AND `dispatched_services`.`id` = 2287 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082226, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2287  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082226 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082505 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082505) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082226 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082505 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082226  (16.0ms) COMMIT Completed 200 OK in 237ms (Views: 20.6ms | ActiveRecord: 121.2ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 16:17:37 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43e6050a117b23299c0ee007267f7820' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:37', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'format', 'journal', 969082506, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'genre', 1, 'article', 969082506, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'title', 1, 'foo', 969082506, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'author', 1, 'bar', 969082506, 'bar')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 21:17:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082506, '43e6050a117b23299c0ee007267f7820')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082227  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:37', NULL, 969082227, 'BorrowDirect', 'queued', '2015-02-12 21:17:37')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2288  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082227 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082506) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082506) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082227) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082227) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082227 AND `dispatched_services`.`id` = 2288 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2288  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082227 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082506 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082506) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082227 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082506 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082227  (17.0ms) COMMIT Completed 200 OK in 208ms (Views: 17.7ms | ActiveRecord: 117.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13c941aaf34cb179f09d3f8f210d0090' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:38', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'format', 'book', 969082507, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'genre', 1, 'book', 969082507, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'title', 1, 'foo', 969082507, 'foo')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 21:17:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082507, '13c941aaf34cb179f09d3f8f210d0090')  (15.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082228 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:38', NULL, 969082228, 'BorrowDirect', 'failed_fatal', '2015-02-12 21:17:38')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2289  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082228" for 127.0.0.1 at 2015-02-12 16:17:38 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082228"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082228 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082507 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082507)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082228  (15.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082228 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082228 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082228 [["request_id", 969082228]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082507 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082507) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082228 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082228 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082507 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082228  (14.1ms) COMMIT Completed 200 OK in 74ms (Views: 18.7ms | ActiveRecord: 46.8ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9541047a857bd98df8ab809732f07730' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:38', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'format', 'journal', 969082508, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'isbn', 1, '9789810743734', 969082508, '9789810743734')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082508, '9541047a857bd98df8ab809732f07730')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082229  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:38', NULL, 969082229, 'BorrowDirect', 'queued', '2015-02-12 21:17:38')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2290  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082508) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082229) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082229) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`id` = 2290 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082229, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:38', 'Choose your delivery location', 969082229, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2290  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082508 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082229 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082508 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082229  (14.5ms) COMMIT Completed 200 OK in 259ms (Views: 26.5ms | ActiveRecord: 113.3ms) Started GET "/borrow_direct/BorrowDirect/969082229?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-12 16:17:38 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082229"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082229 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2290  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (2.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:38', 969082229, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082508 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508) Redirected to http://www.example.com/resolve?umlaut.request_id=969082229&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 38.0ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2290  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013145  (14.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969082229&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-12 16:17:38 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082229", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-12T16:17:38-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082508 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082229  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 [["request_id", 969082229]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082508 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082229 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082508 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082229  (14.6ms) COMMIT Completed 200 OK in 77ms (Views: 23.2ms | ActiveRecord: 43.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 16:17:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e036bdad1458b77bbe0d94ea16e6455f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:38', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'format', 'journal', 969082509, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'isbn', 1, '0109836413', 969082509, '0109836413')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 21:17:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082509, 'e036bdad1458b77bbe0d94ea16e6455f')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082230  (26.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:38', NULL, 969082230, 'BorrowDirect', 'queued', '2015-02-12 21:17:38')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2291  (14.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082230 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082509) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082509) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082230) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082230) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082230 AND `dispatched_services`.`id` = 2291 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082230, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:38', 'This item is not currently available from BorrowDirect', 969082230, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2291  (14.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082230 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082509 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082509) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082230 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082509 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082230  (14.7ms) COMMIT Completed 200 OK in 312ms (Views: 21.2ms | ActiveRecord: 124.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d6c6f9673b00769f7975064e2a8b326' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:38', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'format', 'journal', 969082510, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'isbn', 1, '9789810743734', 969082510, '9789810743734')  (13.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082510, '6d6c6f9673b00769f7975064e2a8b326')  (13.6ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082231  (13.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:39', NULL, 969082231, 'BorrowDirect', 'queued', '2015-02-12 21:17:39')  (13.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2292  (15.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082510) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082231) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082231) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (26.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`id` = 2292 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082231, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:39', 'Choose your delivery location', 969082231, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2292  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082510 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082231 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082510 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082231  (15.6ms) COMMIT Completed 200 OK in 258ms (Views: 23.0ms | ActiveRecord: 109.6ms) Started GET "/borrow_direct/BorrowDirect/969082231?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-12 16:17:39 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082231"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082231 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2292  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:39', 969082231, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082510 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510) Redirected to http://www.example.com/resolve?umlaut.request_id=969082231&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 39.5ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2292  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013150  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969082231&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-12 16:17:39 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082231", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-12T16:17:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082510 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082231  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 [["request_id", 969082231]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082510 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082231 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082510 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082231  (14.9ms) COMMIT Completed 200 OK in 76ms (Views: 20.1ms | ActiveRecord: 45.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37c1dbfaae413784ae6d71f405b7e10d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:39', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:39', 'format', 'journal', 969082511, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:39', 'isbn', 1, '9789810743734', 969082511, '9789810743734')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082511, '37c1dbfaae413784ae6d71f405b7e10d')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082232  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:39', NULL, 969082232, 'BorrowDirect', 'queued', '2015-02-12 21:17:39')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2293  (14.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082232 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082511) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082511) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082232) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082232) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082232 AND `dispatched_services`.`id` = 2293 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082232, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:39', 'Choose your delivery location', 969082232, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2293  (15.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082232 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082511 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082511) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082232 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082232 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082511 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082232  (14.4ms) COMMIT Completed 200 OK in 301ms (Views: 25.6ms | ActiveRecord: 113.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd98b6c932cbc1f8dad1ec865c2aec0fd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:39', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:39', 'format', 'journal', 969082512, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:39', 'isbn', 1, '9789810743734', 969082512, '9789810743734')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082512, 'd98b6c932cbc1f8dad1ec865c2aec0fd')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082233  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:39', NULL, 969082233, 'BorrowDirect', 'queued', '2015-02-12 21:17:39')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2294  (18.1ms) COMMIT Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082512) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082233) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082233) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`id` = 2294 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082233, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:39', 'Choose your delivery location', 969082233, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2294  (13.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082512 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082233 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082512 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082233  (13.5ms) COMMIT Completed 200 OK in 255ms (Views: 24.8ms | ActiveRecord: 115.3ms) Started GET "/borrow_direct/BorrowDirect/969082233" for 127.0.0.1 at 2015-02-12 16:17:40 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082233"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082233 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:40', 969082233, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082512 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512) Redirected to http://www.example.com/resolve?umlaut.request_id=969082233&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 19.8ms) Started GET "/resolve?umlaut.request_id=969082233&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-12 16:17:40 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082233", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-12T16:17:40-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082512 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512)  (0.8ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082233  (13.5ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 [["request_id", 969082233]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082512 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082233 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082512 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (0.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082233  (13.7ms) COMMIT Completed 200 OK in 74ms (Views: 23.6ms | ActiveRecord: 40.2ms) Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f6535564c09dcb57913fad59ba8efaf1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082513, 'journal') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '9789810743734', 969082513, '9789810743734')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082513, 'f6535564c09dcb57913fad59ba8efaf1')  (14.2ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082234 ORDER BY id ASC  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082234, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082234 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082234, 'test_bd', 'failed_temporary', '2015-02-12 21:17:40')  (13.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2295  (14.1ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082234 Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2a65341784abc0ad91c450441d67672' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082514, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '000000000', 969082514, '000000000')  (13.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082514, 'b2a65341784abc0ad91c450441d67672')  (14.5ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082235 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082235, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.7ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:40', 'This item is not currently available from BorrowDirect', 969082235, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082235 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082235, 'test_bd', 'successful', '2015-02-12 21:17:40')  (13.6ms) COMMIT  (0.6ms) BEGIN SQL (0.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2296  (13.6ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082235 Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8547c6fbbdd82eeb72f1b91805cbfab0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082515, 'journal') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '0109836413', 969082515, '0109836413')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082515, '8547c6fbbdd82eeb72f1b91805cbfab0')  (13.5ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082236 ORDER BY id ASC  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082236, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.5ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:40', 'This item is not currently available from BorrowDirect', 969082236, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (13.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082236 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.5ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082236, 'test_bd', 'successful', '2015-02-12 21:17:40')  (13.5ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2297  (13.7ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082236 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c239a6cb99a886da99f8e7f8bacc6fe7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (0.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '9789810743734') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082516, 'journal') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '9789810743734', 969082516, '9789810743734')  (13.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082516, 'c239a6cb99a886da99f8e7f8bacc6fe7')  (14.2ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082237 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082237, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:40', 'Choose your delivery location', 969082237, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (13.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082237 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082237, 'test_bd', 'successful', '2015-02-12 21:17:40')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2298  (13.5ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082237  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c23f36bc42240bf5d451069fb9b35d74' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '9789810743734') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082517, 'journal') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '9789810743734', 969082517, '9789810743734')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (2.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082517, 'c23f36bc42240bf5d451069fb9b35d74')  (13.8ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082238 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082238, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082238 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082238, 'test_bd', 'successful', '2015-02-12 21:17:40')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2299  (13.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082238 ActiveRecord::SchemaMigration Load (11.5ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.6ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd50233db5fefb2639ef84ded28239ebc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:39', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:39', 'format', 'journal', 969082518, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:39', 'isbn', 1, '9789810743734', 969082518, '9789810743734')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082518, 'd50233db5fefb2639ef84ded28239ebc')  (15.0ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082239 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082239, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082239 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:39', NULL, 969082239, 'test_bd', 'failed_temporary', '2015-02-19 22:58:39')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 22:58:39' WHERE `dispatched_services`.`id` = 2300  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082239 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca3228d89a1fec6ae7e83ee9eb145f39' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:39', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:39', 'format', 'journal', 969082519, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:39', 'isbn', 1, '9789810743734', 969082519, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082519, 'ca3228d89a1fec6ae7e83ee9eb145f39')  (14.1ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082240 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082240, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 'Choose your delivery location', 969082240, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082240 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082240, 'test_bd', 'successful', '2015-02-19 22:58:40')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2301  (14.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082240 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd3eed8c498228afcf2ae10fd75ed73a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082520, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '0109836413', 969082520, '0109836413')  (14.6ms) COMMIT  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082520, 'dd3eed8c498228afcf2ae10fd75ed73a')  (14.4ms) COMMIT ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082241 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082241, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 'This item is not currently available from BorrowDirect', 969082241, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082241 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082241, 'test_bd', 'successful', '2015-02-19 22:58:40')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2302  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082241 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8af8b9cdcc624f4db99f6735faec815a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082521, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '000000000', 969082521, '000000000')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082521, '8af8b9cdcc624f4db99f6735faec815a')  (15.0ms) COMMIT ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082242 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082242, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 'This item is not currently available from BorrowDirect', 969082242, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082242 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082242, 'test_bd', 'successful', '2015-02-19 22:58:40')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2303  (14.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082242 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '909e082af1e537e8b70ab91852c9ff46' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:40', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082522, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082522, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'aulast', 1, 'grimes', 969082522, 'Grimes')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082522, '909e082af1e537e8b70ab91852c9ff46')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082243, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.0ms) COMMIT ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082243 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e8ff7b8c60db34295518af340b5b436' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 22:58:40', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082523, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'auinit', 1, 'rd', 969082523, 'RD') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'aulast', 1, 'kaplan', 969082523, 'Kaplan') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'atitle', 1, 'the coming anarchy', 969082523, 'The coming anarchy') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'title', 1, 'the atlantic monthly', 969082523, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'volume', 1, '273', 969082523, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'issue', 1, '2', 969082523, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'date', 1, '1994', 969082523, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'spage', 1, '44', 969082523, '44') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'issn', 1, '1072-7825', 969082523, '1072-7825')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082523, 'info:sid/google', '4e8ff7b8c60db34295518af340b5b436')  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082244 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082244, 'test_bd', 'successful', '2015-02-19 22:58:40')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2304  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082244 ServiceResponse Exists (1.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082244 LIMIT 1 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ff7190efd1837686c9cfffd2378b6e8' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 22:58:40', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'book', 969082524, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'auinit', 1, 'eh', 969082524, 'EH') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'aulast', 1, 'lenneberg', 969082524, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'title', 1, 'biological foundations of language', 969082524, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'genre', 1, 'book', 969082524, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'date', 1, '1967', 969082524, '1967')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082524, 'info:sid/google', '0ff7190efd1837686c9cfffd2378b6e8')  (14.2ms) COMMIT ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082245 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082245, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082245 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082245, 'test_bd', 'successful', '2015-02-19 22:58:40')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2305  (14.5ms) COMMIT DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082245 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 56ms (Views: 55.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.4ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81cc1ab76b1e6816f80157a3104b9666' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082525, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '121212', 969082525, '121212')  (14.6ms) COMMIT  (1.5ms) BEGIN SQL (2.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082525, '81cc1ab76b1e6816f80157a3104b9666')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082246"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082246 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082246 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082246  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 969082246, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082246\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082525 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082525) Redirected to http://test.host/resolve?umlaut.request_id=969082246&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 22.6ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13fae8d809867696062774bca1eb3151' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082526, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '121212', 969082526, '121212')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082526, '13fae8d809867696062774bca1eb3151')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 969082247, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082247"} Request Load (2.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082247 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082247 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013174  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 969082247, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013174\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082526 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082526) Redirected to http://test.host/resolve?umlaut.request_id=969082247&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b0bdffbf53ef8692229169c284f8141a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '121212') SQL (5.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082527, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '121212', 969082527, '121212')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082527, 'b0bdffbf53ef8692229169c284f8141a')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082248, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082248"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082248 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082248 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082248 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082248, 'BorrowDirect', 'in_progress', '2015-02-19 22:58:41')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2306  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082248, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.8ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082527 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082527) Redirected to http://test.host/resolve?umlaut.request_id=969082248&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 71ms (ActiveRecord: 60.9ms) DispatchedService Load (3.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082248 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082248 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082248 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2306  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013177  (14.2ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bc01e96fe421334a1d63d967e741d39' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:41', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082528, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'isbn', 1, '121212', 969082528, '121212')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 22:58:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082528, '9bc01e96fe421334a1d63d967e741d39')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082249"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082249 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082249 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082249, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082528 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082528) Redirected to http://test.host/resolve?umlaut.request_id=969082249&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 73ms (ActiveRecord: 31.5ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aa1828acd2ead7611f7d48ea75eb5009' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:41', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082529, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'title', 1, 'title', 969082529, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'author', 1, 'au', 969082529, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 22:58:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082529, 'aa1828acd2ead7611f7d48ea75eb5009')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082250, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082250 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082250, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082250 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082250, 'test_bd', 'successful', '2015-02-19 22:58:41')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2307  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082250 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d34fac454275a286ca97471d4c45566' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:41', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082530, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'title', 1, 'title', 969082530, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'author', 1, 'au', 969082530, 'au')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 22:58:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082530, '6d34fac454275a286ca97471d4c45566')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082251, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082251 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082251 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082251, 'test_bd', 'successful', '2015-02-19 22:58:41')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2308  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082251 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba96cced6f934919ab95aa3bfcdc4c2c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:41', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082531, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'title', 1, 'title', 969082531, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'author', 1, 'au', 969082531, 'au')  (15.7ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 22:58:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082531, 'ba96cced6f934919ab95aa3bfcdc4c2c')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082252, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.7ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082252 ORDER BY id ASC  (0.9ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082252, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082252 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082252, 'test_bd', 'successful', '2015-02-19 22:58:41')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2309  (13.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082252 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:41 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ad68733fca5896b54289483fc4ca6501' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (3.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:41', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082532, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'isbn', 1, '9789810743734', 969082532, '9789810743734')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082532, 'ad68733fca5896b54289483fc4ca6501')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082253  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082253, 'test_bd', 'queued', '2015-02-19 22:58:41')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2310  (14.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082253 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082532) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082532) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082253) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082253) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082253 AND `dispatched_services`.`id` = 2310 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082253, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.1s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2310  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082253 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082532 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082532) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082253 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (19.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (20.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082532 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (53.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082253  (15.0ms) COMMIT Completed 200 OK in 580ms (Views: 260.9ms | ActiveRecord: 127.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 17:58:42 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c0dd691c826514a21dc6e5581f1b56e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:42', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'format', 'book', 969082533, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'genre', 1, 'book', 969082533, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'author', 1, 'smith', 969082533, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'title', 1, 'some book', 969082533, 'Some Book')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 22:58:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082533, '9c0dd691c826514a21dc6e5581f1b56e')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082254  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:42', NULL, 969082254, 'BorrowDirect', 'queued', '2015-02-19 22:58:42')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2311  (13.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082254 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082533) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082533) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082254) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082254) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082254 AND `dispatched_services`.`id` = 2311 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082254, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2311  (14.2ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082254 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082533 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082533) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082254 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082533 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082254  (14.5ms) COMMIT Completed 200 OK in 230ms (Views: 19.7ms | ActiveRecord: 119.0ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 17:58:42 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4d55d898cbc064609c3300daaeff187' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:42', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'format', 'journal', 969082534, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'genre', 1, 'article', 969082534, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'title', 1, 'foo', 969082534, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'author', 1, 'bar', 969082534, 'bar')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 22:58:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082534, 'd4d55d898cbc064609c3300daaeff187')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082255  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:42', NULL, 969082255, 'BorrowDirect', 'queued', '2015-02-19 22:58:42')  (16.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2312  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082255 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082534) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082534) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082255) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082255) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082255 AND `dispatched_services`.`id` = 2312 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2312  (14.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082255 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082534 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082534) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082255 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082534 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082255  (14.6ms) COMMIT Completed 200 OK in 203ms (Views: 16.6ms | ActiveRecord: 116.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24703cf57ba8207f7e8f901f859286c1' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:42', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'format', 'book', 969082535, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'genre', 1, 'book', 969082535, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'title', 1, 'foo', 969082535, 'foo')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 22:58:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082535, '24703cf57ba8207f7e8f901f859286c1')  (14.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082256 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:42', NULL, 969082256, 'BorrowDirect', 'failed_fatal', '2015-02-19 22:58:42')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2313  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969082256" for 127.0.0.1 at 2015-02-19 17:58:42 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082256"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082256 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082535 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082535)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082256  (14.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082256 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082256 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082256 [["request_id", 969082256]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082535 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082535) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082256 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082256 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082535 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082256  (14.5ms) COMMIT Completed 200 OK in 72ms (Views: 18.6ms | ActiveRecord: 45.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:42 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fa9c3a0b50d8b3cbc83ea4b8d5ab27e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:42', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'format', 'journal', 969082536, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'isbn', 1, '9789810743734', 969082536, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082536, '8fa9c3a0b50d8b3cbc83ea4b8d5ab27e')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082257  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:43', NULL, 969082257, 'BorrowDirect', 'queued', '2015-02-19 22:58:43')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2314  (13.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082536) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082257) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082257) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`id` = 2314 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082257, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:43', 'Choose your delivery location', 969082257, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2314  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082536 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082257 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (15.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (16.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082536 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082257  (14.6ms) COMMIT Completed 200 OK in 266ms (Views: 31.4ms | ActiveRecord: 118.1ms) Started GET "/borrow_direct/BorrowDirect/969082257?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 17:58:43 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082257"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082257 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2314  (17.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:43', 969082257, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082536 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536) Redirected to http://www.example.com/resolve?umlaut.request_id=969082257&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 40.7ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2314  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013188  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082257&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 17:58:43 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082257", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T17:58:43-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082536 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082257  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 [["request_id", 969082257]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.1ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082536 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082257 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082536 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082257  (14.4ms) COMMIT Completed 200 OK in 116ms (Views: 63.3ms | ActiveRecord: 43.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 17:58:43 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6a0f90dc6eb717bd070e036361464e9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:43', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:43', 'format', 'journal', 969082537, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:43', 'isbn', 1, '0109836413', 969082537, '0109836413')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 22:58:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082537, 'b6a0f90dc6eb717bd070e036361464e9')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082258  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:43', NULL, 969082258, 'BorrowDirect', 'queued', '2015-02-19 22:58:43')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2315  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082258 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082537) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082537) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082258) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082258) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082258 AND `dispatched_services`.`id` = 2315 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082258, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (0.8ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:43', 'This item is not currently available from BorrowDirect', 969082258, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2315  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082258 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082537 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082537) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082258 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082537 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082258  (14.4ms) COMMIT Completed 200 OK in 255ms (Views: 20.3ms | ActiveRecord: 112.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:43 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a34418a44002613ca4697eb216f3b11c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:43', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:43', 'format', 'journal', 969082538, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:43', 'isbn', 1, '9789810743734', 969082538, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082538, 'a34418a44002613ca4697eb216f3b11c')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082259  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:43', NULL, 969082259, 'BorrowDirect', 'queued', '2015-02-19 22:58:43')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2316  (14.3ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082538) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082259) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082259) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`id` = 2316 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082259, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:43', 'Choose your delivery location', 969082259, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2316  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082538 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082259 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082538 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082259  (17.3ms) COMMIT Completed 200 OK in 255ms (Views: 22.1ms | ActiveRecord: 116.6ms) Started GET "/borrow_direct/BorrowDirect/969082259?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 17:58:44 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082259"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082259 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2316  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:44', 969082259, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082538 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538) Redirected to http://www.example.com/resolve?umlaut.request_id=969082259&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 37.5ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2316  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013193  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082259&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 17:58:44 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082259", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T17:58:44-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082538 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082259  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 [["request_id", 969082259]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (42.8ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082538 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082259 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082538 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082259  (14.9ms) COMMIT Completed 200 OK in 118ms (Views: 61.9ms | ActiveRecord: 46.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:44 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8093e058ddc6b75af912a9e46f1bfaf8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:44', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'format', 'journal', 969082539, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'isbn', 1, '9789810743734', 969082539, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082539, '8093e058ddc6b75af912a9e46f1bfaf8')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082260  (16.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260  (1.4ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:44', NULL, 969082260, 'BorrowDirect', 'queued', '2015-02-19 22:58:44')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2317  (14.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082260 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082539) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082539) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082260) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082260) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082260 AND `dispatched_services`.`id` = 2317 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082260, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:44', 'Choose your delivery location', 969082260, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2317  (15.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082260 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082539 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082539) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082260 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082260 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082539 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082260  (14.2ms) COMMIT Completed 200 OK in 265ms (Views: 21.6ms | ActiveRecord: 115.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:44 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8288b647d11cfd49372c8fd5e2f05600' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:44', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'format', 'journal', 969082540, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'isbn', 1, '9789810743734', 969082540, '9789810743734')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082540, '8288b647d11cfd49372c8fd5e2f05600')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082261  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:44', NULL, 969082261, 'BorrowDirect', 'queued', '2015-02-19 22:58:44')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2318  (16.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082540) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082261) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082261) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`id` = 2318 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082261, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:44', 'Choose your delivery location', 969082261, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2318  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082540 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082261 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082540 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082261  (15.5ms) COMMIT Completed 200 OK in 263ms (Views: 22.0ms | ActiveRecord: 116.4ms) Started GET "/borrow_direct/BorrowDirect/969082261" for 127.0.0.1 at 2015-02-19 17:58:44 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082261"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082261 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:44', 969082261, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (19.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082540 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540) Redirected to http://www.example.com/resolve?umlaut.request_id=969082261&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.0ms) Started GET "/resolve?umlaut.request_id=969082261&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 17:58:44 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082261", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T17:58:44-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082540 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082261  (14.3ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 [["request_id", 969082261]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082540 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082261 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (47.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (48.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082540 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082261  (14.3ms) COMMIT Completed 200 OK in 119ms (Views: 65.4ms | ActiveRecord: 44.4ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '787d779a981676eebf4f6150a9b91607' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:44', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'format', 'journal', 969082541, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'isbn', 1, '9789810743734', 969082541, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082541, '787d779a981676eebf4f6150a9b91607')  (14.7ms) COMMIT ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082262 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082262, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082262 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:45', NULL, 969082262, 'test_bd', 'successful', '2015-02-19 22:58:45')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:45' WHERE `dispatched_services`.`id` = 2319  (61.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082262  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.8ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a10d4defb507b942fe3a098b8574e8b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:45', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:45', 'format', 'journal', 969082542, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:45', 'title', 1, 'title', 969082542, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:45', 'author', 1, 'au', 969082542, 'au')  (41.3ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 22:58:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082542, '8a10d4defb507b942fe3a098b8574e8b')  (43.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:45', 969082263, '--- {}\n', 'test_holding', 'holding')  (44.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082263, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082263 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:45', NULL, 969082263, 'test_bd', 'successful', '2015-02-19 22:58:45')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:45' WHERE `dispatched_services`.`id` = 2320  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082263 ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082263 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 50ms (Views: 11.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 66ms (Views: 0.4ms | ActiveRecord: 6.7ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63135940df69872eb6181048a726e9d0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:32', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'format', 'journal', 969082543, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'isbn', 1, '121212', 969082543, '121212')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082543, '63135940df69872eb6181048a726e9d0')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082264"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082264 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082264 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082264  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082264, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082264\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082543 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082543) Redirected to http://test.host/resolve?umlaut.request_id=969082264&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 55ms (ActiveRecord: 30.0ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2fe687be872ff13b4bda7e06150787c2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:32', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'format', 'journal', 969082544, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'isbn', 1, '121212', 969082544, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082544, '2fe687be872ff13b4bda7e06150787c2')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082265, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082265"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082265 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082265 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013203  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082265, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013203\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082544 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082544) Redirected to http://test.host/resolve?umlaut.request_id=969082265&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9346ff43cb143dd38c1ae2940551d04' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:32', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'format', 'journal', 969082545, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'isbn', 1, '121212', 969082545, '121212')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082545, 'a9346ff43cb143dd38c1ae2940551d04')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082266, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082266"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082266 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082266 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082266 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:32', NULL, 969082266, 'BorrowDirect', 'in_progress', '2015-02-19 23:00:32')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:32' WHERE `dispatched_services`.`id` = 2321  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082266, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082545 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082545) Redirected to http://test.host/resolve?umlaut.request_id=969082266&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 115ms (ActiveRecord: 61.9ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082266 ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082266 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082266 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2321  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013206  (14.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3e2908945b47ca10bb05610c677a995' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082546, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '121212', 969082546, '121212')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082546, 'b3e2908945b47ca10bb05610c677a995')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 969082267, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082267"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082267 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082267 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082267 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082267, 'BorrowDirect', 'in_progress', '2015-02-19 23:00:33')  (14.3ms) COMMIT  (1.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2322  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 969082267, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082546 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082546) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082267&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 73ms (ActiveRecord: 62.3ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5cfe51215f941cc5b6fa6c9f02a7b67f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082547, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '121212', 969082547, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082547, '5cfe51215f941cc5b6fa6c9f02a7b67f')  (46.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082268"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082268 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082268 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 969082268, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082547 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082547) Redirected to http://test.host/resolve?umlaut.request_id=969082268&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 23.1ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1eb9cc8cfab41a86a9f9b2bc4dee78ef' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082548, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '9789810743734', 969082548, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082548, '1eb9cc8cfab41a86a9f9b2bc4dee78ef')  (14.2ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082269 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082269, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082269 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082269, 'test_bd', 'successful', '2015-02-19 23:00:33')  (14.2ms) COMMIT  (3.2ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2323  (19.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082269 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecc8ba54f13cbf9f22e563c34eb4adae' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082549, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '9789810743734', 969082549, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082549, 'ecc8ba54f13cbf9f22e563c34eb4adae')  (14.3ms) COMMIT ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082270 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082270, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 'Choose your delivery location', 969082270, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082270 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082270, 'test_bd', 'successful', '2015-02-19 23:00:33')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2324  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082270 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11489b63aa60785d32ddd8e51a9e7180' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082550, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '0109836413', 969082550, '0109836413')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082550, '11489b63aa60785d32ddd8e51a9e7180')  (14.0ms) COMMIT ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082271 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082271, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 'This item is not currently available from BorrowDirect', 969082271, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082271 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082271, 'test_bd', 'successful', '2015-02-19 23:00:33')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2325  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082271 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a1ed65fdb453f7e63b07f0a4ccc5e06' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082551, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '9789810743734', 969082551, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082551, '6a1ed65fdb453f7e63b07f0a4ccc5e06')  (14.3ms) COMMIT ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082272 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082272, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082272 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082272, 'test_bd', 'failed_temporary', '2015-02-19 23:00:33')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2326  (17.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082272 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54b3481ca0adce13a8c5754c4d01c14f' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '000000000') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082552, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '000000000', 969082552, '000000000')  (15.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082552, '54b3481ca0adce13a8c5754c4d01c14f')  (14.0ms) COMMIT ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082273 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082273, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 'This item is not currently available from BorrowDirect', 969082273, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082273 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082273, 'test_bd', 'successful', '2015-02-19 23:00:33')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2327  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082273 Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fcad0be784b32923a164fc22866d763' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:34', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'journal', 969082553, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'title', 1, 'title', 969082553, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'author', 1, 'au', 969082553, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:00:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082553, '5fcad0be784b32923a164fc22866d763')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:34', 969082274, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082274 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082274, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082274 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082274, 'test_bd', 'successful', '2015-02-19 23:00:34')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2328  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082274 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f5ecb7d8391ad92dea344a9db079996' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:34', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'journal', 969082554, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'title', 1, 'title', 969082554, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'author', 1, 'au', 969082554, 'au')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:00:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082554, '9f5ecb7d8391ad92dea344a9db079996')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:34', 969082275, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082275 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082275, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082275 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082275, 'test_bd', 'successful', '2015-02-19 23:00:34')  (15.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2329  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082275 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2094b80623621c7febe8630f206b77fc' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:34', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'journal', 969082555, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'title', 1, 'title', 969082555, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'author', 1, 'au', 969082555, 'au')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:00:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082555, '2094b80623621c7febe8630f206b77fc')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:34', 969082276, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.8ms) COMMIT ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082276 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082276 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082276, 'test_bd', 'successful', '2015-02-19 23:00:34')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2330  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082276 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8226aa7dc30c533e89d760835d7592d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:34', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'journal', 969082556, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'isbn', 1, '9789810743734', 969082556, '9789810743734')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082556, 'a8226aa7dc30c533e89d760835d7592d')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082277  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082277, 'test_bd', 'queued', '2015-02-19 23:00:34')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2331  (14.1ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082277 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082556) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082556) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082277) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082277) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082277 AND `dispatched_services`.`id` = 2331 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082277, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2331  (15.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082277 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082556 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082556) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082277 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082556 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (44.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (1.1ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082277  (14.3ms) COMMIT Completed 200 OK in 412ms (Views: 132.5ms | ActiveRecord: 117.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:00:34 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fae22d4d1f7f52d5e0fabf27b325e6f0' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:34', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'book', 969082557, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'genre', 1, 'book', 969082557, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'author', 1, 'smith', 969082557, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'title', 1, 'some book', 969082557, 'Some Book')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:00:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082557, 'fae22d4d1f7f52d5e0fabf27b325e6f0')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082278  (14.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082278, 'BorrowDirect', 'queued', '2015-02-19 23:00:34')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2332  (14.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082278 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082557) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082557) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082278) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082278) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082278 AND `dispatched_services`.`id` = 2332 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082278, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2332  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082278 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082557 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082557) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082278 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082557 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082278  (14.8ms) COMMIT Completed 200 OK in 271ms (Views: 20.6ms | ActiveRecord: 121.9ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:00:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c7f038dc40c28d41d5172f72b5fe607' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:35', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'format', 'journal', 969082558, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'genre', 1, 'article', 969082558, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'title', 1, 'foo', 969082558, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'author', 1, 'bar', 969082558, 'bar')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:00:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082558, '9c7f038dc40c28d41d5172f72b5fe607')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082279  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:35', NULL, 969082279, 'BorrowDirect', 'queued', '2015-02-19 23:00:35')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2333  (14.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082279 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082558) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082558) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082279) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082279) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082279 AND `dispatched_services`.`id` = 2333 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2333  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082279 LIMIT 1 DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.9ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082558 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082558) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082279 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082558 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082279  (14.9ms) COMMIT Completed 200 OK in 204ms (Views: 16.9ms | ActiveRecord: 116.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69c3c711e70da37c0bf6b2fed8ebd785' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:35', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'format', 'book', 969082559, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'genre', 1, 'book', 969082559, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'title', 1, 'foo', 969082559, 'foo')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:00:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082559, '69c3c711e70da37c0bf6b2fed8ebd785')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082280 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:35', NULL, 969082280, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:00:35')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2334  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082280" for 127.0.0.1 at 2015-02-19 18:00:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082280"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082280 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082559 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082559)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082280  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082280 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082280 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082280 [["request_id", 969082280]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082559 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082559) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082280 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082280 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082559 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082280  (14.3ms) COMMIT Completed 200 OK in 71ms (Views: 18.4ms | ActiveRecord: 45.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '693db29d80bbd6e86ab410cb06060a98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:35', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'format', 'journal', 969082560, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'isbn', 1, '9789810743734', 969082560, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082560, '693db29d80bbd6e86ab410cb06060a98')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082281  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:35', NULL, 969082281, 'BorrowDirect', 'queued', '2015-02-19 23:00:35')  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2335  (15.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082560) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082281) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082281) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`id` = 2335 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082281, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:35', 'Choose your delivery location', 969082281, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2335  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082560 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082281 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082560 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082281  (14.6ms) COMMIT Completed 200 OK in 260ms (Views: 27.1ms | ActiveRecord: 118.0ms) Started GET "/borrow_direct/BorrowDirect/969082281?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:00:35 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082281"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082281 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2335  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:35', 969082281, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082560 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560) Redirected to http://www.example.com/resolve?umlaut.request_id=969082281&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 39.5ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2335  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013227  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082281&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:00:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082281", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:00:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082560 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560)  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082281  (19.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 [["request_id", 969082281]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082560 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082281 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082560 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082281  (14.4ms) COMMIT Completed 200 OK in 82ms (Views: 22.6ms | ActiveRecord: 50.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:00:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '345f2f23c34ba244dcc72844aa47acb4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:36', '0109836413') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'format', 'journal', 969082561, 'journal') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'isbn', 1, '0109836413', 969082561, '0109836413')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:00:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082561, '345f2f23c34ba244dcc72844aa47acb4')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082282  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:36', NULL, 969082282, 'BorrowDirect', 'queued', '2015-02-19 23:00:36')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2336  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082282 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082561) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082561) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082282) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082282) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082282 AND `dispatched_services`.`id` = 2336 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082282, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:36', 'This item is not currently available from BorrowDirect', 969082282, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2336  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082282 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082561 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082561) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082282 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082561 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082282  (14.9ms) COMMIT Completed 200 OK in 247ms (Views: 19.9ms | ActiveRecord: 113.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8459a41a2651ae47f85b4905fb868c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:36', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'format', 'journal', 969082562, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'isbn', 1, '9789810743734', 969082562, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082562, 'a8459a41a2651ae47f85b4905fb868c0')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082283  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:36', NULL, 969082283, 'BorrowDirect', 'queued', '2015-02-19 23:00:36')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2337  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082562) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082283) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082283) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`id` = 2337 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082283, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:36', 'Choose your delivery location', 969082283, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2337  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082562 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082283 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082562 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082283  (15.0ms) COMMIT Completed 200 OK in 250ms (Views: 21.9ms | ActiveRecord: 115.4ms) Started GET "/borrow_direct/BorrowDirect/969082283?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:00:36 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082283"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082283 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2337  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:36', 969082283, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082562 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562) Redirected to http://www.example.com/resolve?umlaut.request_id=969082283&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 38.5ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2337  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013232  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969082283&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:00:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082283", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:00:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082562 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082283  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 [["request_id", 969082283]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082562 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082283 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082562 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082283  (65.1ms) COMMIT Completed 200 OK in 124ms (Views: 19.7ms | ActiveRecord: 95.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c527d46ef953dcc4afb0a026f739d8cb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:36', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'format', 'journal', 969082563, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'isbn', 1, '9789810743734', 969082563, '9789810743734')  (41.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082563, 'c527d46ef953dcc4afb0a026f739d8cb')  (30.8ms) COMMIT  (0.8ms) BEGIN SQL (14.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082284  (34.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:36', NULL, 969082284, 'BorrowDirect', 'queued', '2015-02-19 23:00:36')  (27.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2338  (29.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082284 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082563) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082563) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082284) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082284) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082284 AND `dispatched_services`.`id` = 2338 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082284, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:37', 'Choose your delivery location', 969082284, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2338  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082284 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082563 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082563) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082284 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082284 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082563 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082284  (14.9ms) COMMIT Completed 200 OK in 355ms (Views: 22.2ms | ActiveRecord: 220.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9ba529169e0ba7e44dbc32ec64fa445' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:37', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'journal', 969082564, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'isbn', 1, '9789810743734', 969082564, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082564, 'c9ba529169e0ba7e44dbc32ec64fa445')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082285  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:37', NULL, 969082285, 'BorrowDirect', 'queued', '2015-02-19 23:00:37')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2339  (14.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082564) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082285) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082285) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`id` = 2339 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082285, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:37', 'Choose your delivery location', 969082285, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2339  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082564 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082285 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082564 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082285  (14.4ms) COMMIT Completed 200 OK in 249ms (Views: 21.4ms | ActiveRecord: 114.9ms) Started GET "/borrow_direct/BorrowDirect/969082285" for 127.0.0.1 at 2015-02-19 18:00:37 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082285"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082285 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:37', 969082285, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082564 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564) Redirected to http://www.example.com/resolve?umlaut.request_id=969082285&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 25ms (ActiveRecord: 19.6ms) Started GET "/resolve?umlaut.request_id=969082285&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:00:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082285", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:00:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082564 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564)  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082285  (14.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 [["request_id", 969082285]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082564 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082285 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (47.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082564 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082285  (14.5ms) COMMIT Completed 200 OK in 121ms (Views: 66.3ms | ActiveRecord: 45.4ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a055bb4aacb0a27c916c191eaa3b5c2a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:37', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'journal', 969082565, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'title', 1, 'title', 969082565, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'author', 1, 'au', 969082565, 'au')  (16.0ms) COMMIT  (0.6ms) BEGIN SQL (5.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:00:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082565, 'a055bb4aacb0a27c916c191eaa3b5c2a')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:37', 969082286, '--- {}\n', 'test_holding', 'holding')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082286, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082286 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:37', NULL, 969082286, 'test_bd', 'successful', '2015-02-19 23:00:37')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2340  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082286 ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082286 ORDER BY id ASC  (0.6ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91323dcab58374505ea3e45a25e94006' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:00:37', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'book', 969082566, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'auinit', 1, 'eh', 969082566, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'aulast', 1, 'lenneberg', 969082566, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'title', 1, 'biological foundations of language', 969082566, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'genre', 1, 'book', 969082566, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'date', 1, '1967', 969082566, '1967')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:00:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082566, 'info:sid/google', '91323dcab58374505ea3e45a25e94006')  (14.1ms) COMMIT ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082287 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082287, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082287 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:37', NULL, 969082287, 'test_bd', 'successful', '2015-02-19 23:00:37')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2341  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082287 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ccc79402fdb17c7ae8a1bfc1e835ebe2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:00:37', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'journal', 969082567, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'auinit', 1, 'rd', 969082567, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'aulast', 1, 'kaplan', 969082567, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'atitle', 1, 'the coming anarchy', 969082567, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'title', 1, 'the atlantic monthly', 969082567, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'volume', 1, '273', 969082567, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'issue', 1, '2', 969082567, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'date', 1, '1994', 969082567, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'spage', 1, '44', 969082567, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'issn', 1, '1072-7825', 969082567, '1072-7825')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:00:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082567, 'info:sid/google', 'ccc79402fdb17c7ae8a1bfc1e835ebe2')  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082288 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:37', NULL, 969082288, 'test_bd', 'successful', '2015-02-19 23:00:37')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2342  (14.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082288 ServiceResponse Exists (2.0ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082288 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc9ea093022ab4f0a0ddef318b214349' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:37', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'journal', 969082568, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082568, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'aulast', 1, 'grimes', 969082568, 'Grimes')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:00:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082568, 'bc9ea093022ab4f0a0ddef318b214349')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082289, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.5ms) COMMIT ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082289 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84f01f27c461c125fea9450074f4b880' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:28', '9789810743734') SQL (2.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:28', 'format', 'journal', 969082569, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:28', 'isbn', 1, '9789810743734', 969082569, '9789810743734')  (21.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082569, '84f01f27c461c125fea9450074f4b880')  (13.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082290  (13.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082290  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:28', NULL, 969082290, 'test_bd', 'queued', '2015-02-19 23:01:28')  (13.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:28' WHERE `dispatched_services`.`id` = 2343  (13.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082290 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082569) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082569) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082290) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082290) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082290 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082290 AND `dispatched_services`.`id` = 2343 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082290, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.3ms) COMMIT Umlaut: Threaded service raised exception. Service: test_bd, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/available Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' Completed 500 Internal Server Error in 433ms ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:01:28 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd300fd5ab844e81cd4d1c35f5212b250' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:29', 'some book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'format', 'book', 969082570, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'genre', 1, 'book', 969082570, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'author', 1, 'smith', 969082570, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'title', 1, 'some book', 969082570, 'Some Book')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082570, 'd300fd5ab844e81cd4d1c35f5212b250')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082291  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:29', NULL, 969082291, 'BorrowDirect', 'queued', '2015-02-19 23:01:29')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2344  (14.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082291 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082570) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082570) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082291) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082291) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082291 AND `dispatched_services`.`id` = 2344 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082291, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.8ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2344  (16.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082291 LIMIT 1 DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082570 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082570) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082291 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (35.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (39.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (40.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082570 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082291  (15.5ms) COMMIT Completed 200 OK in 369ms (Views: 136.6ms | ActiveRecord: 130.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:01:29 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a90681eca5f9f62550878126ffc1331' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:29', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'format', 'journal', 969082571, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'genre', 1, 'article', 969082571, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'title', 1, 'foo', 969082571, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'author', 1, 'bar', 969082571, 'bar')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082571, '8a90681eca5f9f62550878126ffc1331')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082292  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:29', NULL, 969082292, 'BorrowDirect', 'queued', '2015-02-19 23:01:29')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2345  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082292 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082571) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082571) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082292) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082292) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082292 AND `dispatched_services`.`id` = 2345 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2345  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082292 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082571 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082571) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082292 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082571 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082292  (14.2ms) COMMIT Completed 200 OK in 206ms (Views: 17.1ms | ActiveRecord: 117.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59aff87f53af0118aa077ed4b2878c3d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:29', 'foo') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'format', 'book', 969082572, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'genre', 1, 'book', 969082572, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'title', 1, 'foo', 969082572, 'foo')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:01:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082572, '59aff87f53af0118aa077ed4b2878c3d')  (13.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082293 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:29', NULL, 969082293, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:01:29')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2346  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082293" for 127.0.0.1 at 2015-02-19 18:01:29 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082293"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082293 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082572 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082572)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082293  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082293 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082293 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082293 [["request_id", 969082293]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082572 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082572) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082293 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082293 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082572 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082293  (14.6ms) COMMIT Completed 200 OK in 73ms (Views: 18.7ms | ActiveRecord: 46.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8a81dc9294e374bd33701c540898b51' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:29', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'format', 'journal', 969082573, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'isbn', 1, '9789810743734', 969082573, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082573, 'b8a81dc9294e374bd33701c540898b51')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082294  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:29', NULL, 969082294, 'BorrowDirect', 'queued', '2015-02-19 23:01:29')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2347  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082573) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082294) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082294) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`id` = 2347 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082294, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:29', 'Choose your delivery location', 969082294, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2347  (22.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082573 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082294 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082573 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082294  (14.5ms) COMMIT Completed 200 OK in 265ms (Views: 24.7ms | ActiveRecord: 115.3ms) Started GET "/borrow_direct/BorrowDirect/969082294?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:01:30 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082294"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082294 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2347  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:30', 969082294, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082573 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573) Redirected to http://www.example.com/resolve?umlaut.request_id=969082294&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' Completed 303 See Other in 53ms (ActiveRecord: 38.5ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2347  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013246  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082294&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:01:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082294", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:01:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082573 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082294  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 [["request_id", 969082294]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082573 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082294 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082573 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082294  (14.3ms) COMMIT Completed 200 OK in 76ms (Views: 21.7ms | ActiveRecord: 45.3ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:01:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '20d89874d881e20b2081b02c064cb5b9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:30', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:30', 'format', 'journal', 969082574, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:30', 'isbn', 1, '0109836413', 969082574, '0109836413')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:01:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082574, '20d89874d881e20b2081b02c064cb5b9')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082295  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:30', NULL, 969082295, 'BorrowDirect', 'queued', '2015-02-19 23:01:30')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2348  (13.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082295 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082574) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082574) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082295) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082295) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082295 AND `dispatched_services`.`id` = 2348 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082295, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:30', 'This item is not currently available from BorrowDirect', 969082295, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2348  (15.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082295 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082574 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082574) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082295 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082574 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082295  (15.1ms) COMMIT Completed 200 OK in 246ms (Views: 19.1ms | ActiveRecord: 113.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c44cd23854467ed0e121eec7ad06e92b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:30', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:30', 'format', 'journal', 969082575, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:30', 'isbn', 1, '9789810743734', 969082575, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082575, 'c44cd23854467ed0e121eec7ad06e92b')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082296  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:30', NULL, 969082296, 'BorrowDirect', 'queued', '2015-02-19 23:01:30')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2349  (14.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082575) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082296) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082296) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`id` = 2349 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082296, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:30', 'Choose your delivery location', 969082296, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2349  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082575 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082296 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082575 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082296  (17.1ms) COMMIT Completed 200 OK in 295ms (Views: 22.3ms | ActiveRecord: 117.4ms) Started GET "/borrow_direct/BorrowDirect/969082296?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:01:30 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082296"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082296 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2349  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:30', 969082296, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082575 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575) Redirected to http://www.example.com/resolve?umlaut.request_id=969082296&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 38.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2349  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013251  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969082296&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:01:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082296", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:01:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082575 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082296  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 [["request_id", 969082296]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082575 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082296 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082575 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082296  (14.3ms) COMMIT Completed 200 OK in 73ms (Views: 18.0ms | ActiveRecord: 45.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '307095735e110af57af82d8518ef0acf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:31', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082576, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'isbn', 1, '9789810743734', 969082576, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082576, '307095735e110af57af82d8518ef0acf')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082297  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:31', NULL, 969082297, 'BorrowDirect', 'queued', '2015-02-19 23:01:31')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2350  (14.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082297 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082576) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082576) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082297) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082297) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082297 AND `dispatched_services`.`id` = 2350 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082297, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:31', 'Choose your delivery location', 969082297, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2350  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082297 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082576 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082576) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082297 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082297 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082576 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082297  (14.2ms) COMMIT Completed 200 OK in 251ms (Views: 21.7ms | ActiveRecord: 113.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab5fd65291fe24eb7d503fbe333e669b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:31', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082577, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'isbn', 1, '9789810743734', 969082577, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082577, 'ab5fd65291fe24eb7d503fbe333e669b')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082298  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:31', NULL, 969082298, 'BorrowDirect', 'queued', '2015-02-19 23:01:31')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2351  (13.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082577) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082298) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082298) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`id` = 2351 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082298, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:31', 'Choose your delivery location', 969082298, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2351  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082577 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082298 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082577 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082298  (14.5ms) COMMIT Completed 200 OK in 290ms (Views: 21.8ms | ActiveRecord: 114.2ms) Started GET "/borrow_direct/BorrowDirect/969082298" for 127.0.0.1 at 2015-02-19 18:01:31 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082298"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082298 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:31', 969082298, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082577 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577) Redirected to http://www.example.com/resolve?umlaut.request_id=969082298&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.6ms) Started GET "/resolve?umlaut.request_id=969082298&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:01:31 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082298", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:01:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082577 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082298  (14.2ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 [["request_id", 969082298]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082577 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082298 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082577 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082298  (19.6ms) COMMIT Completed 200 OK in 79ms (Views: 21.3ms | ActiveRecord: 49.2ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b128e3c32d8a89c38e9123c589c4756' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:31', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082578, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'title', 1, 'title', 969082578, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'author', 1, 'au', 969082578, 'au')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:01:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082578, '5b128e3c32d8a89c38e9123c589c4756')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:31', 969082299, '--- {}\n', 'test_holding', 'holding')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082299, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082299 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:31', NULL, 969082299, 'test_bd', 'successful', '2015-02-19 23:01:31')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2352  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082299 ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082299 ORDER BY id ASC  (0.6ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'faacb7cea9b3f41b04a429b57b5c52b1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:31', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082579, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'isbn', 1, '9789810743734', 969082579, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082579, 'faacb7cea9b3f41b04a429b57b5c52b1')  (14.6ms) COMMIT ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082300 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082300, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082300 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:31', NULL, 969082300, 'test_bd', 'successful', '2015-02-19 23:01:31')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2353  (15.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082300 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1709d099b5ad69d8e074424c1ef14a9d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (3.9ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:31', 'title') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082580, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'title', 1, 'title', 969082580, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'author', 1, 'au', 969082580, 'au')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082580, '1709d099b5ad69d8e074424c1ef14a9d')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 969082301, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (13.8ms) COMMIT ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082301 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082301, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082301 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082301, 'test_bd', 'successful', '2015-02-19 23:01:32')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2354  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082301 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '57bc61ddf1d45141de4db4e547fef255' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:32', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082581, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'title', 1, 'title', 969082581, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'author', 1, 'au', 969082581, 'au')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082581, '57bc61ddf1d45141de4db4e547fef255')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 969082302, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082302 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082302, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082302 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082302, 'test_bd', 'successful', '2015-02-19 23:01:32')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2355  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082302 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6097f8ee19ead44a4a1cf60d68ecf5db' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:32', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082582, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'title', 1, 'title', 969082582, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'author', 1, 'au', 969082582, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082582, '6097f8ee19ead44a4a1cf60d68ecf5db')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 969082303, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (13.9ms) COMMIT ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082303 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082303 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082303, 'test_bd', 'successful', '2015-02-19 23:01:32')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2356  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082303 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bedf73e604c8f4d4c19131a84f155462' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082583, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '9789810743734', 969082583, '9789810743734')  (15.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082583, 'bedf73e604c8f4d4c19131a84f155462')  (13.9ms) COMMIT ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082304 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082304, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082304 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082304, 'test_bd', 'failed_temporary', '2015-02-19 23:01:32')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2357  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082304 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed7832e419a7d69690db109267d4b063' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082584, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '9789810743734', 969082584, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082584, 'ed7832e419a7d69690db109267d4b063')  (14.6ms) COMMIT ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082305 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082305, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 'Choose your delivery location', 969082305, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082305 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082305, 'test_bd', 'successful', '2015-02-19 23:01:32')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2358  (13.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082305 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35dbe7eaa437c688e8294901598a29db' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082585, 'journal') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '0109836413', 969082585, '0109836413')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082585, '35dbe7eaa437c688e8294901598a29db')  (13.9ms) COMMIT ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082306 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082306, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 'This item is not currently available from BorrowDirect', 969082306, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082306 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082306, 'test_bd', 'successful', '2015-02-19 23:01:32')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2359  (15.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082306 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6dde25d9a8f71dc3c2309881bd1f1192' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082586, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '000000000', 969082586, '000000000')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082586, '6dde25d9a8f71dc3c2309881bd1f1192')  (14.1ms) COMMIT ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082307 ORDER BY id ASC  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082307, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 'This item is not currently available from BorrowDirect', 969082307, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082307 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082307, 'test_bd', 'successful', '2015-02-19 23:01:32')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2360  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082307 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.3ms | ActiveRecord: 1.0ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8caf2553095212d203ee6797c68b7bc9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082587, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '121212', 969082587, '121212')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082587, '8caf2553095212d203ee6797c68b7bc9')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082308"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082308 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082308 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082308  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 969082308, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082308\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082587 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082587) Redirected to http://test.host/resolve?umlaut.request_id=969082308&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.5ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37a46bec75d3a17834c33932e1fad0b0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082588, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'isbn', 1, '121212', 969082588, '121212')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082588, '37a46bec75d3a17834c33932e1fad0b0')  (16.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082309, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082309"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082309 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082309 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013273  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082309, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013273\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082588 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082588) Redirected to http://test.host/resolve?umlaut.request_id=969082309&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 23.8ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8a6a5319e09905923945afb93488cec' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:33', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082589, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'isbn', 1, '121212', 969082589, '121212')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082589, 'd8a6a5319e09905923945afb93488cec')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082310, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082310"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082310 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082310 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082310 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:33', NULL, 969082310, 'BorrowDirect', 'in_progress', '2015-02-19 23:01:33')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2361  (16.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082310, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082589 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082589) Redirected to http://test.host/resolve?umlaut.request_id=969082310&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 69ms (ActiveRecord: 58.6ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082310 ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082310 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082310 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2361  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013276  (14.5ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca26bca3018589a6cf61d70cd3642577' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:33', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082590, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'isbn', 1, '121212', 969082590, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082590, 'ca26bca3018589a6cf61d70cd3642577')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082311, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082311"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082311 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082311 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082311 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:33', NULL, 969082311, 'BorrowDirect', 'in_progress', '2015-02-19 23:01:33')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2362  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082311, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082590 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082590) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082311&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 67ms (ActiveRecord: 57.2ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ce3b3b08829c9b377be9e2b5a8a2925' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082311 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN  (2.8ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:33', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082591, 'journal') SQL (2.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2362 SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'isbn', 1, '121212', 969082591, '121212')  (15.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013278  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082591, '9ce3b3b08829c9b377be9e2b5a8a2925')  (14.6ms) COMMIT  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082312"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082312 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082312 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082312, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082591 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082591) Redirected to http://test.host/resolve?umlaut.request_id=969082312&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 23.0ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e05cf268953be272e2a88236b58ae20f' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:33', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082592, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082592, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'aulast', 1, 'grimes', 969082592, 'Grimes')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082592, 'e05cf268953be272e2a88236b58ae20f')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082313, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.2ms) COMMIT ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082313 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e675b169b4aff6afcc3c48fa8692c56' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:01:33', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082593, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'auinit', 1, 'rd', 969082593, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'aulast', 1, 'kaplan', 969082593, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'atitle', 1, 'the coming anarchy', 969082593, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'title', 1, 'the atlantic monthly', 969082593, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'volume', 1, '273', 969082593, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'issue', 1, '2', 969082593, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'date', 1, '1994', 969082593, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'spage', 1, '44', 969082593, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'issn', 1, '1072-7825', 969082593, '1072-7825')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082593, 'info:sid/google', '1e675b169b4aff6afcc3c48fa8692c56')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082314 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:33', NULL, 969082314, 'test_bd', 'successful', '2015-02-19 23:01:33')  (14.1ms) COMMIT  (1.0ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2363  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082314 ServiceResponse Exists (1.8ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082314 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08e413fa6bb865a95e61995839f40102' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:01:33', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'book', 969082594, 'book') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'auinit', 1, 'eh', 969082594, 'EH') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'aulast', 1, 'lenneberg', 969082594, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'title', 1, 'biological foundations of language', 969082594, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'genre', 1, 'book', 969082594, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'date', 1, '1967', 969082594, '1967')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082594, 'info:sid/google', '08e413fa6bb865a95e61995839f40102')  (14.8ms) COMMIT ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082315 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082315, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082315 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:33', NULL, 969082315, 'test_bd', 'successful', '2015-02-19 23:01:33')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2364  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082315 ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 49ms (Views: 10.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 66ms (Views: 0.4ms | ActiveRecord: 6.6ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7df6949434c7752d6108fa09e437c1f0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:08', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:08', 'format', 'journal', 969082595, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:08', 'isbn', 1, '121212', 969082595, '121212')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082595, '7df6949434c7752d6108fa09e437c1f0')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082316"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082316 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082316 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082316  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082316, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082316\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082595 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082595) Redirected to http://test.host/resolve?umlaut.request_id=969082316&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 56ms (ActiveRecord: 30.6ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd70c4311e88d283dcc59e746162278e1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:09', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:09', 'format', 'journal', 969082596, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:09', 'isbn', 1, '121212', 969082596, '121212')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082596, 'd70c4311e88d283dcc59e746162278e1')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082317, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082317"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082317 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082317 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013283  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082317, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013283\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082596 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082596) Redirected to http://test.host/resolve?umlaut.request_id=969082317&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.0ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '164b53b3057c73495c034ae2e5b6f229' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:09', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:09', 'format', 'journal', 969082597, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:09', 'isbn', 1, '121212', 969082597, '121212')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082597, '164b53b3057c73495c034ae2e5b6f229')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082318, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082318"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082318 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082318 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082318 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:09', NULL, 969082318, 'BorrowDirect', 'in_progress', '2015-02-19 23:02:09')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:09' WHERE `dispatched_services`.`id` = 2365  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082318, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082597 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082597) Redirected to http://test.host/resolve?umlaut.request_id=969082318&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 115ms (ActiveRecord: 62.9ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082318 ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082318 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082318 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:02:09' WHERE `dispatched_services`.`id` = 2365  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013286  (14.1ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72130c122a30b1907ea018069bf8c4c1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:40', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:40', 'format', 'journal', 969082598, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:40', 'isbn', 1, '121212', 969082598, '121212')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082598, '72130c122a30b1907ea018069bf8c4c1')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:40', 969082319, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082319"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082319 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082319 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082319 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:40', NULL, 969082319, 'BorrowDirect', 'in_progress', '2015-02-19 23:02:40')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:40' WHERE `dispatched_services`.`id` = 2366  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:40', 969082319, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082598 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082598) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082319&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 84ms (ActiveRecord: 62.5ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' Request Load (2.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a53708f22996542abe136b0038a2d34c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082319 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.7ms) BEGIN  (4.8ms) BEGIN SQL (4.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:40', '121212') SQL (2.0ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2366 SQL (2.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082599, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'isbn', 1, '121212', 969082599, '121212')  (15.8ms) COMMIT  (0.8ms) BEGIN  (15.6ms) COMMIT SQL (2.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013288  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082599, 'a53708f22996542abe136b0038a2d34c')  (14.6ms) COMMIT  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082320"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082320 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082320 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:41', 969082320, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082599 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082599) Redirected to http://test.host/resolve?umlaut.request_id=969082320&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 23.8ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca20e0f10802a636843d54ec70e83cf0' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:41', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082600, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082600, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'aulast', 1, 'grimes', 969082600, 'Grimes')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082600, 'ca20e0f10802a636843d54ec70e83cf0')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082321, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.2ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082321 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f51ada0ed4e66996a01459f687755fa7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:02:41', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082601, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'auinit', 1, 'rd', 969082601, 'RD') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'aulast', 1, 'kaplan', 969082601, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'atitle', 1, 'the coming anarchy', 969082601, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'title', 1, 'the atlantic monthly', 969082601, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'volume', 1, '273', 969082601, '273') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'issue', 1, '2', 969082601, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'date', 1, '1994', 969082601, '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'spage', 1, '44', 969082601, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'issn', 1, '1072-7825', 969082601, '1072-7825')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082601, 'info:sid/google', 'f51ada0ed4e66996a01459f687755fa7')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082322 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (2.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082322, 'test_bd', 'successful', '2015-02-19 23:02:41')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2367  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082322 ServiceResponse Exists (1.9ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082322 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7c8064e630a87b50f74d64122cee8aa' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:02:41', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'book', 969082602, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'auinit', 1, 'eh', 969082602, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'aulast', 1, 'lenneberg', 969082602, 'Lenneberg') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'title', 1, 'biological foundations of language', 969082602, 'Biological foundations of language') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'genre', 1, 'book', 969082602, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'date', 1, '1967', 969082602, '1967')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082602, 'info:sid/google', 'f7c8064e630a87b50f74d64122cee8aa')  (15.3ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082323 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082323, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082323 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082323, 'test_bd', 'successful', '2015-02-19 23:02:41')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2368  (14.0ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082323 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e692a2307475850c819c8152ecc845c2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:41', 'title') SQL (6.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082603, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'title', 1, 'title', 969082603, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'author', 1, 'au', 969082603, 'au')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082603, 'e692a2307475850c819c8152ecc845c2')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:41', 969082324, '--- {}\n', 'test_holding', 'holding')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082324, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082324 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082324, 'test_bd', 'successful', '2015-02-19 23:02:41')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2369  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082324 ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082324 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37e4d4c0d721f8562c952f541f404222' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:41', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082604, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'isbn', 1, '9789810743734', 969082604, '9789810743734')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082604, '37e4d4c0d721f8562c952f541f404222')  (13.9ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082325 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082325, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082325 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082325, 'test_bd', 'successful', '2015-02-19 23:02:41')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2370  (18.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082325 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:41 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d1992ea02521e4a3bfbcbffacea2314' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:41', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082605, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'isbn', 1, '9789810743734', 969082605, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082605, '4d1992ea02521e4a3bfbcbffacea2314')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082326  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082326  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082326, 'test_bd', 'queued', '2015-02-19 23:02:41')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2371  (13.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082326 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082605) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082605) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082326) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082326) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082326 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082326 AND `dispatched_services`.`id` = 2371 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082326, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT Umlaut: Threaded service raised exception. Service: test_bd, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/available Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' Completed 500 Internal Server Error in 262ms ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:02:42 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cfaea2bc9965530d81f389c277129c48' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:42', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'format', 'book', 969082606, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'genre', 1, 'book', 969082606, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'author', 1, 'smith', 969082606, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'title', 1, 'some book', 969082606, 'Some Book')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:02:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082606, 'cfaea2bc9965530d81f389c277129c48')  (16.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082327  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:42', NULL, 969082327, 'BorrowDirect', 'queued', '2015-02-19 23:02:42')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2372  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082327 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082606) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082606) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082327) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082327) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082327 AND `dispatched_services`.`id` = 2372 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082327, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2372  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082327 LIMIT 1 DispatchedService Load (8.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082606 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082606) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (3.2ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082327 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (4.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (13.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (41.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (1.0ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082606 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (13.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082327  (14.5ms) COMMIT Completed 200 OK in 441ms (Views: 191.9ms | ActiveRecord: 121.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:02:42 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9e439b3fe41ea72b78abb9d21b8297c' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:42', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'format', 'journal', 969082607, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'genre', 1, 'article', 969082607, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'title', 1, 'foo', 969082607, 'foo') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'author', 1, 'bar', 969082607, 'bar')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:02:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082607, 'd9e439b3fe41ea72b78abb9d21b8297c')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082328  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:42', NULL, 969082328, 'BorrowDirect', 'queued', '2015-02-19 23:02:42')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2373  (14.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082328 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082607) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082607) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082328) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082328) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082328 AND `dispatched_services`.`id` = 2373 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2373  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082328 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.5ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082607 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082607) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.5ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082328 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082607 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082328  (14.5ms) COMMIT Completed 200 OK in 267ms (Views: 41.2ms | ActiveRecord: 122.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '258918724b46e179a8c88e497f5e46e1' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:42', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'format', 'book', 969082608, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'genre', 1, 'book', 969082608, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'title', 1, 'foo', 969082608, 'foo')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:02:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082608, '258918724b46e179a8c88e497f5e46e1')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082329 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:42', NULL, 969082329, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:02:42')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2374  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969082329" for 127.0.0.1 at 2015-02-19 18:02:42 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082329"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082329 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082608 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082608)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082329  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082329 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082329 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082329 [["request_id", 969082329]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082608 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082608) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.5ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082329 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082329 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.4ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082608 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082329  (14.8ms) COMMIT Completed 200 OK in 107ms (Views: 43.7ms | ActiveRecord: 48.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:43 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7176f939defc743334652559b472fd17' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:43', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:43', 'format', 'journal', 969082609, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:43', 'isbn', 1, '9789810743734', 969082609, '9789810743734')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082609, '7176f939defc743334652559b472fd17')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082330  (14.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:43', NULL, 969082330, 'BorrowDirect', 'queued', '2015-02-19 23:02:43')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2375  (14.5ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082609) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082330) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082330) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`id` = 2375 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082330, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:43', 'Choose your delivery location', 969082330, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2375  (15.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082609 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082330 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (14.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (16.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082609 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082330  (14.6ms) COMMIT Completed 200 OK in 375ms (Views: 56.1ms | ActiveRecord: 116.5ms) Started GET "/borrow_direct/BorrowDirect/969082330?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:02:43 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082330"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082330 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2375  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:43', 969082330, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082609 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609) Redirected to http://www.example.com/resolve?umlaut.request_id=969082330&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 58ms (ActiveRecord: 39.0ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2375  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013299  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969082330&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:02:43 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082330", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:02:43-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082609 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082330  (15.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 [["request_id", 969082330]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082609 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082330 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082609 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082330  (14.5ms) COMMIT Completed 200 OK in 115ms (Views: 49.6ms | ActiveRecord: 48.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:02:43 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5280ed810b2fea70011e4a5ea7637ca7' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:43', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:43', 'format', 'journal', 969082610, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:43', 'isbn', 1, '0109836413', 969082610, '0109836413')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:02:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082610, '5280ed810b2fea70011e4a5ea7637ca7')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082331  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:43', NULL, 969082331, 'BorrowDirect', 'queued', '2015-02-19 23:02:43')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2376  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082331 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082610) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082610) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082331) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082331) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082331 AND `dispatched_services`.`id` = 2376 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082331, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:44', 'This item is not currently available from BorrowDirect', 969082331, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2376  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082331 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082610 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082610) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082331 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082610 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082331  (14.4ms) COMMIT Completed 200 OK in 358ms (Views: 46.4ms | ActiveRecord: 115.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:44 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '620d26e2899d542a290f6273754faac5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:44', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:44', 'format', 'journal', 969082611, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:44', 'isbn', 1, '9789810743734', 969082611, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082611, '620d26e2899d542a290f6273754faac5')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082332  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:44', NULL, 969082332, 'BorrowDirect', 'queued', '2015-02-19 23:02:44')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2377  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082611) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082332) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082332) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`id` = 2377 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082332, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (3.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:44', 'Choose your delivery location', 969082332, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2377  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.6ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082611 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082332 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082611 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082332  (14.8ms) COMMIT Completed 200 OK in 323ms (Views: 50.2ms | ActiveRecord: 116.4ms) Started GET "/borrow_direct/BorrowDirect/969082332?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:02:44 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082332"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082332 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2377  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:44', 969082332, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082611 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611) Redirected to http://www.example.com/resolve?umlaut.request_id=969082332&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 70ms (ActiveRecord: 38.3ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2377  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013304  (13.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969082332&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:02:44 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082332", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:02:44-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082611 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082332  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 [["request_id", 969082332]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082611 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082332 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082611 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082332  (14.8ms) COMMIT Completed 200 OK in 108ms (Views: 43.0ms | ActiveRecord: 46.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:44 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '537b6ea0abf90aebf5ad160887aa52d9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:44', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:44', 'format', 'journal', 969082612, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:44', 'isbn', 1, '9789810743734', 969082612, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (5.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082612, '537b6ea0abf90aebf5ad160887aa52d9')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082333  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:44', NULL, 969082333, 'BorrowDirect', 'queued', '2015-02-19 23:02:44')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2378  (14.2ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082333 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082612) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082612) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082333) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082333) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082333 AND `dispatched_services`.`id` = 2378 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082333, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:44', 'Choose your delivery location', 969082333, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:45' WHERE `dispatched_services`.`id` = 2378  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082333 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.6ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082612 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082612) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082333 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.4ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082333 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082612 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082333  (15.2ms) COMMIT Completed 200 OK in 323ms (Views: 50.5ms | ActiveRecord: 121.8ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:45 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9dedf86ba18e4595cce507d50907c8aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:45', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'format', 'journal', 969082613, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'isbn', 1, '9789810743734', 969082613, '9789810743734')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082613, '9dedf86ba18e4595cce507d50907c8aa')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082334  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:45', NULL, 969082334, 'BorrowDirect', 'queued', '2015-02-19 23:02:45')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:45' WHERE `dispatched_services`.`id` = 2379  (14.7ms) COMMIT Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082613) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082334) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082334) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`id` = 2379 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082334, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:45', 'Choose your delivery location', 969082334, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:45' WHERE `dispatched_services`.`id` = 2379  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.5ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082613 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082334 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082613 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082334  (14.4ms) COMMIT Completed 200 OK in 320ms (Views: 50.7ms | ActiveRecord: 116.7ms) Started GET "/borrow_direct/BorrowDirect/969082334" for 127.0.0.1 at 2015-02-19 18:02:45 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082334"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082334 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:45', 969082334, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082613 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613) Redirected to http://www.example.com/resolve?umlaut.request_id=969082334&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 20.5ms) Started GET "/resolve?umlaut.request_id=969082334&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:02:45 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082334", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:02:45-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082613 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082334  (14.7ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 [["request_id", 969082334]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082613 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082334 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (12.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082613 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082334  (14.7ms) COMMIT Completed 200 OK in 115ms (Views: 51.1ms | ActiveRecord: 46.1ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e1eff4b976f225016908900228670ce' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:45', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'format', 'journal', 969082614, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'isbn', 1, '9789810743734', 969082614, '9789810743734')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082614, '6e1eff4b976f225016908900228670ce')  (14.5ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082335 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082335, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:45', 'Choose your delivery location', 969082335, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082335 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:45', NULL, 969082335, 'test_bd', 'successful', '2015-02-19 23:02:45')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:45' WHERE `dispatched_services`.`id` = 2380  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082335 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8dd51246c14a5865f3d73c2e9760378' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:45', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'format', 'journal', 969082615, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'isbn', 1, '9789810743734', 969082615, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082615, 'a8dd51246c14a5865f3d73c2e9760378')  (14.4ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082336 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082336, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082336 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082336, 'test_bd', 'failed_temporary', '2015-02-19 23:02:46')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2381  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082336 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea11ff9f56d6b1de4269ea7b31292774' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:46', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082616, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'isbn', 1, '000000000', 969082616, '000000000')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082616, 'ea11ff9f56d6b1de4269ea7b31292774')  (15.2ms) COMMIT ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082337 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082337, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 'This item is not currently available from BorrowDirect', 969082337, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082337 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082337, 'test_bd', 'successful', '2015-02-19 23:02:46')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2382  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082337 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '726459631af6de3c8a9aa99ff3a91c21' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:46', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082617, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'isbn', 1, '0109836413', 969082617, '0109836413')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082617, '726459631af6de3c8a9aa99ff3a91c21')  (14.2ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082338 ORDER BY id ASC  (0.8ms) BEGIN SQL (3.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082338, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 'This item is not currently available from BorrowDirect', 969082338, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (15.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082338 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082338, 'test_bd', 'successful', '2015-02-19 23:02:46')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2383  (21.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082338  (1.1ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (1.0ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '866b6564053e5214338febf975a63d6e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:46', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082618, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'title', 1, 'title', 969082618, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'author', 1, 'au', 969082618, 'au')  (17.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082618, '866b6564053e5214338febf975a63d6e')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 969082339, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082339 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082339, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082339 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082339, 'test_bd', 'successful', '2015-02-19 23:02:46')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2384  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082339 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d545272240d85a431ab84f4bd8188fb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:46', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082619, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'title', 1, 'title', 969082619, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'author', 1, 'au', 969082619, 'au')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082619, '3d545272240d85a431ab84f4bd8188fb')  (24.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 969082340, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (18.6ms) COMMIT ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082340 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082340, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (20.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082340 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082340, 'test_bd', 'successful', '2015-02-19 23:02:46')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2385  (19.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082340 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a82fb33cc5d1f8fa962f2628f2fd024' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:46', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082620, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'title', 1, 'title', 969082620, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'author', 1, 'au', 969082620, 'au')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082620, '8a82fb33cc5d1f8fa962f2628f2fd024')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 969082341, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082341 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082341 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082341, 'test_bd', 'successful', '2015-02-19 23:02:46')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2386  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082341 ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '468f243b1300b05446a3286ebc02ee85' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:45', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'format', 'journal', 969082621, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'isbn', 1, '000000000', 969082621, '000000000')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:03:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082621, '468f243b1300b05446a3286ebc02ee85')  (15.3ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082342 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082342, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:45', 'This item is not currently available from BorrowDirect', 969082342, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082342 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:45', NULL, 969082342, 'test_bd', 'successful', '2015-02-19 23:03:45')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:45' WHERE `dispatched_services`.`id` = 2387  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082342 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34dffbf9e5e882291076d41971d77f4b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:45', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'format', 'journal', 969082622, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'isbn', 1, '9789810743734', 969082622, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082622, '34dffbf9e5e882291076d41971d77f4b')  (14.6ms) COMMIT ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082343 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082343, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.1ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:45', 'Choose your delivery location', 969082343, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (15.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082343 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:45', NULL, 969082343, 'test_bd', 'successful', '2015-02-19 23:03:45')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:45' WHERE `dispatched_services`.`id` = 2388  (33.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082343 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1c1a8d0cb19e2adcb8d89804210ee6d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:45', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'format', 'journal', 969082623, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'isbn', 1, '0109836413', 969082623, '0109836413')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:03:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082623, 'a1c1a8d0cb19e2adcb8d89804210ee6d')  (15.6ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082344 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082344, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 'This item is not currently available from BorrowDirect', 969082344, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082344 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082344, 'test_bd', 'successful', '2015-02-19 23:03:46')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2389  (15.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082344 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b1120deeef69bd0841f169351c3ba560' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:46', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082624, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'isbn', 1, '9789810743734', 969082624, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082624, 'b1120deeef69bd0841f169351c3ba560')  (15.0ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082345 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082345, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082345 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082345, 'test_bd', 'failed_temporary', '2015-02-19 23:03:46')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2390  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082345 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '560f64a1f1ff4ef68338560a3c73b15a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:46', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082625, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'isbn', 1, '9789810743734', 969082625, '9789810743734')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082625, '560f64a1f1ff4ef68338560a3c73b15a')  (14.6ms) COMMIT ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082346 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082346, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082346 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082346, 'test_bd', 'successful', '2015-02-19 23:03:46')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2391  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082346 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0c423c8b4200ed60d7b85ae4c11809b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:46', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082626, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'title', 1, 'title', 969082626, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'author', 1, 'au', 969082626, 'au')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082626, 'e0c423c8b4200ed60d7b85ae4c11809b')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 969082347, '--- {}\n', 'test_holding', 'holding')  (14.9ms) COMMIT  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082347, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082347 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082347, 'test_bd', 'successful', '2015-02-19 23:03:46')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2392  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082347 ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082347 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fec15fd6747ad0daabf7beb0cc1f5d5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:46', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082627, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'title', 1, 'title', 969082627, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'author', 1, 'au', 969082627, 'au')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082627, '5fec15fd6747ad0daabf7beb0cc1f5d5')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 969082348, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082348 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082348 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082348, 'test_bd', 'successful', '2015-02-19 23:03:46')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2393  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082348 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '03b28a7ca4ff3794d4434cb66723e2ab' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:46', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082628, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'title', 1, 'title', 969082628, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'author', 1, 'au', 969082628, 'au')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082628, '03b28a7ca4ff3794d4434cb66723e2ab')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 969082349, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082349 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082349, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082349 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082349, 'test_bd', 'successful', '2015-02-19 23:03:46')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2394  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082349 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9678ff919ade256988baf64b05b580d0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:46', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082629, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'title', 1, 'title', 969082629, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'author', 1, 'au', 969082629, 'au')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082629, '9678ff919ade256988baf64b05b580d0')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 969082350, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082350 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082350, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082350 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082350, 'test_bd', 'successful', '2015-02-19 23:03:46')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2395  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082350  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:46 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63bccde33db1b636edbdea92886dea30' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:46', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082630, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'isbn', 1, '9789810743734', 969082630, '9789810743734')  (16.4ms) COMMIT  (1.2ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082630, '63bccde33db1b636edbdea92886dea30')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082351  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082351  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082351, 'test_bd', 'queued', '2015-02-19 23:03:46')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2396  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082351 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082630) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082630) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082351) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082351) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082351 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082351 AND `dispatched_services`.`id` = 2396 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082351, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT Umlaut: Threaded service raised exception. Service: test_bd, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/available Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' Completed 500 Internal Server Error in 253ms ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:03:47 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de4cea6f291907d1d202bc69eb88d80e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:47', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'format', 'book', 969082631, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'genre', 1, 'book', 969082631, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'author', 1, 'smith', 969082631, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'title', 1, 'some book', 969082631, 'Some Book')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:03:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082631, 'de4cea6f291907d1d202bc69eb88d80e')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082352  (18.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:47', NULL, 969082352, 'BorrowDirect', 'queued', '2015-02-19 23:03:47')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2397  (14.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082352 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082631) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082631) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082352) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082352) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082352 AND `dispatched_services`.`id` = 2397 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082352, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2397  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082352 LIMIT 1 DispatchedService Load (7.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352 DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082631 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082631) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.6ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082352 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082631 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082352  (14.7ms) COMMIT Completed 200 OK in 395ms (Views: 169.2ms | ActiveRecord: 129.9ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:03:47 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '395069468a92412fd9aa728eb3ebef51' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:47', 'foo') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'format', 'journal', 969082632, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'genre', 1, 'article', 969082632, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'title', 1, 'foo', 969082632, 'foo') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'author', 1, 'bar', 969082632, 'bar')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:03:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082632, '395069468a92412fd9aa728eb3ebef51')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082353  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:47', NULL, 969082353, 'BorrowDirect', 'queued', '2015-02-19 23:03:47')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2398  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082353 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082632) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082632) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082353) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082353) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082353 AND `dispatched_services`.`id` = 2398 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2398  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082353 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082632 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082632) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082353 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082632 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082353  (15.6ms) COMMIT Completed 200 OK in 243ms (Views: 16.5ms | ActiveRecord: 121.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71764899c7771b9111dd0987946a6d04' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:47', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'format', 'book', 969082633, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'genre', 1, 'book', 969082633, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'title', 1, 'foo', 969082633, 'foo')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:03:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082633, '71764899c7771b9111dd0987946a6d04')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082354 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:47', NULL, 969082354, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:03:47')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2399  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082354" for 127.0.0.1 at 2015-02-19 18:03:47 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082354"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082354 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082633 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082633)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082354  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082354 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082354 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082354 [["request_id", 969082354]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082633 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082633) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082354 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082354 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082633 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082354  (14.4ms) COMMIT Completed 200 OK in 73ms (Views: 18.1ms | ActiveRecord: 47.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:47 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17a4d78cad3a46712c9cfee06ca9ea0e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (4.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:47', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'format', 'journal', 969082634, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'isbn', 1, '9789810743734', 969082634, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082634, '17a4d78cad3a46712c9cfee06ca9ea0e')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082355  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:48', NULL, 969082355, 'BorrowDirect', 'queued', '2015-02-19 23:03:48')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2400  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082634) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082355) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082355) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`id` = 2400 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082355, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:48', 'Choose your delivery location', 969082355, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2400  (15.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082634 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082355 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082634 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082355  (14.4ms) COMMIT Completed 200 OK in 257ms (Views: 25.0ms | ActiveRecord: 117.4ms) Started GET "/borrow_direct/BorrowDirect/969082355?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:03:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082355"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082355 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2400  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:48', 969082355, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082634 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634) Redirected to http://www.example.com/resolve?umlaut.request_id=969082355&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 37.1ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2400  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013341  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082355&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:03:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082355", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:03:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082634 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082355  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 [["request_id", 969082355]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082634 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082355 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (44.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (45.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082634 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082355  (14.5ms) COMMIT Completed 200 OK in 118ms (Views: 62.5ms | ActiveRecord: 46.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:03:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15570f70eb73a061f17d678276bb0ecb' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:48', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:48', 'format', 'journal', 969082635, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:48', 'isbn', 1, '0109836413', 969082635, '0109836413')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:03:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082635, '15570f70eb73a061f17d678276bb0ecb')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082356  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:48', NULL, 969082356, 'BorrowDirect', 'queued', '2015-02-19 23:03:48')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2401  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082356 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082635) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082635) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082356) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082356) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082356 AND `dispatched_services`.`id` = 2401 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082356, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:48', 'This item is not currently available from BorrowDirect', 969082356, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (2.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2401  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082356 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082635 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082635) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082356 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082635 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082356  (15.1ms) COMMIT Completed 200 OK in 251ms (Views: 19.7ms | ActiveRecord: 115.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4e23a018df2161622e5f3f52ba4d55c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:48', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:48', 'format', 'journal', 969082636, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:48', 'isbn', 1, '9789810743734', 969082636, '9789810743734')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082636, 'd4e23a018df2161622e5f3f52ba4d55c')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082357  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:48', NULL, 969082357, 'BorrowDirect', 'queued', '2015-02-19 23:03:48')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2402  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082636) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082357) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082357) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`id` = 2402 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082357, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:48', 'Choose your delivery location', 969082357, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2402  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082636 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082357 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082636 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082357  (14.7ms) COMMIT Completed 200 OK in 251ms (Views: 21.7ms | ActiveRecord: 114.2ms) Started GET "/borrow_direct/BorrowDirect/969082357?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:03:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082357"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082357 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2402  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:49', 969082357, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082636 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636) Redirected to http://www.example.com/resolve?umlaut.request_id=969082357&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 54ms (ActiveRecord: 38.7ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2402  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013346  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082357&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:03:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082357", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:03:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082636 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082357  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 [["request_id", 969082357]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082636 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.1ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082357 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082636 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082357  (14.4ms) COMMIT Completed 200 OK in 115ms (Views: 61.1ms | ActiveRecord: 45.1ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d565639e4bdf1fc26003a1249330b9c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:49', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:49', 'format', 'journal', 969082637, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:49', 'isbn', 1, '9789810743734', 969082637, '9789810743734')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082637, '2d565639e4bdf1fc26003a1249330b9c')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082358  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:49', NULL, 969082358, 'BorrowDirect', 'queued', '2015-02-19 23:03:49')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2403  (14.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082358 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082637) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082637) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082358) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082358) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082358 AND `dispatched_services`.`id` = 2403 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082358, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:49', 'Choose your delivery location', 969082358, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2403  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082358 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082637 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082637) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082358 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082358 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082637 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082358  (14.5ms) COMMIT Completed 200 OK in 252ms (Views: 22.1ms | ActiveRecord: 114.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '415d15959832a442ef54e23f3f6f56c6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:49', '9789810743734') SQL (6.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:49', 'format', 'journal', 969082638, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:49', 'isbn', 1, '9789810743734', 969082638, '9789810743734')  (16.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082638, '415d15959832a442ef54e23f3f6f56c6')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082359  (62.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:49', NULL, 969082359, 'BorrowDirect', 'queued', '2015-02-19 23:03:49')  (59.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2404  (28.1ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082638) ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082359) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082359) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (31.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`id` = 2404 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082359, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:49', 'Choose your delivery location', 969082359, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2404  (15.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082638 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082359 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082638 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082359  (14.5ms) COMMIT Completed 200 OK in 384ms (Views: 21.4ms | ActiveRecord: 229.7ms) Started GET "/borrow_direct/BorrowDirect/969082359" for 127.0.0.1 at 2015-02-19 18:03:49 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082359"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082359 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:49', 969082359, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082638 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638) Redirected to http://www.example.com/resolve?umlaut.request_id=969082359&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.7ms) Started GET "/resolve?umlaut.request_id=969082359&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:03:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082359", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:03:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082638 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082359  (14.2ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 [["request_id", 969082359]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082638 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082359 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082638 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082359  (14.6ms) COMMIT Completed 200 OK in 118ms (Views: 21.9ms | ActiveRecord: 45.1ms) Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13fed1afb40c3962599999e3c8b90134' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:03:50', 'biological foundations of language', '1967') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'book', 969082639, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'auinit', 1, 'eh', 969082639, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'aulast', 1, 'lenneberg', 969082639, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'title', 1, 'biological foundations of language', 969082639, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'genre', 1, 'book', 969082639, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'date', 1, '1967', 969082639, '1967')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082639, 'info:sid/google', '13fed1afb40c3962599999e3c8b90134')  (15.5ms) COMMIT ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082360 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082360, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082360 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:50', NULL, 969082360, 'test_bd', 'successful', '2015-02-19 23:03:50')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:50' WHERE `dispatched_services`.`id` = 2405  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082360 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed4427d861d7f48340f96acaef63f183' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:03:50', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082640, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'auinit', 1, 'rd', 969082640, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'aulast', 1, 'kaplan', 969082640, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'atitle', 1, 'the coming anarchy', 969082640, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'title', 1, 'the atlantic monthly', 969082640, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'volume', 1, '273', 969082640, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'issue', 1, '2', 969082640, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'date', 1, '1994', 969082640, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'spage', 1, '44', 969082640, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'issn', 1, '1072-7825', 969082640, '1072-7825')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082640, 'info:sid/google', 'ed4427d861d7f48340f96acaef63f183')  (14.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082361 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:50', NULL, 969082361, 'test_bd', 'successful', '2015-02-19 23:03:50')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:50' WHERE `dispatched_services`.`id` = 2406  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082361 ServiceResponse Exists (2.0ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082361 LIMIT 1 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49361ef64d0ef9805a4a0ee1377f7cba' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:50', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082641, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082641, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'aulast', 1, 'grimes', 969082641, 'Grimes')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082641, '49361ef64d0ef9805a4a0ee1377f7cba')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082362, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.6ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082362 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b280596db5a99edf77cae5aba553840' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:50', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082642, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'isbn', 1, '121212', 969082642, '121212')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082642, '3b280596db5a99edf77cae5aba553840')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082363"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082363 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082363 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082363  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082363, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082363\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082642 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082642) Redirected to http://test.host/resolve?umlaut.request_id=969082363&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.0ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8dd39acc995c515cf5f962319c1448c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:50', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082643, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'isbn', 1, '121212', 969082643, '121212')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082643, 'e8dd39acc995c515cf5f962319c1448c')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082364, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082364"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082364 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082364 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013355  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082364, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013355\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082643 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082643) Redirected to http://test.host/resolve?umlaut.request_id=969082364&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.9ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72380c632fdb3d1cedb392b9a8f6e079' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:50', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082644, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'isbn', 1, '121212', 969082644, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082644, '72380c632fdb3d1cedb392b9a8f6e079')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082365, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082365"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082365 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082365 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082365 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:50', NULL, 969082365, 'BorrowDirect', 'in_progress', '2015-02-19 23:03:50')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:50' WHERE `dispatched_services`.`id` = 2407  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082365, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082644 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082644) Redirected to http://test.host/resolve?umlaut.request_id=969082365&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 68ms (ActiveRecord: 57.9ms) DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082365 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082365 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082365 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:03:50' WHERE `dispatched_services`.`id` = 2407  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013358  (14.0ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aac7c70d50aa80a454c831d057b0233a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:52', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:52', 'format', 'journal', 969082645, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:52', 'isbn', 1, '121212', 969082645, '121212')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082645, 'aac7c70d50aa80a454c831d057b0233a')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:52', 969082366, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082366"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082366 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082366 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082366 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:52', NULL, 969082366, 'BorrowDirect', 'in_progress', '2015-02-19 23:03:52')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:52' WHERE `dispatched_services`.`id` = 2408  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:52', 969082366, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082645 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082645) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082366&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 132ms (ActiveRecord: 65.0ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c2e0838c7a44ceb1e2696349a09a9947' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:52', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:52', 'format', 'journal', 969082646, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:52', 'isbn', 1, '121212', 969082646, '121212')  (24.3ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082646, 'c2e0838c7a44ceb1e2696349a09a9947')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082367"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082367 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082367 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:52', 969082367, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082646 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082646) Redirected to http://test.host/resolve?umlaut.request_id=969082367&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 39ms (ActiveRecord: 24.9ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35fccd1cf53ba5008105cf44b3805b41' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:04:24', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'format', 'journal', 969082647, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'auinit', 1, 'rd', 969082647, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'aulast', 1, 'kaplan', 969082647, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'atitle', 1, 'the coming anarchy', 969082647, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'title', 1, 'the atlantic monthly', 969082647, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'volume', 1, '273', 969082647, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'issue', 1, '2', 969082647, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'date', 1, '1994', 969082647, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'spage', 1, '44', 969082647, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'issn', 1, '1072-7825', 969082647, '1072-7825')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:04:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082647, 'info:sid/google', '35fccd1cf53ba5008105cf44b3805b41')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082368 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:24', NULL, 969082368, 'test_bd', 'successful', '2015-02-19 23:04:24')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:24' WHERE `dispatched_services`.`id` = 2409  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082368 ServiceResponse Exists (2.0ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082368 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34140126a3b5ada044363e1dd4b69b83' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:24', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'format', 'journal', 969082648, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082648, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'aulast', 1, 'grimes', 969082648, 'Grimes')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:04:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082648, '34140126a3b5ada044363e1dd4b69b83')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082369, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.9ms) COMMIT ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082369 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9bcaa729f42632623a257fb642aece7' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:04:24', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'format', 'book', 969082649, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'auinit', 1, 'eh', 969082649, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'aulast', 1, 'lenneberg', 969082649, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'title', 1, 'biological foundations of language', 969082649, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'genre', 1, 'book', 969082649, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'date', 1, '1967', 969082649, '1967')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:04:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082649, 'info:sid/google', 'd9bcaa729f42632623a257fb642aece7')  (14.6ms) COMMIT ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082370 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082370, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082370 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:24', NULL, 969082370, 'test_bd', 'successful', '2015-02-19 23:04:24')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2410  (14.9ms) COMMIT DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082370 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8e7d62ce526e7cc002bd66b24261cc1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:25', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'format', 'journal', 969082650, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'isbn', 1, '9789810743734', 969082650, '9789810743734')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082650, 'd8e7d62ce526e7cc002bd66b24261cc1')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082371  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:25', NULL, 969082371, 'test_bd', 'queued', '2015-02-19 23:04:25')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2411  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082371 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082650) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082650) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082371) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082371) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082371 AND `dispatched_services`.`id` = 2411 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082371, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2411  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082371 LIMIT 1 DispatchedService Load (35.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082650 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082650) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082371 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (93.0ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082650 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082371  (14.4ms) COMMIT Completed 200 OK in 456ms (Views: 136.1ms | ActiveRecord: 115.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:04:25 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '071856f9d1e625d6bd86bd28b04a6f7b' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:25', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'format', 'book', 969082651, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'genre', 1, 'book', 969082651, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'author', 1, 'smith', 969082651, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'title', 1, 'some book', 969082651, 'Some Book')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:04:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082651, '071856f9d1e625d6bd86bd28b04a6f7b')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082372  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:25', NULL, 969082372, 'BorrowDirect', 'queued', '2015-02-19 23:04:25')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2412  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082372 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082651) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082651) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082372) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082372) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082372 AND `dispatched_services`.`id` = 2412 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082372, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2412  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082372 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.7ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082651 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082651) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082372 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082651 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082372  (14.3ms) COMMIT Completed 200 OK in 240ms (Views: 20.4ms | ActiveRecord: 126.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:04:25 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '919a622b0e8b417bb4f87b84bf66380b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:25', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'format', 'journal', 969082652, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'genre', 1, 'article', 969082652, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'title', 1, 'foo', 969082652, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'author', 1, 'bar', 969082652, 'bar')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:04:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082652, '919a622b0e8b417bb4f87b84bf66380b')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082373  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:25', NULL, 969082373, 'BorrowDirect', 'queued', '2015-02-19 23:04:25')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2413  (19.3ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082373 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082652) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082652) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082373) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082373) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (13.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082373 AND `dispatched_services`.`id` = 2413 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2413  (13.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082373 LIMIT 1 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082652 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082652) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082373 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082652 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (38.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082373  (13.5ms) COMMIT Completed 200 OK in 246ms (Views: 53.2ms | ActiveRecord: 122.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60943f1834c47d97258868043ab34e92' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:26', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'format', 'book', 969082653, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'genre', 1, 'book', 969082653, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'title', 1, 'foo', 969082653, 'foo')  (13.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:04:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082653, '60943f1834c47d97258868043ab34e92')  (13.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082374 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.8ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:26', NULL, 969082374, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:04:26')  (13.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2414  (13.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082374" for 127.0.0.1 at 2015-02-19 18:04:26 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082374"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082374 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082653 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082653)  (0.8ms) BEGIN SQL (0.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082374  (13.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082374 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082374 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082374 [["request_id", 969082374]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082653 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082653) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082374 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082374 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082653 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082374  (13.4ms) COMMIT Completed 200 OK in 67ms (Views: 18.8ms | ActiveRecord: 41.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c66a044cd6c7255ef5c91f4461edec41' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:26', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'format', 'journal', 969082654, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'isbn', 1, '9789810743734', 969082654, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082654, 'c66a044cd6c7255ef5c91f4461edec41')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082375  (13.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:26', NULL, 969082375, 'BorrowDirect', 'queued', '2015-02-19 23:04:26')  (13.4ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2415  (15.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082654) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082375) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082375) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`id` = 2415 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082375, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.3ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:26', 'Choose your delivery location', 969082375, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2415  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082654 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082375 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082654 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082375  (14.4ms) COMMIT Completed 200 OK in 252ms (Views: 23.8ms | ActiveRecord: 111.6ms) Started GET "/borrow_direct/BorrowDirect/969082375?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:04:26 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082375"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082375 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2415  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:26', 969082375, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082654 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654) Redirected to http://www.example.com/resolve?umlaut.request_id=969082375&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 39.0ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2415  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013368  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969082375&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:04:26 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082375", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:04:26-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082654 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082375  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 [["request_id", 969082375]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082654 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082375 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082654 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082375  (14.3ms) COMMIT Completed 200 OK in 117ms (Views: 63.0ms | ActiveRecord: 45.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:04:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10ada5314b81c91840315458360fa4ca' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:26', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'format', 'journal', 969082655, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'isbn', 1, '0109836413', 969082655, '0109836413')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:04:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082655, '10ada5314b81c91840315458360fa4ca')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082376  (15.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:26', NULL, 969082376, 'BorrowDirect', 'queued', '2015-02-19 23:04:26')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2416  (14.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082376 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082655) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082655) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082376) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082376) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082376 AND `dispatched_services`.`id` = 2416 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082376, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:26', 'This item is not currently available from BorrowDirect', 969082376, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (13.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2416  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082376 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082655 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082655) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082376 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082655 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082376  (14.4ms) COMMIT Completed 200 OK in 247ms (Views: 20.3ms | ActiveRecord: 113.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f4184e0a9adaef55ce216a9bfa8907bc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:26', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'format', 'journal', 969082656, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'isbn', 1, '9789810743734', 969082656, '9789810743734')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082656, 'f4184e0a9adaef55ce216a9bfa8907bc')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082377  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:27', NULL, 969082377, 'BorrowDirect', 'queued', '2015-02-19 23:04:27')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2417  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082656) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082377) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082377) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`id` = 2417 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (2.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082377, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:27', 'Choose your delivery location', 969082377, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2417  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082656 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082377 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082656 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082377  (14.4ms) COMMIT Completed 200 OK in 252ms (Views: 20.8ms | ActiveRecord: 114.8ms) Started GET "/borrow_direct/BorrowDirect/969082377?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:04:27 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082377"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082377 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2417  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:27', 969082377, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082656 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656) Redirected to http://www.example.com/resolve?umlaut.request_id=969082377&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 54ms (ActiveRecord: 38.6ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2417  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013373  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082377&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:04:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082377", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:04:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082656 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082377  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 [["request_id", 969082377]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082656 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082377 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (42.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082656 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082377  (14.7ms) COMMIT Completed 200 OK in 116ms (Views: 61.0ms | ActiveRecord: 45.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f93917388e3b601347c58ea3efe0a33' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:27', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:27', 'format', 'journal', 969082657, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:27', 'isbn', 1, '9789810743734', 969082657, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082657, '0f93917388e3b601347c58ea3efe0a33')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082378  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:27', NULL, 969082378, 'BorrowDirect', 'queued', '2015-02-19 23:04:27')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2418  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082378 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082657) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082657) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082378) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082378) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082378 AND `dispatched_services`.`id` = 2418 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082378, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:27', 'Choose your delivery location', 969082378, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2418  (17.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082378 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082657 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082657) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082378 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082378 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082657 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082378  (26.1ms) COMMIT Completed 200 OK in 265ms (Views: 22.1ms | ActiveRecord: 126.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1af5ce47fc67d41d40fbad672c7cb666' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:27', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:27', 'format', 'journal', 969082658, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:27', 'isbn', 1, '9789810743734', 969082658, '9789810743734')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082658, '1af5ce47fc67d41d40fbad672c7cb666')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082379  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:27', NULL, 969082379, 'BorrowDirect', 'queued', '2015-02-19 23:04:27')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2419  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082658) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082379) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082379) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`id` = 2419 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082379, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:27', 'Choose your delivery location', 969082379, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2419  (21.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082658 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082379 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082658 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082379  (14.5ms) COMMIT Completed 200 OK in 259ms (Views: 22.0ms | ActiveRecord: 117.0ms) Started GET "/borrow_direct/BorrowDirect/969082379" for 127.0.0.1 at 2015-02-19 18:04:28 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082379"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082379 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082379, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.8ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082658 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658) Redirected to http://www.example.com/resolve?umlaut.request_id=969082379&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 23.1ms) Started GET "/resolve?umlaut.request_id=969082379&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:04:28 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082379", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:04:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082658 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082379  (14.9ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 [["request_id", 969082379]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082658 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082379 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082658 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (44.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082379  (15.0ms) COMMIT Completed 200 OK in 120ms (Views: 64.3ms | ActiveRecord: 46.2ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8755f0ecb2a6cb94311d877e698f6801' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:28', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082659, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'title', 1, 'title', 969082659, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'author', 1, 'au', 969082659, 'au')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082659, '8755f0ecb2a6cb94311d877e698f6801')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082380, '--- {}\n', 'test_holding', 'holding')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082380, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082380 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082380, 'test_bd', 'successful', '2015-02-19 23:04:28')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2420  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082380 ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082380 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f51441c874cf2e78c9b4819a02d13576' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:28', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082660, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'title', 1, 'title', 969082660, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'author', 1, 'au', 969082660, 'au')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (5.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082660, 'f51441c874cf2e78c9b4819a02d13576')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082381, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082381 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082381 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082381, 'test_bd', 'successful', '2015-02-19 23:04:28')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2421  (14.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082381 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '878fa6a117ecf56b3362101612b1d06c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:28', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082661, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'title', 1, 'title', 969082661, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'author', 1, 'au', 969082661, 'au')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082661, '878fa6a117ecf56b3362101612b1d06c')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082382, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (13.9ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082382 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082382, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082382 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082382, 'test_bd', 'successful', '2015-02-19 23:04:28')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2422  (15.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082382 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e03ef12d833f4ae16a3286a89346c715' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:28', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082662, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'title', 1, 'title', 969082662, 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'author', 1, 'au', 969082662, 'au')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082662, 'e03ef12d833f4ae16a3286a89346c715')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082383, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.4ms) COMMIT ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082383 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082383, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082383 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082383, 'test_bd', 'successful', '2015-02-19 23:04:28')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2423  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082383  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35d5d7619608789fcf6412ea47499106' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:28', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082663, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'isbn', 1, '9789810743734', 969082663, '9789810743734')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082663, '35d5d7619608789fcf6412ea47499106')  (14.1ms) COMMIT ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082384 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082384, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 'Choose your delivery location', 969082384, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082384 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082384, 'test_bd', 'successful', '2015-02-19 23:04:28')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2424  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082384 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1067adb04c83fe72fcd2b7b2b4038ec' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:28', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082664, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'isbn', 1, '000000000', 969082664, '000000000')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082664, 'c1067adb04c83fe72fcd2b7b2b4038ec')  (14.3ms) COMMIT ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082385 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082385, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 'This item is not currently available from BorrowDirect', 969082385, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082385 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082385, 'test_bd', 'successful', '2015-02-19 23:04:28')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2425  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082385 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f443865afe2f58156146881653bca05a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:28', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082665, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'isbn', 1, '9789810743734', 969082665, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082665, 'f443865afe2f58156146881653bca05a')  (14.4ms) COMMIT ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082386 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082386, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082386 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:29', NULL, 969082386, 'test_bd', 'failed_temporary', '2015-02-19 23:04:29')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:04:29' WHERE `dispatched_services`.`id` = 2426  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082386 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2def6e5dbb4b5ba8100a7b390e95ce6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:29', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'format', 'journal', 969082666, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'isbn', 1, '0109836413', 969082666, '0109836413')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:04:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082666, 'e2def6e5dbb4b5ba8100a7b390e95ce6')  (13.9ms) COMMIT ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082387 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082387, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 'This item is not currently available from BorrowDirect', 969082387, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082387 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:29', NULL, 969082387, 'test_bd', 'successful', '2015-02-19 23:04:29')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:29' WHERE `dispatched_services`.`id` = 2427  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082387 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0673a0f6dc5dba0a142a149f35588ab' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:29', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'format', 'journal', 969082667, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'isbn', 1, '121212', 969082667, '121212')  (14.4ms) COMMIT  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082667, 'd0673a0f6dc5dba0a142a149f35588ab')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082388"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082388 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082388 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082388  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082388, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082388\n', 'BorrowDirect', 'bd_request_status')  (15.3ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082667 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082667) Redirected to http://test.host/resolve?umlaut.request_id=969082388&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 25.8ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1dd066e80e37227e3e897fdef63d192a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:29', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'format', 'journal', 969082668, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'isbn', 1, '121212', 969082668, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082668, '1dd066e80e37227e3e897fdef63d192a')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082389, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082389"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082389 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082389 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013394  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082389, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013394\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082668 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082668) Redirected to http://test.host/resolve?umlaut.request_id=969082389&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.1ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca2ae8733ce9ad556fb947e8bc81165a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:29', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'format', 'journal', 969082669, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'isbn', 1, '121212', 969082669, '121212')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082669, 'ca2ae8733ce9ad556fb947e8bc81165a')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082390, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082390"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082390 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082390 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082390 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:29', NULL, 969082390, 'BorrowDirect', 'in_progress', '2015-02-19 23:04:29')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:29' WHERE `dispatched_services`.`id` = 2428  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082390, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082669 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082669) Redirected to http://test.host/resolve?umlaut.request_id=969082390&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 69ms (ActiveRecord: 58.9ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082390 ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082390 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082390 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:04:29' WHERE `dispatched_services`.`id` = 2428  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013397  (14.0ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8baef34a77eafd652d62ce5ebee02162' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:30', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:30', 'format', 'journal', 969082670, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:30', 'isbn', 1, '121212', 969082670, '121212')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082670, '8baef34a77eafd652d62ce5ebee02162')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:30', 969082391, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082391"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082391 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082391 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082391 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:30', NULL, 969082391, 'BorrowDirect', 'in_progress', '2015-02-19 23:04:30')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:30' WHERE `dispatched_services`.`id` = 2429  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:30', 969082391, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082670 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082670) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082391&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 78ms (ActiveRecord: 57.8ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (3.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082391 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '27724c1a51786c84805139d7c9855661' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN  (4.8ms) BEGIN SQL (5.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:04:30' WHERE `dispatched_services`.`id` = 2429 SQL (2.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:30', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:30', 'format', 'journal', 969082671, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:30', 'isbn', 1, '121212', 969082671, '121212')  (18.5ms) COMMIT  (0.8ms) BEGIN  (16.2ms) COMMIT SQL (2.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013399  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082671, '27724c1a51786c84805139d7c9855661')  (14.5ms) COMMIT  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082392"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082392 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082392 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:31', 969082392, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082671 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082671) Redirected to http://test.host/resolve?umlaut.request_id=969082392&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 39ms (ActiveRecord: 24.7ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f6e0f601c3140c1e9ce562889530e3fa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:31', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:31', 'format', 'journal', 969082672, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:31', 'isbn', 1, '9789810743734', 969082672, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082672, 'f6e0f601c3140c1e9ce562889530e3fa')  (14.2ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082393 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082393, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082393 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:31', NULL, 969082393, 'test_bd', 'successful', '2015-02-19 23:04:31')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:31' WHERE `dispatched_services`.`id` = 2430  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082393 ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66b5d04dcb600943c90477a7deb0b924' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:05:03', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (6.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'format', 'journal', 969082673, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'auinit', 1, 'rd', 969082673, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'aulast', 1, 'kaplan', 969082673, 'Kaplan') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'atitle', 1, 'the coming anarchy', 969082673, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'title', 1, 'the atlantic monthly', 969082673, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'volume', 1, '273', 969082673, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'issue', 1, '2', 969082673, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'date', 1, '1994', 969082673, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'spage', 1, '44', 969082673, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'issn', 1, '1072-7825', 969082673, '1072-7825')  (22.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:05:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082673, 'info:sid/google', '66b5d04dcb600943c90477a7deb0b924')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082394 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:03', NULL, 969082394, 'test_bd', 'successful', '2015-02-19 23:05:03')  (16.8ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:03' WHERE `dispatched_services`.`id` = 2431  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082394 ServiceResponse Exists (2.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082394 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '842bca8b24c7bf5bce1760eed6909775' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:04', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'format', 'journal', 969082674, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082674, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'aulast', 1, 'grimes', 969082674, 'Grimes')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:05:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082674, '842bca8b24c7bf5bce1760eed6909775')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082395, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.0ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082395 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '677ba8386948d5d252f8bf6427d231f4' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:05:04', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'format', 'book', 969082675, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'auinit', 1, 'eh', 969082675, 'EH') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'aulast', 1, 'lenneberg', 969082675, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'title', 1, 'biological foundations of language', 969082675, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'genre', 1, 'book', 969082675, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'date', 1, '1967', 969082675, '1967')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:05:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082675, 'info:sid/google', '677ba8386948d5d252f8bf6427d231f4')  (14.0ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082396 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082396, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082396 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:04', NULL, 969082396, 'test_bd', 'successful', '2015-02-19 23:05:04')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2432  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082396 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c4ce85db3cf4cc947bc1353a6e0aebd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:04', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'format', 'journal', 969082676, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'isbn', 1, '9789810743734', 969082676, '9789810743734')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082676, '0c4ce85db3cf4cc947bc1353a6e0aebd')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082397  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:04', NULL, 969082397, 'test_bd', 'queued', '2015-02-19 23:05:04')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2433  (14.3ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082397 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082676) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082676) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082397) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082397) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082397 AND `dispatched_services`.`id` = 2433 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082397, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2433  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082397 LIMIT 1 DispatchedService Load (38.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082676 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082676) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082397 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (92.9ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082676 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082397  (14.5ms) COMMIT Completed 200 OK in 442ms (Views: 136.1ms | ActiveRecord: 116.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:05:04 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89fc509fa82a6e32b5e32167464ad465' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:04', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'format', 'book', 969082677, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'genre', 1, 'book', 969082677, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'author', 1, 'smith', 969082677, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'title', 1, 'some book', 969082677, 'Some Book')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:05:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082677, '89fc509fa82a6e32b5e32167464ad465')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082398  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:04', NULL, 969082398, 'BorrowDirect', 'queued', '2015-02-19 23:05:04')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2434  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082398 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082677) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082677) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082398) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082398) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082398 AND `dispatched_services`.`id` = 2434 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082398, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2434  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082398 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082677 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082677) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082398 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082677 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082398  (14.9ms) COMMIT Completed 200 OK in 243ms (Views: 20.1ms | ActiveRecord: 128.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:05:05 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f73052d4185a8a757e62743ca28d9e6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:05', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'format', 'journal', 969082678, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'genre', 1, 'article', 969082678, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'title', 1, 'foo', 969082678, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'author', 1, 'bar', 969082678, 'bar')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:05:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082678, '9f73052d4185a8a757e62743ca28d9e6')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082399  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:05', NULL, 969082399, 'BorrowDirect', 'queued', '2015-02-19 23:05:05')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2435  (14.1ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082399 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082678) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082678) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082399) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082399) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082399 AND `dispatched_services`.`id` = 2435 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2435  (15.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082399 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082678 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082678) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082399 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082678 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (39.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082399  (14.6ms) COMMIT Completed 200 OK in 247ms (Views: 56.2ms | ActiveRecord: 116.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c0f77fa21789f237c618bcf8b3c313bb' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:05', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'format', 'book', 969082679, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'genre', 1, 'book', 969082679, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'title', 1, 'foo', 969082679, 'foo')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:05:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082679, 'c0f77fa21789f237c618bcf8b3c313bb')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082400 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:05', NULL, 969082400, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:05:05')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2436  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082400" for 127.0.0.1 at 2015-02-19 18:05:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082400"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082400 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082679 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082679)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082400  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082400 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082400 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082400 [["request_id", 969082400]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082679 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082679) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082400 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082400 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082679 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082400  (14.5ms) COMMIT Completed 200 OK in 73ms (Views: 18.1ms | ActiveRecord: 47.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9183ef125946c7c351f41fbfa6df1e98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:05', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'format', 'journal', 969082680, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'isbn', 1, '9789810743734', 969082680, '9789810743734')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082680, '9183ef125946c7c351f41fbfa6df1e98')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082401  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:05', NULL, 969082401, 'BorrowDirect', 'queued', '2015-02-19 23:05:05')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2437  (14.5ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082680) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082401) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082401) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`id` = 2437 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082401, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:05', 'Choose your delivery location', 969082401, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2437  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082680 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082401 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082680 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082401  (14.2ms) COMMIT Completed 200 OK in 255ms (Views: 25.3ms | ActiveRecord: 115.0ms) Started GET "/borrow_direct/BorrowDirect/969082401?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:05:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082401"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082401 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2437  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:05', 969082401, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082680 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680) Redirected to http://www.example.com/resolve?umlaut.request_id=969082401&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 39.3ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2437  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013408  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969082401&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:05:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082401", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:05:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082680 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082401  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 [["request_id", 969082401]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082680 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082401 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (41.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (42.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (43.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082680 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082401  (14.4ms) COMMIT Completed 200 OK in 118ms (Views: 63.1ms | ActiveRecord: 45.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:05:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'deaf7e49cd6f2db68e952f9dcd9d0c83' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:05', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'format', 'journal', 969082681, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'isbn', 1, '0109836413', 969082681, '0109836413')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:05:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082681, 'deaf7e49cd6f2db68e952f9dcd9d0c83')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082402  (14.9ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:06', NULL, 969082402, 'BorrowDirect', 'queued', '2015-02-19 23:05:06')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2438  (14.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082402 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082681) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082681) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082402) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082402) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082402 AND `dispatched_services`.`id` = 2438 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082402, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (1.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:06', 'This item is not currently available from BorrowDirect', 969082402, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.3ms) COMMIT DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.7ms) BEGIN SQL (2.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2438  (15.1ms) COMMIT Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082402 LIMIT 1 DispatchedService Load (3.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (3.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402 Referent Load (4.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082681 LIMIT 1 ReferentValue Load (2.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082681) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (14.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082402 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082681 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082402  (14.5ms) COMMIT Completed 200 OK in 272ms (Views: 25.3ms | ActiveRecord: 125.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9722595f5a8b92883450d6e813f3ef69' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:06', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'format', 'journal', 969082682, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'isbn', 1, '9789810743734', 969082682, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082682, '9722595f5a8b92883450d6e813f3ef69')  (15.1ms) COMMIT  (1.0ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082403  (16.1ms) COMMIT DispatchedService Load (4.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403  (1.3ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:06', NULL, 969082403, 'BorrowDirect', 'queued', '2015-02-19 23:05:06')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2439  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082682) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082403) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082403) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`id` = 2439 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082403, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:06', 'Choose your delivery location', 969082403, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2439  (15.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082682 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082403 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082682 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082403  (14.6ms) COMMIT Completed 200 OK in 260ms (Views: 21.9ms | ActiveRecord: 122.6ms) Started GET "/borrow_direct/BorrowDirect/969082403?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:05:06 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082403"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082403 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2439  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:06', 969082403, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082682 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682) Redirected to http://www.example.com/resolve?umlaut.request_id=969082403&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2439  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013413  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082403&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:05:06 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082403", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:05:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082682 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082403  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 [["request_id", 969082403]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082682 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082403 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (42.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (43.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082682 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082403  (15.0ms) COMMIT Completed 200 OK in 117ms (Views: 61.6ms | ActiveRecord: 46.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85cab0dd6ee48007bc81f6e293a6d18b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:06', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'format', 'journal', 969082683, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'isbn', 1, '9789810743734', 969082683, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082683, '85cab0dd6ee48007bc81f6e293a6d18b')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082404  (13.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:06', NULL, 969082404, 'BorrowDirect', 'queued', '2015-02-19 23:05:06')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2440  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082404 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082683) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082683) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082404) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082404) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082404 AND `dispatched_services`.`id` = 2440 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082404, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:06', 'Choose your delivery location', 969082404, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2440  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082404 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082683 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082683) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082404 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082404 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082683 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082404  (14.9ms) COMMIT Completed 200 OK in 252ms (Views: 20.9ms | ActiveRecord: 115.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e3f7d062fc2944d934a2166f662c469' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:06', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'format', 'journal', 969082684, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'isbn', 1, '9789810743734', 969082684, '9789810743734')  (22.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082684, '6e3f7d062fc2944d934a2166f662c469')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082405  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:07', NULL, 969082405, 'BorrowDirect', 'queued', '2015-02-19 23:05:07')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2441  (14.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082684) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082405) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082405) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`id` = 2441 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082405, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 'Choose your delivery location', 969082405, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2441  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082684 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082405 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082684 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082405  (14.4ms) COMMIT Completed 200 OK in 267ms (Views: 22.0ms | ActiveRecord: 128.8ms) Started GET "/borrow_direct/BorrowDirect/969082405" for 127.0.0.1 at 2015-02-19 18:05:07 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082405"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082405 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082405, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082684 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684) Redirected to http://www.example.com/resolve?umlaut.request_id=969082405&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.4ms) Started GET "/resolve?umlaut.request_id=969082405&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:05:07 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082405", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:05:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082684 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082405  (14.3ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 [["request_id", 969082405]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082684 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082405 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082684 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (44.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082405  (14.4ms) COMMIT Completed 200 OK in 120ms (Views: 64.7ms | ActiveRecord: 46.0ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '999e8967372e3c67b712cd8f42234f28' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082685, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '9789810743734', 969082685, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082685, '999e8967372e3c67b712cd8f42234f28')  (14.2ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082406 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082406, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082406 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:07', NULL, 969082406, 'test_bd', 'successful', '2015-02-19 23:05:07')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2442  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082406 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8edcf1f525f071c09ca04f00dfdc8dd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082686, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '121212', 969082686, '121212')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082686, 'c8edcf1f525f071c09ca04f00dfdc8dd')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082407"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082407 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082407 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082407  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082407, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082407\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082686 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082686) Redirected to http://test.host/resolve?umlaut.request_id=969082407&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.1ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f1cc4e82df92ed72b35ca2a7e7d94c65' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082687, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '121212', 969082687, '121212')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082687, 'f1cc4e82df92ed72b35ca2a7e7d94c65')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082408, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082408"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082408 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082408 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013421  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082408, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013421\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082687 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082687) Redirected to http://test.host/resolve?umlaut.request_id=969082408&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.6ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe7b3a2545c6d279ba588bd5d14dc3b1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082688, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '121212', 969082688, '121212')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082688, 'fe7b3a2545c6d279ba588bd5d14dc3b1')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082409, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082409"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082409 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082409 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082409 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:07', NULL, 969082409, 'BorrowDirect', 'in_progress', '2015-02-19 23:05:07')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2443  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082409, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082688 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082688) Redirected to http://test.host/resolve?umlaut.request_id=969082409&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 70ms (ActiveRecord: 59.7ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082409 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082409 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082409 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2443  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013424  (14.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db005f3bcd79109d3ba4e64f468dcf0a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082689, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '121212', 969082689, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082689, 'db005f3bcd79109d3ba4e64f468dcf0a')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (2.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082410, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082410"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082410 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082410 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082410 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:07', NULL, 969082410, 'BorrowDirect', 'in_progress', '2015-02-19 23:05:07')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2444  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082410, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082689 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082689) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082410&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 72ms (ActiveRecord: 58.4ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fe33ec977ecddbbed31f6e9571b44ad' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:08', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082690, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'isbn', 1, '121212', 969082690, '121212')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082690, '5fe33ec977ecddbbed31f6e9571b44ad')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082411"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082411 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082411 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082411, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082690 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082690) Redirected to http://test.host/resolve?umlaut.request_id=969082411&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.2ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4241350781921320b8ec408853d2e2e1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:08', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082691, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'title', 1, 'title', 969082691, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'author', 1, 'au', 969082691, 'au')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082691, '4241350781921320b8ec408853d2e2e1')  (17.7ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082412, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.8ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082412 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082412 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082412, 'test_bd', 'successful', '2015-02-19 23:05:08')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2445  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082412 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '484eb2213483f1ae85a077ba0f727f35' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:08', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082692, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'title', 1, 'title', 969082692, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'author', 1, 'au', 969082692, 'au')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082692, '484eb2213483f1ae85a077ba0f727f35')  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082413, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082413 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082413, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082413 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082413, 'test_bd', 'successful', '2015-02-19 23:05:08')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2446  (18.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082413 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a175fcc636a050cfda9605f8f0e292b4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:08', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082693, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'title', 1, 'title', 969082693, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'author', 1, 'au', 969082693, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082693, 'a175fcc636a050cfda9605f8f0e292b4')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082414, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082414 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082414, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082414 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082414, 'test_bd', 'successful', '2015-02-19 23:05:08')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2447  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082414 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f3e6b8d4fd2dcb58e7039b915178e15' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:08', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082694, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'title', 1, 'title', 969082694, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'author', 1, 'au', 969082694, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082694, '0f3e6b8d4fd2dcb58e7039b915178e15')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082415, '--- {}\n', 'test_holding', 'holding')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082415, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082415 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082415, 'test_bd', 'successful', '2015-02-19 23:05:08')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2448  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082415 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082415 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81d26f172fecc40d3c0a4b090b17927d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (4.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:08', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082695, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'isbn', 1, '9789810743734', 969082695, '9789810743734')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082695, '81d26f172fecc40d3c0a4b090b17927d')  (13.8ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082416 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082416, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 'Choose your delivery location', 969082416, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082416 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082416, 'test_bd', 'successful', '2015-02-19 23:05:08')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2449  (13.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082416 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf33c798f2ad0b41f07c54835199d856' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:08', '0109836413') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082696, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'isbn', 1, '0109836413', 969082696, '0109836413')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082696, 'bf33c798f2ad0b41f07c54835199d856')  (14.0ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082417 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082417, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.7ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 'This item is not currently available from BorrowDirect', 969082417, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (13.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082417 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082417, 'test_bd', 'successful', '2015-02-19 23:05:08')  (13.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2450  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082417 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e0218af96b07145204e7ad87ca395cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:08', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082697, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'isbn', 1, '9789810743734', 969082697, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082697, '4e0218af96b07145204e7ad87ca395cd')  (13.6ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082418 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082418, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082418 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:09', NULL, 969082418, 'test_bd', 'failed_temporary', '2015-02-19 23:05:09')  (13.7ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:05:09' WHERE `dispatched_services`.`id` = 2451  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082418 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48279eef45dd465bef60fb25d4b1643b' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:09', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:09', 'format', 'journal', 969082698, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:09', 'isbn', 1, '000000000', 969082698, '000000000')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:05:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082698, '48279eef45dd465bef60fb25d4b1643b')  (14.0ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082419 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082419, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:09', 'This item is not currently available from BorrowDirect', 969082419, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (13.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082419 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:09', NULL, 969082419, 'test_bd', 'successful', '2015-02-19 23:05:09')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:09' WHERE `dispatched_services`.`id` = 2452  (13.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082419  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a7634b6ea67f6da857371e39bf74932' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:29', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:29', 'format', 'journal', 969082699, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:29', 'isbn', 1, '121212', 969082699, '121212')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082699, '4a7634b6ea67f6da857371e39bf74932')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:29', 969082420, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082420"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082420 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082420 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082420 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:29', NULL, 969082420, 'BorrowDirect', 'in_progress', '2015-02-19 23:05:29')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:29' WHERE `dispatched_services`.`id` = 2453  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:29', 969082420, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.5ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082699 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082699) Completed 500 Internal Server Error in 153ms BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request' DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082420 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ae832a867e6720a708b85deb0ae758f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:56', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:56', 'format', 'journal', 969082700, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:56', 'isbn', 1, '121212', 969082700, '121212')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082700, '2ae832a867e6720a708b85deb0ae758f')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:56', 969082421, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (16.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082421"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082421 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082421 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082421 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.2ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:57', NULL, 969082421, 'BorrowDirect', 'in_progress', '2015-02-19 23:05:57')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:57' WHERE `dispatched_services`.`id` = 2454  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:57', 969082421, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082700 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082700) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082421&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 132ms (ActiveRecord: 65.8ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ce50cc5c97868923204bffb2088b87f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:06:15', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:06:15', 'format', 'journal', 969082701, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:06:15', 'isbn', 1, '121212', 969082701, '121212')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:06:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082701, '3ce50cc5c97868923204bffb2088b87f')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:06:15', 969082422, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082422"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082422 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082422 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082422 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:06:15', NULL, 969082422, 'BorrowDirect', 'in_progress', '2015-02-19 23:06:15')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:06:15' WHERE `dispatched_services`.`id` = 2455  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:06:15', 969082422, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.8ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082701 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082701) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f5c47f4e4a02687b9541ccf5ae4312d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:07:48', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:07:48', 'format', 'journal', 969082702, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:07:48', 'isbn', 1, '121212', 969082702, '121212')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:07:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082702, '1f5c47f4e4a02687b9541ccf5ae4312d')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:07:48', 969082423, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082423"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082423 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082423 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082423 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:07:48', NULL, 969082423, 'BorrowDirect', 'in_progress', '2015-02-19 23:07:48')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:07:48' WHERE `dispatched_services`.`id` = 2456  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:07:48', 969082423, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082702 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082702) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082423&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A07%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 1220ms (ActiveRecord: 65.5ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85897b03d046e2cb80ce4ed97047f5fb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:07:55', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:07:55', 'format', 'journal', 969082703, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:07:55', 'isbn', 1, '121212', 969082703, '121212')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:07:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082703, '85897b03d046e2cb80ce4ed97047f5fb')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:07:55', 969082424, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082424"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082424 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082424 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082424 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:07:56', NULL, 969082424, 'BorrowDirect', 'in_progress', '2015-02-19 23:07:56')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:07:56' WHERE `dispatched_services`.`id` = 2457  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:07:56', 969082424, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082703 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082703) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'daa7c7e34e2aa661c0d7219b746ab7ae' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:11:19', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:11:19', 'format', 'journal', 969082704, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:11:19', 'isbn', 1, '121212', 969082704, '121212')  (28.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:11:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082704, 'daa7c7e34e2aa661c0d7219b746ab7ae')  (25.1ms) COMMIT  (1.0ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:11:19', 969082425, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082425"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082425 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082425 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082425 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:11:19', NULL, 969082425, 'BorrowDirect', 'in_progress', '2015-02-19 23:11:19')  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:11:19' WHERE `dispatched_services`.`id` = 2458  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:11:19', 969082425, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082704 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082704) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c7321169614878151766eb41e84fb07' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:11:46', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:11:46', 'format', 'journal', 969082705, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:11:46', 'isbn', 1, '121212', 969082705, '121212')  (16.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:11:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082705, '5c7321169614878151766eb41e84fb07')  (24.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:11:46', 969082426, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (65.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082426"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082426 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082426 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082426 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:12:23', NULL, 969082426, 'BorrowDirect', 'in_progress', '2015-02-19 23:12:23')  (14.4ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:12:23' WHERE `dispatched_services`.`id` = 2459  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:24', 969082426, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.2ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082705 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082705) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082426&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A12%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 1141ms (ActiveRecord: 69.0ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9080caf8dab2b4de6f81e67eb12da121' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:12:30', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:30', 'format', 'journal', 969082706, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:30', 'isbn', 1, '121212', 969082706, '121212')  (33.7ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:12:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082706, '9080caf8dab2b4de6f81e67eb12da121')  (78.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:30', 969082427, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '787ab11eddb96d637a2f5a2ea730fc70' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:12:49', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:49', 'format', 'journal', 969082707, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:49', 'isbn', 1, '121212', 969082707, '121212')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:12:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082707, '787ab11eddb96d637a2f5a2ea730fc70')  (39.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:49', 969082428, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082428"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082428 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082428 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082428 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:12:49', NULL, 969082428, 'BorrowDirect', 'in_progress', '2015-02-19 23:12:49')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:12:49' WHERE `dispatched_services`.`id` = 2460  (19.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:49', 969082428, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082707 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082707) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082428&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A12%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 1016ms (ActiveRecord: 75.7ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (3.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92cccb3b8ae9d2f95b8562b8a404ae0a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:12:56', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:56', 'format', 'journal', 969082708, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:56', 'isbn', 1, '121212', 969082708, '121212')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:12:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082708, '92cccb3b8ae9d2f95b8562b8a404ae0a')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:56', 969082429, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082429"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082429 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082429 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082429 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:12:56', NULL, 969082429, 'BorrowDirect', 'in_progress', '2015-02-19 23:12:56')  (29.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:12:56' WHERE `dispatched_services`.`id` = 2461  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:56', 969082429, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (28.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082708 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082708) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bddd425d0a2d0ce2fe6cc5d63b5b36d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:14:42', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:14:42', 'format', 'journal', 969082709, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:14:42', 'isbn', 1, '121212', 969082709, '121212')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (6.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:14:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082709, '9bddd425d0a2d0ce2fe6cc5d63b5b36d')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:14:42', 969082430, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082430"} Request Load (2.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082430 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082430 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082430 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:14:42', NULL, 969082430, 'BorrowDirect', 'in_progress', '2015-02-19 23:14:42')  (25.7ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:14:42' WHERE `dispatched_services`.`id` = 2462  (29.7ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:14:42', 969082430, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.6ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082709 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082709) Redirected to http://example.org Completed 302 Found in 161ms (ActiveRecord: 96.6ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082430 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e64a1fd7f44874d4c9b3c3ce6d443f0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:15:57', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:15:57', 'format', 'journal', 969082710, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:15:57', 'isbn', 1, '121212', 969082710, '121212')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:15:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082710, '4e64a1fd7f44874d4c9b3c3ce6d443f0')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:15:57', 969082431, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082431"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082431 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082431 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082431 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:15:57', NULL, 969082431, 'BorrowDirect', 'in_progress', '2015-02-19 23:15:57')  (18.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:15:57' WHERE `dispatched_services`.`id` = 2463  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:15:57', 969082431, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (30.9ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082710 LIMIT 1 ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082710) Redirected to http://example.org Completed 302 Found in 150ms (ActiveRecord: 84.8ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '33deb9b303c9aab8e131adc9c743feba' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'  (1.2ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:15:57', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:15:57', 'format', 'journal', 969082711, 'journal') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082431 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (2.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:15:57', 'isbn', 1, '121212', 969082711, '121212')  (0.7ms) BEGIN SQL (2.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:15:57' WHERE `dispatched_services`.`id` = 2463  (28.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013464  (43.8ms) COMMIT  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:15:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082711, '33deb9b303c9aab8e131adc9c743feba')  (18.6ms) COMMIT  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:15:57', 969082432, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082432"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082432 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082432 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082432 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:15:57', NULL, 969082432, 'BorrowDirect', 'in_progress', '2015-02-19 23:15:57')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:15:57' WHERE `dispatched_services`.`id` = 2464  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:15:57', 969082432, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082711 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082711) Redirected to http://example.org Completed 302 Found in 73ms (ActiveRecord: 59.6ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1816154b75bd88049188f8f8bf73391e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:16:52', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:16:52', 'format', 'journal', 969082712, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:16:52', 'isbn', 1, '121212', 969082712, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082712, '1816154b75bd88049188f8f8bf73391e')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:16:52', 969082433, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (19.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082433"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082433 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082433 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082433 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.2ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:16:52', NULL, 969082433, 'BorrowDirect', 'in_progress', '2015-02-19 23:16:52')  (36.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:16:52' WHERE `dispatched_services`.`id` = 2465  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:16:52', 969082433, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082712 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082712) Redirected to http://example.org Completed 302 Found in 152ms (ActiveRecord: 88.3ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2acb7cd22946267e858dba221376188c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:16:52', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:16:52', 'format', 'journal', 969082713, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:16:52', 'isbn', 1, '121212', 969082713, '121212')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (10.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082713, '2acb7cd22946267e858dba221376188c')  (17.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:16:52', 969082434, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082434"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082434 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082434 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082434 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:16:52', NULL, 969082434, 'BorrowDirect', 'in_progress', '2015-02-19 23:16:52')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:16:53' WHERE `dispatched_services`.`id` = 2466  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:16:53', 969082434, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (21.3ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082713 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082713) Redirected to http://example.org Completed 302 Found in 76ms (ActiveRecord: 65.7ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '936b67204d16107fa6888cde52dd2660' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:17:04', '121212') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:04', 'format', 'journal', 969082714, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:04', 'isbn', 1, '121212', 969082714, '121212')  (31.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:17:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082714, '936b67204d16107fa6888cde52dd2660')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:04', 969082435, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082435"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082435 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082435 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082435 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:17:05', NULL, 969082435, 'BorrowDirect', 'in_progress', '2015-02-19 23:17:05')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:17:05' WHERE `dispatched_services`.`id` = 2467  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:05', 969082435, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (35.7ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082714 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082714) Redirected to http://example.org Completed 302 Found in 151ms (ActiveRecord: 85.8ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082435 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (2.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:17:05' WHERE `dispatched_services`.`id` = 2467 Request Load (3.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '899aed58e587944725497a2e36d2cb62' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:17:05', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:05', 'format', 'journal', 969082715, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:05', 'isbn', 1, '121212', 969082715, '121212')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013472  (30.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:17:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082715, '899aed58e587944725497a2e36d2cb62')  (28.8ms) COMMIT  (62.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:05', 969082436, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082436"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082436 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082436 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082436 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:17:05', NULL, 969082436, 'BorrowDirect', 'in_progress', '2015-02-19 23:17:05')  (19.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:17:05' WHERE `dispatched_services`.`id` = 2468  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:05', 969082436, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082715 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082715) Redirected to http://example.org Completed 302 Found in 110ms (ActiveRecord: 98.4ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (2.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb2bd14d17639ab0c07d0af02a6d658c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:17:26', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:26', 'format', 'journal', 969082716, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:26', 'isbn', 1, '121212', 969082716, '121212')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:17:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082716, 'fb2bd14d17639ab0c07d0af02a6d658c')  (97.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:26', 969082437, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (16.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082437"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082437 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082437 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082437 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:17:26', NULL, 969082437, 'BorrowDirect', 'in_progress', '2015-02-19 23:17:26')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:17:26' WHERE `dispatched_services`.`id` = 2469  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (3.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:26', 969082437, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082716 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082716) Redirected to http://example.org Completed 302 Found in 4737ms (ActiveRecord: 65.8ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d334d1affb8d4a75b16c1d87066b733' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:17:31', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:31', 'format', 'journal', 969082717, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:31', 'isbn', 1, '121212', 969082717, '121212')  (24.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:17:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082717, '7d334d1affb8d4a75b16c1d87066b733')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:31', 969082438, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (16.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082438"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082438 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082438 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082438 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:17:31', NULL, 969082438, 'BorrowDirect', 'in_progress', '2015-02-19 23:17:31')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:17:31' WHERE `dispatched_services`.`id` = 2470  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:31', 969082438, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082717 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082717) Redirected to http://example.org Completed 302 Found in 1882ms (ActiveRecord: 62.3ms) ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54cd5a2b7ff5e2e28f63e8fbe03bff5d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:18:29', '121212') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:29', 'format', 'journal', 969082718, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:29', 'isbn', 1, '121212', 969082718, '121212')  (27.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:18:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082718, '54cd5a2b7ff5e2e28f63e8fbe03bff5d')  (25.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:30', 969082439, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082439"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082439 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082439 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082439 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:18:30', NULL, 969082439, 'BorrowDirect', 'in_progress', '2015-02-19 23:18:30')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:18:30' WHERE `dispatched_services`.`id` = 2471  (14.1ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:30', 969082439, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082718 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082718) Redirected to http://example.org Completed 302 Found in 133ms (ActiveRecord: 64.5ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5411815c306ce6de17d8cd824f9447e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:18:30', '121212') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:30', 'format', 'journal', 969082719, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:30', 'isbn', 1, '121212', 969082719, '121212')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:18:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082719, 'a5411815c306ce6de17d8cd824f9447e')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:30', 969082440, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082440"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082440 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082440 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082440 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:18:30', NULL, 969082440, 'BorrowDirect', 'in_progress', '2015-02-19 23:18:30')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:18:30' WHERE `dispatched_services`.`id` = 2472  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:30', 969082440, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082719 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082719) Redirected to http://example.org Completed 302 Found in 68ms (ActiveRecord: 58.9ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082440 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '271fcc38fa09e9cd734ed2243ded3c45' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:18:42', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:42', 'format', 'journal', 969082720, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:42', 'isbn', 1, '121212', 969082720, '121212')  (22.6ms) COMMIT  (1.1ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:18:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082720, '271fcc38fa09e9cd734ed2243ded3c45')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:42', 969082441, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082441"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082441 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082441 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082441 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:18:42', NULL, 969082441, 'BorrowDirect', 'in_progress', '2015-02-19 23:18:42')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:18:42' WHERE `dispatched_services`.`id` = 2473  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:42', 969082441, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082720 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082720) Redirected to http://example.org Completed 302 Found in 133ms (ActiveRecord: 64.7ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7bf83fe7100d79b7048dc7356a5c572' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:18:42', '121212') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:42', 'format', 'journal', 969082721, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:42', 'isbn', 1, '121212', 969082721, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:18:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082721, 'd7bf83fe7100d79b7048dc7356a5c572')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:42', 969082442, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082442"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082442 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082442 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082442 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:18:42', NULL, 969082442, 'BorrowDirect', 'in_progress', '2015-02-19 23:18:42')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:18:42' WHERE `dispatched_services`.`id` = 2474  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:42', 969082442, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082721 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082721) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082442&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A18%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 73ms (ActiveRecord: 58.8ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5d337b2d280e18128f59b209d813a2c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:19:12', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:19:12', 'format', 'journal', 969082722, 'journal') SQL (7.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:19:12', 'isbn', 1, '121212', 969082722, '121212')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:19:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082722, 'c5d337b2d280e18128f59b209d813a2c')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:19:13', 969082443, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082443"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082443 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082443 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082443 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:19:13', NULL, 969082443, 'BorrowDirect', 'in_progress', '2015-02-19 23:19:13')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:19:13' WHERE `dispatched_services`.`id` = 2475  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:19:13', 969082443, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082722 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082722) Redirected to http://example.org Completed 302 Found in 128ms (ActiveRecord: 63.1ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082443 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (2.0ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:19:13' WHERE `dispatched_services`.`id` = 2475 Request Load (2.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f5357ef1e091687e304ea14c1beba214' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:19:13', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:19:13', 'format', 'journal', 969082723, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:19:13', 'isbn', 1, '121212', 969082723, '121212')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013488  (29.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082723, 'f5357ef1e091687e304ea14c1beba214')  (28.3ms) COMMIT  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:19:13', 969082444, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082444"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082444 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082444 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082444 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:19:13', NULL, 969082444, 'BorrowDirect', 'in_progress', '2015-02-19 23:19:13')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:19:13' WHERE `dispatched_services`.`id` = 2476  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:19:13', 969082444, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082723 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082723) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082444&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A19%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 88ms (ActiveRecord: 72.1ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de373229969b2a1bd5995269812b1660' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:20:01', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:20:01', 'format', 'journal', 969082724, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:20:01', 'isbn', 1, '121212', 969082724, '121212')  (21.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:20:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082724, 'de373229969b2a1bd5995269812b1660')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:20:01', 969082445, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082445"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082445 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082445 ORDER BY id ASC DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082445 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:20:01', NULL, 969082445, 'BorrowDirect', 'in_progress', '2015-02-19 23:20:01')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:20:01' WHERE `dispatched_services`.`id` = 2477  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:20:01', 969082445, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082724 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082724) Redirected to http://example.org Completed 302 Found in 138ms (ActiveRecord: 64.0ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b4bb98e5a536726cdacf7436ccf027f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:20:01', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:20:01', 'format', 'journal', 969082725, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:20:01', 'isbn', 1, '121212', 969082725, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:20:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082725, '5b4bb98e5a536726cdacf7436ccf027f')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:20:01', 969082446, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082446"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082446 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082446 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082446 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:20:01', NULL, 969082446, 'BorrowDirect', 'in_progress', '2015-02-19 23:20:01')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:20:01' WHERE `dispatched_services`.`id` = 2478  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:20:01', 969082446, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082725 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082725) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082446&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A20%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 77ms (ActiveRecord: 61.8ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65bb4bec010317cd381a7725a5ead327' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:16', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:16', 'format', 'journal', 969082726, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:16', 'isbn', 1, '121212', 969082726, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082726, '65bb4bec010317cd381a7725a5ead327')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:16', 969082447, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082447"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082447 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082447 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082447 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:16', NULL, 969082447, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:16')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:16' WHERE `dispatched_services`.`id` = 2479  (13.9ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:16', 969082447, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082726 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082726) Redirected to http://example.org Completed 302 Found in 129ms (ActiveRecord: 64.7ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '569c52cf662098ea1620354b246e49fb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:16', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:16', 'format', 'journal', 969082727, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:16', 'isbn', 1, '121212', 969082727, '121212')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082727, '569c52cf662098ea1620354b246e49fb')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:16', 969082448, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082448"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082448 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082448 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082448 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:16', NULL, 969082448, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:16')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:16' WHERE `dispatched_services`.`id` = 2480  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:16', 969082448, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082727 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082727) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082448&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A16-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 70ms (ActiveRecord: 59.5ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (0.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082448 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e8f0b6e1b86a6429f1622cb58b2f69e' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:21:25', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'format', 'journal', 969082728, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'auinit', 1, 'rd', 969082728, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'aulast', 1, 'kaplan', 969082728, 'Kaplan') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'atitle', 1, 'the coming anarchy', 969082728, 'The coming anarchy') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'title', 1, 'the atlantic monthly', 969082728, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'volume', 1, '273', 969082728, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'issue', 1, '2', 969082728, '2') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'date', 1, '1994', 969082728, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'spage', 1, '44', 969082728, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'issn', 1, '1072-7825', 969082728, '1072-7825')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082728, 'info:sid/google', '2e8f0b6e1b86a6429f1622cb58b2f69e')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082449 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082449, 'test_bd', 'successful', '2015-02-19 23:21:26')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2481  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082449 ServiceResponse Exists (2.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082449 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '699fb29d02eb9fa29e80c66b8e307f22' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:26', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082729, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082729, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'aulast', 1, 'grimes', 969082729, 'Grimes')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082729, '699fb29d02eb9fa29e80c66b8e307f22')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082450, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.0ms) COMMIT ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082450 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e32ee84367ce9ea10518f73a27653442' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:21:26', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'book', 969082730, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'auinit', 1, 'eh', 969082730, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'aulast', 1, 'lenneberg', 969082730, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'title', 1, 'biological foundations of language', 969082730, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'genre', 1, 'book', 969082730, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'date', 1, '1967', 969082730, '1967')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082730, 'info:sid/google', 'e32ee84367ce9ea10518f73a27653442')  (14.5ms) COMMIT ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082451 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082451, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082451 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082451, 'test_bd', 'successful', '2015-02-19 23:21:26')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2482  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082451 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80c9a187b31db96f5011da49ad0527be' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:26', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082731, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'isbn', 1, '9789810743734', 969082731, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082731, '80c9a187b31db96f5011da49ad0527be')  (14.5ms) COMMIT ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082452 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082452, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:26', 'Choose your delivery location', 969082452, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082452 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082452, 'test_bd', 'successful', '2015-02-19 23:21:26')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2483  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082452 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15e85d06b6f86fba97f3898d9149cff1' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:26', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082732, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'isbn', 1, '0109836413', 969082732, '0109836413')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082732, '15e85d06b6f86fba97f3898d9149cff1')  (14.3ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082453 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082453, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:26', 'This item is not currently available from BorrowDirect', 969082453, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082453 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082453, 'test_bd', 'successful', '2015-02-19 23:21:26')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2484  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082453 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47b3a1bcd7416e7afe2ce54fec773717' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:26', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082733, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'isbn', 1, '000000000', 969082733, '000000000')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082733, '47b3a1bcd7416e7afe2ce54fec773717')  (14.0ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082454 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082454, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:26', 'This item is not currently available from BorrowDirect', 969082454, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082454 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082454, 'test_bd', 'successful', '2015-02-19 23:21:26')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2485  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082454 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0b1fc2831315bd7d18be1ee05555720' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:26', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082734, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'isbn', 1, '9789810743734', 969082734, '9789810743734')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082734, 'e0b1fc2831315bd7d18be1ee05555720')  (14.1ms) COMMIT ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082455 ORDER BY id ASC  (0.8ms) BEGIN SQL (2.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082455, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082455 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082455, 'test_bd', 'failed_temporary', '2015-02-19 23:21:27')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2486  (15.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082455 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e93b0c8126dd78245115fb0b3675d4c7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:27', 'title') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082735, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'title', 1, 'title', 969082735, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'author', 1, 'au', 969082735, 'au')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082735, 'e93b0c8126dd78245115fb0b3675d4c7')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:27', 969082456, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082456 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082456, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082456 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082456, 'test_bd', 'successful', '2015-02-19 23:21:27')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2487  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082456 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a69176c45b83f8058c58ae1c1b588ee' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:27', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082736, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'title', 1, 'title', 969082736, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'author', 1, 'au', 969082736, 'au')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082736, '1a69176c45b83f8058c58ae1c1b588ee')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:27', 969082457, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082457 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082457, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082457 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082457, 'test_bd', 'successful', '2015-02-19 23:21:27')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2488  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082457 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed49e5d7b6a8a1afe3c83e4632536843' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:27', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082737, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'title', 1, 'title', 969082737, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'author', 1, 'au', 969082737, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082737, 'ed49e5d7b6a8a1afe3c83e4632536843')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:27', 969082458, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082458 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082458 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082458, 'test_bd', 'successful', '2015-02-19 23:21:27')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2489  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082458 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd827a399322d441c0e0aa9e412fb395' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:27', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082738, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'title', 1, 'title', 969082738, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'author', 1, 'au', 969082738, 'au')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082738, 'cd827a399322d441c0e0aa9e412fb395')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:27', 969082459, '--- {}\n', 'test_holding', 'holding')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082459, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082459 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082459, 'test_bd', 'successful', '2015-02-19 23:21:27')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2490  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082459 ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082459 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7997b71681bd0618407700b3418dc3b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:27', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082739, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'isbn', 1, '9789810743734', 969082739, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082739, 'd7997b71681bd0618407700b3418dc3b')  (14.4ms) COMMIT ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082460 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082460, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082460 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082460, 'test_bd', 'successful', '2015-02-19 23:21:27')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2491  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082460  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '58387476806f2996f5bf4342c307022b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:27', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082740, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'isbn', 1, '9789810743734', 969082740, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082740, '58387476806f2996f5bf4342c307022b')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082461  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082461, 'test_bd', 'queued', '2015-02-19 23:21:27')  (15.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2492  (14.2ms) COMMIT Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082461 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082740) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082740) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082461) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082461) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082461 AND `dispatched_services`.`id` = 2492 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082461, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2492  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082461 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082740 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082740) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082461 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (34.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (36.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (96.8ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082740 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082461  (14.6ms) COMMIT Completed 200 OK in 458ms (Views: 139.9ms | ActiveRecord: 118.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:21:28 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72e1bb9749ed3110c667890cec6fdbc8' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:28', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'format', 'book', 969082741, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'genre', 1, 'book', 969082741, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'author', 1, 'smith', 969082741, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'title', 1, 'some book', 969082741, 'Some Book')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:21:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082741, '72e1bb9749ed3110c667890cec6fdbc8')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082462  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:28', NULL, 969082462, 'BorrowDirect', 'queued', '2015-02-19 23:21:28')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2493  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082462 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082741) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082741) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082462) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082462) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082462 AND `dispatched_services`.`id` = 2493 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082462, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (15.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2493  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082462 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082741 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082741) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082462 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082741 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082462  (15.2ms) COMMIT Completed 200 OK in 240ms (Views: 18.7ms | ActiveRecord: 127.9ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:21:28 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3f1485b4fdf3b6d119602ba68f0693b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:28', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'format', 'journal', 969082742, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'genre', 1, 'article', 969082742, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'title', 1, 'foo', 969082742, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'author', 1, 'bar', 969082742, 'bar')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:21:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082742, 'b3f1485b4fdf3b6d119602ba68f0693b')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082463  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:28', NULL, 969082463, 'BorrowDirect', 'queued', '2015-02-19 23:21:28')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2494  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082463 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082742) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082742) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082463) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082463) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082463 AND `dispatched_services`.`id` = 2494 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2494  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082463 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082742 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082742) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082463 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082742 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082463  (14.5ms) COMMIT Completed 200 OK in 207ms (Views: 18.1ms | ActiveRecord: 116.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6695ce4d1d2523397b27e3bf294cac0b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:28', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'format', 'book', 969082743, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'genre', 1, 'book', 969082743, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'title', 1, 'foo', 969082743, 'foo')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:21:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082743, '6695ce4d1d2523397b27e3bf294cac0b')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082464 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:28', NULL, 969082464, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:21:28')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2495  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969082464" for 127.0.0.1 at 2015-02-19 18:21:28 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082464"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082464 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082743 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082743)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082464  (14.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082464 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082464 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082464 [["request_id", 969082464]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082743 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082743) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082464 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082464 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082743 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082464  (14.3ms) COMMIT Completed 200 OK in 73ms (Views: 19.1ms | ActiveRecord: 47.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61aa896d761644c73859e5d27d1587cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:28', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'format', 'journal', 969082744, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'isbn', 1, '9789810743734', 969082744, '9789810743734')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082744, '61aa896d761644c73859e5d27d1587cd')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082465  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:29', NULL, 969082465, 'BorrowDirect', 'queued', '2015-02-19 23:21:29')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2496  (14.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082744) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082465) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082465) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`id` = 2496 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082465, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (26.4ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:29', 'Choose your delivery location', 969082465, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2496  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082744 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082465 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082744 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082465  (14.4ms) COMMIT Completed 200 OK in 269ms (Views: 24.6ms | ActiveRecord: 116.7ms) Started GET "/borrow_direct/BorrowDirect/969082465?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:21:29 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082465"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082465 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2496  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:29', 969082465, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082744 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744) Redirected to http://www.example.com/resolve?umlaut.request_id=969082465&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 37.7ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2496  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013520  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082465&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:21:29 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082465", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:21:29-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082744 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082465  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 [["request_id", 969082465]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082744 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082465 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082744 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082465  (14.5ms) COMMIT Completed 200 OK in 77ms (Views: 20.6ms | ActiveRecord: 47.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:21:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '271dbcdb61fe59b1390d8b2f4b4da995' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:29', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:29', 'format', 'journal', 969082745, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:29', 'isbn', 1, '0109836413', 969082745, '0109836413')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:21:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082745, '271dbcdb61fe59b1390d8b2f4b4da995')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082466  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:29', NULL, 969082466, 'BorrowDirect', 'queued', '2015-02-19 23:21:29')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2497  (14.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082466 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082745) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082745) ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082466) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082466) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082466 AND `dispatched_services`.`id` = 2497 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082466, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:29', 'This item is not currently available from BorrowDirect', 969082466, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2497  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082466 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082745 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082745) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082466 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082745 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082466  (15.0ms) COMMIT Completed 200 OK in 294ms (Views: 62.5ms | ActiveRecord: 115.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0b70fadbb98101dc13ef559fd9e5075' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:29', '9789810743734') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:29', 'format', 'journal', 969082746, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:29', 'isbn', 1, '9789810743734', 969082746, '9789810743734')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082746, 'a0b70fadbb98101dc13ef559fd9e5075')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082467  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:29', NULL, 969082467, 'BorrowDirect', 'queued', '2015-02-19 23:21:29')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2498  (14.1ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082746) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082467) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082467) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`id` = 2498 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082467, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:29', 'Choose your delivery location', 969082467, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2498  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082746 LIMIT 1 ReferentValue Load (0.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082467 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082746 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082467  (61.9ms) COMMIT Completed 200 OK in 304ms (Views: 21.5ms | ActiveRecord: 164.3ms) Started GET "/borrow_direct/BorrowDirect/969082467?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:21:30 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082467"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082467 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (21.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2498  (34.8ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:30', 969082467, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082746 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746) Redirected to http://www.example.com/resolve?umlaut.request_id=969082467&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 88ms (ActiveRecord: 79.5ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2498  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013525  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082467&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:21:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082467", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:21:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082746 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746)  (1.0ms) BEGIN SQL (1.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082467  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 [["request_id", 969082467]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082746 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082467 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082746 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082467  (15.1ms) COMMIT Completed 200 OK in 75ms (Views: 18.4ms | ActiveRecord: 47.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df719249581d48ed883e91aab02b1d39' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:30', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:30', 'format', 'journal', 969082747, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:30', 'isbn', 1, '9789810743734', 969082747, '9789810743734')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082747, 'df719249581d48ed883e91aab02b1d39')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082468  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:30', NULL, 969082468, 'BorrowDirect', 'queued', '2015-02-19 23:21:30')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2499  (13.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082468 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082747) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082747) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082468) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082468) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082468 AND `dispatched_services`.`id` = 2499 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082468, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:30', 'Choose your delivery location', 969082468, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2499  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082468 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082747 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082747) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082468 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082468 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (42.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082747 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082468  (14.7ms) COMMIT Completed 200 OK in 295ms (Views: 65.1ms | ActiveRecord: 115.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a06240276eb65356935469c56f5ba605' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:30', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:30', 'format', 'journal', 969082748, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:30', 'isbn', 1, '9789810743734', 969082748, '9789810743734')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082748, 'a06240276eb65356935469c56f5ba605')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082469  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:30', NULL, 969082469, 'BorrowDirect', 'queued', '2015-02-19 23:21:30')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2500  (14.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082748) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082469) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082469) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`id` = 2500 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082469, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:30', 'Choose your delivery location', 969082469, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2500  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082748 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082469 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082748 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082469  (14.2ms) COMMIT Completed 200 OK in 254ms (Views: 22.8ms | ActiveRecord: 117.9ms) Started GET "/borrow_direct/BorrowDirect/969082469" for 127.0.0.1 at 2015-02-19 18:21:30 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082469"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082469 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:30', 969082469, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082748 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748) Redirected to http://www.example.com/resolve?umlaut.request_id=969082469&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 19.7ms) Started GET "/resolve?umlaut.request_id=969082469&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:21:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082469", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:21:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082748 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082469  (15.2ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 [["request_id", 969082469]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082748 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082469 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082748 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082469  (14.3ms) COMMIT Completed 200 OK in 79ms (Views: 22.6ms | ActiveRecord: 46.9ms) ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4db2ef3c778a24135f0c269772b8f958' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082749, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082749, '121212')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082749, '4db2ef3c778a24135f0c269772b8f958')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082470"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082470 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082470 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082470  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082470, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082470\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082749 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082749) Redirected to http://test.host/resolve?umlaut.request_id=969082470&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 25.3ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b70fd48d15b4a5a7e437060cd1c1c875' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082750, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082750, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082750, 'b70fd48d15b4a5a7e437060cd1c1c875')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082471, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082471"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082471 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082471 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013532  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082471, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013532\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082750 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082750) Redirected to http://test.host/resolve?umlaut.request_id=969082471&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 26.2ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c4f209b7cfc8677bf558e054175e8030' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082751, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082751, '121212')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082751, 'c4f209b7cfc8677bf558e054175e8030')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082472, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082472"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082472 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082472 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082472 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:31', NULL, 969082472, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:31')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2501  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082472, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082751 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082751) Redirected to http://test.host/resolve?umlaut.request_id=969082472&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 69ms (ActiveRecord: 59.1ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082472 ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082472 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082472 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2501  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013535  (14.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85fc813676068527bd7fde67eebff04c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082752, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082752, '121212')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082752, '85fc813676068527bd7fde67eebff04c')  (18.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082473, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082473"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082473 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082473 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082473 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:31', NULL, 969082473, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:31')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2502  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (2.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082473, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082752 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082752) Redirected to http://example.org Completed 302 Found in 73ms (ActiveRecord: 62.9ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fdf6f36e6722f880e6c749ddc96ac114' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082753, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082753, '121212')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082753, 'fdf6f36e6722f880e6c749ddc96ac114')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082474, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082474"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082474 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082474 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082474 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:31', NULL, 969082474, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:31')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2503  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082474, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082753 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082753) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082474&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 73ms (ActiveRecord: 59.5ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '19c46f43854e9148bf6f8c018c694883' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082474 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN  (2.3ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212') SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2503 SQL (2.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082754, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082754, '121212')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013539  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082754, '19c46f43854e9148bf6f8c018c694883')  (15.1ms) COMMIT  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082475"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082475 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082475 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082475, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082754 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082754) Redirected to http://test.host/resolve?umlaut.request_id=969082475&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 25.4ms) ActiveRecord::SchemaMigration Load (15.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbae734610e01a46734a4913af0922b8' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 16:01:48', 'biological foundations of language', '1967') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'format', 'book', 969082755, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'auinit', 1, 'eh', 969082755, 'EH') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'aulast', 1, 'lenneberg', 969082755, 'Lenneberg') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'title', 1, 'biological foundations of language', 969082755, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'genre', 1, 'book', 969082755, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'date', 1, '1967', 969082755, '1967')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082755, 'info:sid/google', 'cbae734610e01a46734a4913af0922b8')  (14.1ms) COMMIT ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082476 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082476, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (15.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082476 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082476, 'test_bd', 'successful', '2015-02-23 16:01:50')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2504  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082476 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0444fdbbb2029290792d3d16df238f87' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (2.7ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 16:01:50', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082756, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'auinit', 1, 'rd', 969082756, 'RD') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'aulast', 1, 'kaplan', 969082756, 'Kaplan') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'atitle', 1, 'the coming anarchy', 969082756, 'The coming anarchy') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'the atlantic monthly', 969082756, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'volume', 1, '273', 969082756, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'issue', 1, '2', 969082756, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'date', 1, '1994', 969082756, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'spage', 1, '44', 969082756, '44') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'issn', 1, '1072-7825', 969082756, '1072-7825')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082756, 'info:sid/google', '0444fdbbb2029290792d3d16df238f87')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082477 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082477, 'test_bd', 'successful', '2015-02-23 16:01:50')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2505  (14.7ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082477 ServiceResponse Exists (2.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082477 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9faacc13985e48423523c01b7963683e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082757, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082757, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'aulast', 1, 'grimes', 969082757, 'Grimes')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082757, '9faacc13985e48423523c01b7963683e')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082478, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.3ms) COMMIT ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082478 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f97ae60155ce7c5ccc951159bfb9f814' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082758, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'title', 969082758, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'author', 1, 'au', 969082758, 'au')  (14.5ms) COMMIT  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082758, 'f97ae60155ce7c5ccc951159bfb9f814')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (2.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:50', 969082479, '--- {}\n', 'test_holding', 'holding')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082479, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082479 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082479, 'test_bd', 'successful', '2015-02-23 16:01:50')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2506  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082479 ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082479 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb662f28ef68c2c63af55b3c403ab2b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082759, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'title', 969082759, 'title') SQL (2.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'author', 1, 'au', 969082759, 'au')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082759, 'bb662f28ef68c2c63af55b3c403ab2b3')  (18.1ms) COMMIT  (1.3ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:50', 969082480, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082480 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082480 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082480, 'test_bd', 'successful', '2015-02-23 16:01:50')  (14.8ms) COMMIT  (1.1ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2507  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082480 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e1ad07a8e8a18e7ff28fec3b368842c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082760, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'title', 969082760, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'author', 1, 'au', 969082760, 'au')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082760, '2e1ad07a8e8a18e7ff28fec3b368842c')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:50', 969082481, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (13.9ms) COMMIT ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082481 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082481, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082481 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082481, 'test_bd', 'successful', '2015-02-23 16:01:50')  (15.1ms) COMMIT  (1.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2508  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082481 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2104c796ece33f0e8a3eb02aa9d52a30' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082761, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'title', 969082761, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'author', 1, 'au', 969082761, 'au')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082761, '2104c796ece33f0e8a3eb02aa9d52a30')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:50', 969082482, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082482 ORDER BY id ASC  (0.6ms) BEGIN SQL (5.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082482, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082482 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082482, 'test_bd', 'successful', '2015-02-23 16:01:50')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2509  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082482 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 80ms (Views: 79.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.4ms | ActiveRecord: 1.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd532ca477d12c5f3c2282ccdebcde99' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082762, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082762, '121212')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (6.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082762, 'dd532ca477d12c5f3c2282ccdebcde99')  (15.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082483"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082483 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082483 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082483  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082483, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082483\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082762 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082762) Redirected to http://test.host/resolve?umlaut.request_id=969082483&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 47ms (ActiveRecord: 25.9ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd911b62e5c8bd79ac46dd3da41b42afc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082763, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082763, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082763, 'd911b62e5c8bd79ac46dd3da41b42afc')  (13.8ms) COMMIT  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082484, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082484"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082484 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082484 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013551  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082484, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013551\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082763 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082763) Redirected to http://test.host/resolve?umlaut.request_id=969082484&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 26.6ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9244e5778530e04e747f5dbbf55efd2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082764, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082764, '121212')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082764, 'e9244e5778530e04e747f5dbbf55efd2')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082485, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082485"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082485 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082485 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082485 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:51', NULL, 969082485, 'BorrowDirect', 'in_progress', '2015-02-23 16:01:51')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2510  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082485, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082764 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082764) Redirected to http://test.host/resolve?umlaut.request_id=969082485&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 71ms (ActiveRecord: 58.0ms) DispatchedService Load (4.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082485 ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082485 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082485 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2510  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013554  (14.5ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25e995fce21206201177d370cc9e00d0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (5.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212') SQL (7.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082765, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082765, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082765, '25e995fce21206201177d370cc9e00d0')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082486, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (66.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082486"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082486 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082486 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082486 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:51', NULL, 969082486, 'BorrowDirect', 'in_progress', '2015-02-23 16:01:51')  (19.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2511  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082486, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082765 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082765) Redirected to http://example.org Completed 302 Found in 122ms (ActiveRecord: 67.7ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62d868c2816cf75e82f6fd71270665fe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082766, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082766, '121212')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082766, '62d868c2816cf75e82f6fd71270665fe')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082487, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (39.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082487"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082487 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082487 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082487 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:51', NULL, 969082487, 'BorrowDirect', 'in_progress', '2015-02-23 16:01:51')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2512  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082487, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082766 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082766) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082487&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 70ms (ActiveRecord: 58.2ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7cd6cbd8fc96d6fb63d6e20e94754b00' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212') SQL (5.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082767, 'journal') BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082767, '121212') DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082487 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (2.0ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2512  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082767, '7cd6cbd8fc96d6fb63d6e20e94754b00')  (15.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013558  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082488"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082488 ORDER BY `requests`.`id` ASC LIMIT 1  (16.1ms) COMMIT ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082488 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082488, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082767 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082767) Redirected to http://test.host/resolve?umlaut.request_id=969082488&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 26.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0c3e1a784a3186dde9aec91aa7f9d9c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:52', '9789810743734') SQL (2.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'format', 'journal', 969082768, 'journal') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'isbn', 1, '9789810743734', 969082768, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082768, 'a0c3e1a784a3186dde9aec91aa7f9d9c')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082489  (14.1ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489  (0.6ms) BEGIN SQL (6.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:52', NULL, 969082489, 'test_bd', 'queued', '2015-02-23 16:01:52')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:52' WHERE `dispatched_services`.`id` = 2513  (14.5ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082489 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082768) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082768) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082489) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082489) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082489 AND `dispatched_services`.`id` = 2513 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082489, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 16:01:52' WHERE `dispatched_services`.`id` = 2513  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082489 LIMIT 1 DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082768 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082768) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082489 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (24.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (37.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.8ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082768 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (20.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.0ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082489  (14.4ms) COMMIT Completed 200 OK in 723ms (Views: 348.7ms | ActiveRecord: 133.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 11:01:52 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '396e2e5bddcebb625e71b310add1e7e1' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:52', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'format', 'book', 969082769, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'genre', 1, 'book', 969082769, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'author', 1, 'smith', 969082769, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'title', 1, 'some book', 969082769, 'Some Book')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 16:01:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082769, '396e2e5bddcebb625e71b310add1e7e1')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082490  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490  (0.8ms) BEGIN SQL (35.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:52', NULL, 969082490, 'BorrowDirect', 'queued', '2015-02-23 16:01:52')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:52' WHERE `dispatched_services`.`id` = 2514  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082490 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082769) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082769) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082490) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082490) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082490 AND `dispatched_services`.`id` = 2514 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082490, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.3ms) COMMIT DispatchedService Load (3.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2514  (14.3ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082490 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.2ms) DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082769 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082769) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082490 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082769 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082490  (15.3ms) COMMIT Completed 200 OK in 281ms (Views: 25.9ms | ActiveRecord: 154.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 11:01:53 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '144b2bc3face2714cf90274faa0722b6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:53', 'foo') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'format', 'journal', 969082770, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'genre', 1, 'article', 969082770, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'title', 1, 'foo', 969082770, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'author', 1, 'bar', 969082770, 'bar')  (17.5ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 16:01:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082770, '144b2bc3face2714cf90274faa0722b6')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082491  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:53', NULL, 969082491, 'BorrowDirect', 'queued', '2015-02-23 16:01:53')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2515  (14.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082491 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082770) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082770) ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082491) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082491) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082491 AND `dispatched_services`.`id` = 2515 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2515  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082491 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491 Referent Load (2.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082770 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082770) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082491 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082770 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082491  (14.1ms) COMMIT Completed 200 OK in 221ms (Views: 18.8ms | ActiveRecord: 122.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '560475eae1548e36670361275e9068ed' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:53', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'format', 'book', 969082771, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'genre', 1, 'book', 969082771, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'title', 1, 'foo', 969082771, 'foo')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 16:01:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082771, '560475eae1548e36670361275e9068ed')  (15.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082492 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:53', NULL, 969082492, 'BorrowDirect', 'failed_fatal', '2015-02-23 16:01:53')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2516  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082492" for 127.0.0.1 at 2015-02-23 11:01:53 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082492"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082492 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082771 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082771)  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082492  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082492 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082492 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082492 [["request_id", 969082492]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082771 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082771) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082492 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082492 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082771 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082492  (14.3ms) COMMIT Completed 200 OK in 76ms (Views: 20.4ms | ActiveRecord: 47.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:53 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8f192bf4f75be6f857d9aa231840e99' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:53', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'format', 'journal', 969082772, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'isbn', 1, '9789810743734', 969082772, '9789810743734')  (15.9ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082772, 'e8f192bf4f75be6f857d9aa231840e99')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082493  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:53', NULL, 969082493, 'BorrowDirect', 'queued', '2015-02-23 16:01:53')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2517  (13.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082772) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082493) ORDER BY id ASC DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082493) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`id` = 2517 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082493, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:53', 'Choose your delivery location', 969082493, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2517  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082772 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.3ms) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082493 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082772 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082493  (18.5ms) COMMIT Completed 200 OK in 276ms (Views: 31.9ms | ActiveRecord: 121.3ms) Started GET "/borrow_direct/BorrowDirect/969082493?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:01:53 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082493"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082493 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2517  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:53', 969082493, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082772 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772) Redirected to http://www.example.com/resolve?umlaut.request_id=969082493&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 52ms (ActiveRecord: 37.4ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2517  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013564  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082493&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:01:53 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082493", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:01:53-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082772 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082493  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 [["request_id", 969082493]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082772 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082493 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082772 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082493  (14.5ms) COMMIT Completed 200 OK in 77ms (Views: 21.1ms | ActiveRecord: 46.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 11:01:54 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb2a8ce68fcb0667442c763039832c3a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:54', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'format', 'journal', 969082773, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'isbn', 1, '0109836413', 969082773, '0109836413')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:01:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082773, 'eb2a8ce68fcb0667442c763039832c3a')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082494  (14.1ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:54', NULL, 969082494, 'BorrowDirect', 'queued', '2015-02-23 16:01:54')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2518  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082494 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082773) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082773) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082494) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082494) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082494 AND `dispatched_services`.`id` = 2518 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082494, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:54', 'This item is not currently available from BorrowDirect', 969082494, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2518  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082494 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082773 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082773) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082494 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082773 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082494  (14.3ms) COMMIT Completed 200 OK in 258ms (Views: 19.5ms | ActiveRecord: 112.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:54 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e42aa7785a3b896530c826b2ff1cc2b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:54', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'format', 'journal', 969082774, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'isbn', 1, '9789810743734', 969082774, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082774, 'e42aa7785a3b896530c826b2ff1cc2b3')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082495  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:54', NULL, 969082495, 'BorrowDirect', 'queued', '2015-02-23 16:01:54')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2519  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082774) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082495) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082495) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`id` = 2519 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082495, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:54', 'Choose your delivery location', 969082495, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2519  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082774 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082495 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082774 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082495  (14.2ms) COMMIT Completed 200 OK in 257ms (Views: 22.6ms | ActiveRecord: 117.0ms) Started GET "/borrow_direct/BorrowDirect/969082495?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:01:54 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082495"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082495 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2519  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:54', 969082495, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082774 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774) Redirected to http://www.example.com/resolve?umlaut.request_id=969082495&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A54-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 38.8ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2519  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013569  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082495&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A54-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:01:54 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082495", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:01:54-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082774 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082495  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 [["request_id", 969082495]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082774 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082495 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082774 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082495  (14.2ms) COMMIT Completed 200 OK in 74ms (Views: 19.1ms | ActiveRecord: 45.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:54 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2d8512bd80ece6c10732271c8dcd35f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:54', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'format', 'journal', 969082775, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'isbn', 1, '9789810743734', 969082775, '9789810743734')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082775, 'b2d8512bd80ece6c10732271c8dcd35f')  (15.1ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082496  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:54', NULL, 969082496, 'BorrowDirect', 'queued', '2015-02-23 16:01:54')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2520  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082496 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082775) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082775) ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082496) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082496) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082496 AND `dispatched_services`.`id` = 2520 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082496, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:54', 'Choose your delivery location', 969082496, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2520  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082496 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082775 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082775) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082496 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082496 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082775 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082496  (14.9ms) COMMIT Completed 200 OK in 266ms (Views: 21.8ms | ActiveRecord: 119.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2131fcd99a5e07de4f1546cc0a7228f5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082776, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '9789810743734', 969082776, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082776, '2131fcd99a5e07de4f1546cc0a7228f5')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082497  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:55', NULL, 969082497, 'BorrowDirect', 'queued', '2015-02-23 16:01:55')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2521  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082776) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082497) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082497) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`id` = 2521 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082497, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 'Choose your delivery location', 969082497, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2521  (14.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082776 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082497 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082776 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082497  (14.3ms) COMMIT Completed 200 OK in 275ms (Views: 21.9ms | ActiveRecord: 116.3ms) Started GET "/borrow_direct/BorrowDirect/969082497" for 127.0.0.1 at 2015-02-23 11:01:55 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082497"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082497 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 969082497, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082776 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776) Redirected to http://www.example.com/resolve?umlaut.request_id=969082497&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.2ms) Started GET "/resolve?umlaut.request_id=969082497&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:01:55 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082497", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:01:55-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082776 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082497  (13.9ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 [["request_id", 969082497]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082776 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082497 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082776 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082497  (14.1ms) COMMIT Completed 200 OK in 78ms (Views: 21.9ms | ActiveRecord: 46.4ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c47fa5bc6eb14ee22c7eac11cf0ca18f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082777, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '9789810743734', 969082777, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082777, 'c47fa5bc6eb14ee22c7eac11cf0ca18f')  (14.3ms) COMMIT ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082498 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082498, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082498 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:55', NULL, 969082498, 'test_bd', 'successful', '2015-02-23 16:01:55')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2522  (15.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082498 Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6647db5b36342ac84e1e61de721e154a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082778, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '000000000', 969082778, '000000000')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 16:01:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082778, '6647db5b36342ac84e1e61de721e154a')  (14.0ms) COMMIT ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082499 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082499, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 'This item is not currently available from BorrowDirect', 969082499, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082499 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:55', NULL, 969082499, 'test_bd', 'successful', '2015-02-23 16:01:55')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2523  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082499 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5cd630b17c7c7114ee09ac718711834' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082779, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '0109836413', 969082779, '0109836413')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:01:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082779, 'd5cd630b17c7c7114ee09ac718711834')  (14.1ms) COMMIT ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082500 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082500, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 'This item is not currently available from BorrowDirect', 969082500, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082500 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:55', NULL, 969082500, 'test_bd', 'successful', '2015-02-23 16:01:55')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2524  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082500 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a10c43d5c8075f62f467f1fce740b12e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (3.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '9789810743734') SQL (2.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082780, 'journal') BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"3-50LSQVk13Doe0Vlhpma_q24no","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/creates_a_request_form_for_a_requestable_item.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '9789810743734', 969082780, '9789810743734') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082486 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (8.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"3-50LSQVk13Doe0Vlhpma_q24no\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/creates_a_request_form_for_a_requestable_item.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n * The cassette contains 1 HTTP interaction\n that has not been\\n played back. If your request is non-deterministic, you may\n need to\\n change your :match_requests_on cassette option to be more lenient\\n\n \\ or use a custom request matcher to allow it to match [5].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2511  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082780, 'a10c43d5c8075f62f467f1fce740b12e')  (16.0ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 969082486, '---\n:status: error\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082501 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082501, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:56', 'Choose your delivery location', 969082501, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082501 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:56', NULL, 969082501, 'test_bd', 'successful', '2015-02-23 16:01:56')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:56' WHERE `dispatched_services`.`id` = 2525  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082501 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a4ffea30362e0e749c6ee28de122fcb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:56', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:56', 'format', 'journal', 969082781, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:56', 'isbn', 1, '9789810743734', 969082781, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082781, '4a4ffea30362e0e749c6ee28de122fcb')  (19.5ms) COMMIT ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082502 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:56', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082502, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082502 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:56', NULL, 969082502, 'test_bd', 'failed_temporary', '2015-02-23 16:01:56')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 16:01:56' WHERE `dispatched_services`.`id` = 2526  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082502 ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 62ms (Views: 22.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 70ms (Views: 0.4ms | ActiveRecord: 6.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f65a458c8a39bea5b01621a3276fce2b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:42', '121212') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'format', 'journal', 969082782, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'isbn', 1, '121212', 969082782, '121212')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082782, 'f65a458c8a39bea5b01621a3276fce2b')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082503"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082503 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082503 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082503  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082503, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082503\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082782 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082782) Redirected to http://test.host/resolve?umlaut.request_id=969082503&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 59ms (ActiveRecord: 31.5ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e5101f17b6db5a7e3f3e3f213413e18' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:42', '121212') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'format', 'journal', 969082783, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'isbn', 1, '121212', 969082783, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082783, '9e5101f17b6db5a7e3f3e3f213413e18')  (21.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082504, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082504"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082504 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082504 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013585  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082504, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013585\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082783 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082783) Redirected to http://test.host/resolve?umlaut.request_id=969082504&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 24.9ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3facb76409132e0e021319c3ea82f910' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:42', '121212') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'format', 'journal', 969082784, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'isbn', 1, '121212', 969082784, '121212')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082784, '3facb76409132e0e021319c3ea82f910')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082505, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082505"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082505 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082505 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082505 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:42', NULL, 969082505, 'BorrowDirect', 'in_progress', '2015-02-23 16:43:42')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:42' WHERE `dispatched_services`.`id` = 2527  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082505, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082784 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082784) Redirected to http://test.host/resolve?umlaut.request_id=969082505&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 118ms (ActiveRecord: 65.2ms) DispatchedService Load (6.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082505 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082505 ORDER BY id ASC DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082505 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:43:42' WHERE `dispatched_services`.`id` = 2527  (22.7ms) COMMIT  (0.8ms) BEGIN SQL (2.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013588  (14.7ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66752c081e33f967efb5af2afcac7d8f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:42', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'format', 'journal', 969082785, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'isbn', 1, '121212', 969082785, '121212')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082785, '66752c081e33f967efb5af2afcac7d8f')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082506, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082506"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082506 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082506 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082506 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082506, 'BorrowDirect', 'in_progress', '2015-02-23 16:43:43')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2528  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082506, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082785 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082785) Redirected to http://example.org Completed 302 Found in 80ms (ActiveRecord: 66.2ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '313e5a67f7e7edd0c939f83746491bfa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:43', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082786, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'isbn', 1, '121212', 969082786, '121212')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082786, '313e5a67f7e7edd0c939f83746491bfa')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082507, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082507"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082507 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082507 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082507 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082507, 'BorrowDirect', 'in_progress', '2015-02-23 16:43:43')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2529  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082507, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082786 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082786) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082507&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 82ms (ActiveRecord: 67.5ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082507 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN Request Load (3.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf5b537c26dd7856b427dd835e2b6fd2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (3.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2529 SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:43', '121212') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082787, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'isbn', 1, '121212', 969082787, '121212')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013592  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082787, 'bf5b537c26dd7856b427dd835e2b6fd2')  (15.2ms) COMMIT  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082508"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082508 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082508 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082508, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082787 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082787) Redirected to http://test.host/resolve?umlaut.request_id=969082508&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 25.3ms)  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39b8830b16038cdcab8a0ce19603d60b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:43', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082788, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'isbn', 1, '9789810743734', 969082788, '9789810743734')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082788, '39b8830b16038cdcab8a0ce19603d60b')  (14.2ms) COMMIT ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082509 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082509, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082509 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082509, 'test_bd', 'successful', '2015-02-23 16:43:43')  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2530  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082509 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40a56619253ae365d631cad1d02ee18a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:43', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082789, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082789, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'aulast', 1, 'grimes', 969082789, 'Grimes')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082789, '40a56619253ae365d631cad1d02ee18a')  (14.5ms) COMMIT  (1.4ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082510, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.3ms) COMMIT ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082510 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5dfb1a2bd72c8a996ea6e79c6acd0efe' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 16:43:43', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'book', 969082790, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'auinit', 1, 'eh', 969082790, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'aulast', 1, 'lenneberg', 969082790, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'biological foundations of language', 969082790, 'Biological foundations of language') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'genre', 1, 'book', 969082790, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'date', 1, '1967', 969082790, '1967')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082790, 'info:sid/google', '5dfb1a2bd72c8a996ea6e79c6acd0efe')  (13.9ms) COMMIT ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082511 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082511, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082511 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082511, 'test_bd', 'successful', '2015-02-23 16:43:43')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2531  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082511 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4cb64e78915464fdf13c754e5186a37' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 16:43:43', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082791, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'auinit', 1, 'rd', 969082791, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'aulast', 1, 'kaplan', 969082791, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'atitle', 1, 'the coming anarchy', 969082791, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'the atlantic monthly', 969082791, 'The Atlantic monthly') SQL (6.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'volume', 1, '273', 969082791, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'issue', 1, '2', 969082791, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'date', 1, '1994', 969082791, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'spage', 1, '44', 969082791, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'issn', 1, '1072-7825', 969082791, '1072-7825')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082791, 'info:sid/google', 'a4cb64e78915464fdf13c754e5186a37')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082512 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082512, 'test_bd', 'successful', '2015-02-23 16:43:43')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2532  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082512 ServiceResponse Exists (2.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082512 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'caad3c04fd61db2276d951da8eb3c211' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:43', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082792, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'title', 969082792, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'author', 1, 'au', 969082792, 'au')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082792, 'caad3c04fd61db2276d951da8eb3c211')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082513, '--- {}\n', 'test_holding', 'holding')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (3.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082513, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082513 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082513, 'test_bd', 'successful', '2015-02-23 16:43:43')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2533  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082513 ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082513 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '572e0d0142e64dbb21f074e2dec8a63e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:43', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082793, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'title', 969082793, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'author', 1, 'au', 969082793, 'au')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082793, '572e0d0142e64dbb21f074e2dec8a63e')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082514, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082514 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082514, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082514 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:44', NULL, 969082514, 'test_bd', 'successful', '2015-02-23 16:43:44')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2534  (14.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082514 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2f2985d2e44324742ae7c12f75dbef0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:44', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'format', 'journal', 969082794, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'title', 1, 'title', 969082794, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'author', 1, 'au', 969082794, 'au')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:43:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082794, 'b2f2985d2e44324742ae7c12f75dbef0')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:44', 969082515, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082515 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082515, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082515 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:44', NULL, 969082515, 'test_bd', 'successful', '2015-02-23 16:43:44')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2535  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082515 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4667abc2b0e8ab892c95f3e2a34d6cf' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:44', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'format', 'journal', 969082795, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'title', 1, 'title', 969082795, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'author', 1, 'au', 969082795, 'au')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:43:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082795, 'd4667abc2b0e8ab892c95f3e2a34d6cf')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:44', 969082516, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.0ms) COMMIT ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082516 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082516 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:44', NULL, 969082516, 'test_bd', 'successful', '2015-02-23 16:43:44')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2536  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082516 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:44 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dac09e2005a6737bd926fd01ecca5641' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:44', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'format', 'journal', 969082796, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'isbn', 1, '9789810743734', 969082796, '9789810743734')  (15.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082796, 'dac09e2005a6737bd926fd01ecca5641')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082517  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:44', NULL, 969082517, 'test_bd', 'queued', '2015-02-23 16:43:44')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2537  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082517 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082796) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082796) ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082517) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082517) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082517 AND `dispatched_services`.`id` = 2537 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082517, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2537  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082517 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082796 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082796) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082517 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.8ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082796 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (14.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.9ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082517  (14.7ms) COMMIT Completed 200 OK in 512ms (Views: 198.1ms | ActiveRecord: 121.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 11:43:45 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99de3b808a517f1ab49e619932c22171' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:45', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'format', 'book', 969082797, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'genre', 1, 'book', 969082797, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'author', 1, 'smith', 969082797, 'Smith') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'title', 1, 'some book', 969082797, 'Some Book')  (15.1ms) COMMIT  (1.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 16:43:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082797, '99de3b808a517f1ab49e619932c22171')  (19.9ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082518  (15.4ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:45', NULL, 969082518, 'BorrowDirect', 'queued', '2015-02-23 16:43:45')  (20.8ms) COMMIT  (1.4ms) BEGIN SQL (3.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2538  (24.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082518 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082797) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082797) ServiceResponse Load (5.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082518) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082518) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082518 AND `dispatched_services`.`id` = 2538 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (2.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082518, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2538  (14.7ms) COMMIT Request Load (2.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082518 LIMIT 1 DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518 DispatchedService Load (3.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (5.8ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082797 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082797) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (21.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082518 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082797 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082518  (15.1ms) COMMIT Completed 200 OK in 360ms (Views: 37.9ms | ActiveRecord: 151.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 11:43:45 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99e7bef242c7fb91ee992907a8ba724d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:45', 'foo') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'format', 'journal', 969082798, 'journal') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'genre', 1, 'article', 969082798, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'title', 1, 'foo', 969082798, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'author', 1, 'bar', 969082798, 'bar')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 16:43:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082798, '99e7bef242c7fb91ee992907a8ba724d')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082519  (14.5ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:45', NULL, 969082519, 'BorrowDirect', 'queued', '2015-02-23 16:43:45')  (15.0ms) COMMIT  (1.3ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2539  (13.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082519 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082798) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082798) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082519) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082519) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082519 AND `dispatched_services`.`id` = 2539 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2539  (14.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082519 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082798 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082798) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (16.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082519 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082798 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (5.3ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082519  (14.6ms) COMMIT Completed 200 OK in 235ms (Views: 29.3ms | ActiveRecord: 124.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bedc85890cf5a074cf3acc4b333592b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:45', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'format', 'book', 969082799, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'genre', 1, 'book', 969082799, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'title', 1, 'foo', 969082799, 'foo')  (14.6ms) COMMIT  (2.1ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 16:43:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082799, '1bedc85890cf5a074cf3acc4b333592b')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082520 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:45', NULL, 969082520, 'BorrowDirect', 'failed_fatal', '2015-02-23 16:43:45')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2540  (20.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082520" for 127.0.0.1 at 2015-02-23 11:43:45 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082520"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082520 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082799 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082799)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082520  (17.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082520 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082520 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082520 [["request_id", 969082520]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.3ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082799 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082799) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082520 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082520 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082799 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082520  (14.5ms) COMMIT Completed 200 OK in 95ms (Views: 30.6ms | ActiveRecord: 53.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:45 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e865cd0fd34a074023461990e47bfdf7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:45', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'format', 'journal', 969082800, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'isbn', 1, '9789810743734', 969082800, '9789810743734')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082800, 'e865cd0fd34a074023461990e47bfdf7')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082521  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:45', NULL, 969082521, 'BorrowDirect', 'queued', '2015-02-23 16:43:45')  (14.2ms) COMMIT  (1.2ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2541  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082800) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082521) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082521) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`id` = 2541 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082521, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:46', 'Choose your delivery location', 969082521, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2541  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082800 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082521 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (7.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (13.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (14.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082800 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082521  (14.9ms) COMMIT Completed 200 OK in 326ms (Views: 40.5ms | ActiveRecord: 115.4ms) Started GET "/borrow_direct/BorrowDirect/969082521?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:43:46 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082521"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082521 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2541  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:46', 969082521, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082800 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800) Redirected to http://www.example.com/resolve?umlaut.request_id=969082521&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A46-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 53ms (ActiveRecord: 37.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2541  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013608  (64.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082521&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A46-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:43:46 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082521", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:43:46-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082800 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082521  (31.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 [["request_id", 969082521]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082800 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082521 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082800 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082521  (14.7ms) COMMIT Completed 200 OK in 100ms (Views: 24.2ms | ActiveRecord: 65.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 11:43:46 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16461658cf90c46fc447b7d30b26256f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:46', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:46', 'format', 'journal', 969082801, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:46', 'isbn', 1, '0109836413', 969082801, '0109836413')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:43:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082801, '16461658cf90c46fc447b7d30b26256f')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082522  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522  (0.6ms) BEGIN SQL (6.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:46', NULL, 969082522, 'BorrowDirect', 'queued', '2015-02-23 16:43:46')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2542  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082522 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082801) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082801) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082522) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082522) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082522 AND `dispatched_services`.`id` = 2542 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082522, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:46', 'This item is not currently available from BorrowDirect', 969082522, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2542  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082522 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082801 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082801) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082522 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082801 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082522  (14.6ms) COMMIT Completed 200 OK in 264ms (Views: 23.2ms | ActiveRecord: 118.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:46 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '204ef0367a47ee1f0a1169a8ce70986e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:46', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:46', 'format', 'journal', 969082802, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:46', 'isbn', 1, '9789810743734', 969082802, '9789810743734')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082802, '204ef0367a47ee1f0a1169a8ce70986e')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082523  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:46', NULL, 969082523, 'BorrowDirect', 'queued', '2015-02-23 16:43:46')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2543  (14.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082802) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802) ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082523) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082523) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`id` = 2543 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082523, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:46', 'Choose your delivery location', 969082523, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2543  (14.8ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082802 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082523 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082802 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082523  (14.3ms) COMMIT Completed 200 OK in 314ms (Views: 24.5ms | ActiveRecord: 114.4ms) Started GET "/borrow_direct/BorrowDirect/969082523?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:43:47 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082523"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082523 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2543  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:47', 969082523, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082802 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802) Redirected to http://www.example.com/resolve?umlaut.request_id=969082523&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 56ms (ActiveRecord: 37.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2543  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013613  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969082523&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:43:47 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082523", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:43:47-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082802 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082523  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 [["request_id", 969082523]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.2ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082802 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082523 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082802 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082523  (14.5ms) COMMIT Completed 200 OK in 88ms (Views: 30.2ms | ActiveRecord: 46.1ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:47 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0195a1c0a310b0b07bf7ff88b5a0caa2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:47', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:47', 'format', 'journal', 969082803, 'journal') SQL (6.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:47', 'isbn', 1, '9789810743734', 969082803, '9789810743734')  (14.2ms) COMMIT  (2.4ms) BEGIN SQL (5.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082803, '0195a1c0a310b0b07bf7ff88b5a0caa2')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082524  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524  (0.6ms) BEGIN SQL (2.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:47', NULL, 969082524, 'BorrowDirect', 'queued', '2015-02-23 16:43:47')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2544  (15.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082524 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082803) ReferentValue Load (2.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082803) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082524) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082524) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082524 AND `dispatched_services`.`id` = 2544 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082524, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:47', 'Choose your delivery location', 969082524, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2544  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082524 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082803 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082803) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082524 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082524 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.9ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082803 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082524  (14.5ms) COMMIT Completed 200 OK in 286ms (Views: 31.3ms | ActiveRecord: 130.6ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:47 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a38447a6593bfc90c37b6cb5ff39b12' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:47', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:47', 'format', 'journal', 969082804, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:47', 'isbn', 1, '9789810743734', 969082804, '9789810743734')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082804, '2a38447a6593bfc90c37b6cb5ff39b12')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082525  (14.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:47', NULL, 969082525, 'BorrowDirect', 'queued', '2015-02-23 16:43:47')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2545  (14.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082804) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082525) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082525) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`id` = 2545 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082525, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:47', 'Choose your delivery location', 969082525, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2545  (14.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082804 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.0ms) ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082525 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082804 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (50.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082525  (15.3ms) COMMIT Completed 200 OK in 318ms (Views: 76.7ms | ActiveRecord: 117.5ms) Started GET "/borrow_direct/BorrowDirect/969082525" for 127.0.0.1 at 2015-02-23 11:43:47 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082525"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082525 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:47', 969082525, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082804 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804) Redirected to http://www.example.com/resolve?umlaut.request_id=969082525&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 19.4ms) Started GET "/resolve?umlaut.request_id=969082525&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:43:47 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082525", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:43:47-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082804 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082525  (15.0ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 [["request_id", 969082525]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082804 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082525 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082804 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082525  (14.5ms) COMMIT Completed 200 OK in 86ms (Views: 26.1ms | ActiveRecord: 49.6ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf799b684f3309bcec39332b92807daa' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:48', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'format', 'journal', 969082805, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'isbn', 1, '000000000', 969082805, '000000000')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 16:43:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082805, 'cf799b684f3309bcec39332b92807daa')  (14.3ms) COMMIT ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082526 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082526, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:48', 'This item is not currently available from BorrowDirect', 969082526, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082526 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:48', NULL, 969082526, 'test_bd', 'successful', '2015-02-23 16:43:48')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:48' WHERE `dispatched_services`.`id` = 2546  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082526 Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df894a108bfe1807a7129613bd148f8f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:48', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'format', 'journal', 969082806, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'isbn', 1, '0109836413', 969082806, '0109836413')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:43:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082806, 'df894a108bfe1807a7129613bd148f8f')  (14.1ms) COMMIT ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082527 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082527, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:48', 'This item is not currently available from BorrowDirect', 969082527, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082527 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:48', NULL, 969082527, 'test_bd', 'successful', '2015-02-23 16:43:48')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:48' WHERE `dispatched_services`.`id` = 2547  (13.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082527 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd64a19c761dabc8a215705b3fd4473a8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:48', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'format', 'journal', 969082807, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'isbn', 1, '9789810743734', 969082807, '9789810743734')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082807, 'd64a19c761dabc8a215705b3fd4473a8')  (14.2ms) COMMIT ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082528 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082528, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:48', 'Choose your delivery location', 969082528, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082528 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:48', NULL, 969082528, 'test_bd', 'successful', '2015-02-23 16:43:48')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:48' WHERE `dispatched_services`.`id` = 2548  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082528 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab62140f94282ce806b71c6a183cbc97' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:48', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'format', 'journal', 969082808, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'isbn', 1, '9789810743734', 969082808, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082808, 'ab62140f94282ce806b71c6a183cbc97')  (14.3ms) COMMIT ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082529 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082529, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082529 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:48', NULL, 969082529, 'test_bd', 'failed_temporary', '2015-02-23 16:43:48')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 16:43:48' WHERE `dispatched_services`.`id` = 2549  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082529 ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 55ms (Views: 12.4ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 79ms (Views: 0.5ms | ActiveRecord: 6.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88062e3ea0e72deb08f1194bc9b157e1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082809, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082809, '121212')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082809, '88062e3ea0e72deb08f1194bc9b157e1')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082530"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082530 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082530 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082530  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082530, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082530\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082809 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082809) Redirected to http://test.host/resolve?umlaut.request_id=969082530&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 60ms (ActiveRecord: 31.7ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08d6faa4029eee7222e8b20f38b374a0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082810, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082810, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082810, '08d6faa4029eee7222e8b20f38b374a0')  (15.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082531, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082531"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082531 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082531 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013627  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082531, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013627\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082810 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082810) Redirected to http://test.host/resolve?umlaut.request_id=969082531&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 25.7ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e939cfaa30c4cd422981bf8f7ceef14b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082811, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082811, '121212')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082811, 'e939cfaa30c4cd422981bf8f7ceef14b')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082532, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082532"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082532 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082532 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082532 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:19', NULL, 969082532, 'BorrowDirect', 'in_progress', '2015-02-23 16:52:19')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:19' WHERE `dispatched_services`.`id` = 2550  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082532, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082811 LIMIT 1 ReferentValue Load (2.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082811) Redirected to http://test.host/resolve?umlaut.request_id=969082532&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 153ms (ActiveRecord: 65.8ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082532 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082532 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082532 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:52:19' WHERE `dispatched_services`.`id` = 2550  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013630  (16.5ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '539425ecf4e4a0a4ea6d954d70324472' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (3.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082812, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082812, '121212')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082812, '539425ecf4e4a0a4ea6d954d70324472')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082533, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082533"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082533 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082533 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082533 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:19', NULL, 969082533, 'BorrowDirect', 'in_progress', '2015-02-23 16:52:19')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:19' WHERE `dispatched_services`.`id` = 2551  (18.3ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082533, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082812 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082812) Redirected to http://example.org Completed 302 Found in 91ms (ActiveRecord: 70.4ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83ae336d310f85106963d2c939aaf2f8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082813, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082813, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (13.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082813, '83ae336d310f85106963d2c939aaf2f8')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082534, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082534"} Request Load (3.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082534 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082534 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082534 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:19', NULL, 969082534, 'BorrowDirect', 'in_progress', '2015-02-23 16:52:19')  (20.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:19' WHERE `dispatched_services`.`id` = 2552  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082534, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082813 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082813) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082534&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 93ms (ActiveRecord: 76.0ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082534 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN Request Load (4.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8ed487f852fd25b64d40404e4713c25' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (3.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2552 SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:20', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082814, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'isbn', 1, '121212', 969082814, '121212')  (21.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013634  (21.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082814, 'e8ed487f852fd25b64d40404e4713c25')  (15.4ms) COMMIT  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082535"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082535 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082535 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082535, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082814 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082814) Redirected to http://test.host/resolve?umlaut.request_id=969082535&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A20-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 24.9ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5520872bfa289b05e0f915ea1792e764' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:20', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082815, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'title', 1, 'title', 969082815, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'author', 1, 'au', 969082815, 'au')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082815, '5520872bfa289b05e0f915ea1792e764')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082536, '--- {}\n', 'test_holding', 'holding')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082536, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082536 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082536, 'test_bd', 'successful', '2015-02-23 16:52:20')  (19.3ms) COMMIT  (1.2ms) BEGIN SQL (2.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2553  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082536 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082536 ORDER BY id ASC  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2478716d67c8eb13e32d63f044f7c19' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:20', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082816, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'title', 1, 'title', 969082816, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'author', 1, 'au', 969082816, 'au')  (17.6ms) COMMIT  (0.6ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082816, 'f2478716d67c8eb13e32d63f044f7c19')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082537, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (42.4ms) COMMIT ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082537 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082537, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (17.8ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082537 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.5ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082537, 'test_bd', 'successful', '2015-02-23 16:52:20')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2554  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082537 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '447754fd46de2ff97cdf16db1f80c424' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:20', 'title') SQL (43.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082817, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'title', 1, 'title', 969082817, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'author', 1, 'au', 969082817, 'au')  (14.3ms) COMMIT  (1.3ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082817, '447754fd46de2ff97cdf16db1f80c424')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082538, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082538 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082538 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (2.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082538, 'test_bd', 'successful', '2015-02-23 16:52:20')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2555  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082538 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dcf687c28b36f18495055155117ddb7e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:20', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082818, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'title', 1, 'title', 969082818, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'author', 1, 'au', 969082818, 'au')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082818, 'dcf687c28b36f18495055155117ddb7e')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082539, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (15.3ms) COMMIT ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082539 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082539, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (19.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082539 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082539, 'test_bd', 'successful', '2015-02-23 16:52:20')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2556  (15.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082539 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c2495a0aed1eb77b007281b06df83d9e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:20', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082819, 'journal') SQL (6.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'isbn', 1, '9789810743734', 969082819, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082819, 'c2495a0aed1eb77b007281b06df83d9e')  (17.4ms) COMMIT ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082540 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082540, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 'Choose your delivery location', 969082540, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (19.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082540 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082540, 'test_bd', 'successful', '2015-02-23 16:52:20')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2557  (14.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082540 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26a7a00a17004494e13b1bd7dc21d1cf' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:20', '000000000') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082820, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'isbn', 1, '000000000', 969082820, '000000000')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082820, '26a7a00a17004494e13b1bd7dc21d1cf')  (14.2ms) COMMIT ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082541 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082541, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (24.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 'This item is not currently available from BorrowDirect', 969082541, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (28.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082541 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082541, 'test_bd', 'successful', '2015-02-23 16:52:21')  (22.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2558  (15.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082541 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ba7338717e31d404b1cd5837453796f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:21', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082821, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'isbn', 1, '0109836413', 969082821, '0109836413')  (14.2ms) COMMIT  (4.2ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082821, '4ba7338717e31d404b1cd5837453796f') BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"v4fgL4XmC35gP1W83sWfscwQ948","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/adds_a_bd_not_available_for_confirmed_non-requestable_item.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082533 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (2.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"v4fgL4XmC35gP1W83sWfscwQ948\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/adds_a_bd_not_available_for_confirmed_non-requestable_item.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n * The cassette contains 1 HTTP interaction\n that has not been\\n played back. If your request is non-deterministic, you may\n need to\\n change your :match_requests_on cassette option to be more lenient\\n\n \\ or use a custom request matcher to allow it to match [5].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2551  (15.5ms) COMMIT ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082542 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082542, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (23.5ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:21', 969082533, '---\n:status: error\n', 'BorrowDirect', 'bd_request_status')  (25.1ms) COMMIT  (19.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:21', 'This item is not currently available from BorrowDirect', 969082542, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082542 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082542, 'test_bd', 'successful', '2015-02-23 16:52:21')  (15.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2559  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082542 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1ce99da413ab6f682ddab606fbc3ff2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:21', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082822, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'isbn', 1, '9789810743734', 969082822, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082822, 'e1ce99da413ab6f682ddab606fbc3ff2')  (15.8ms) COMMIT ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082543 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082543, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082543 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (6.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082543, 'test_bd', 'failed_temporary', '2015-02-23 16:52:21')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2560  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082543 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26a5d0df8b89fb38093f7a217b63865a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:21', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082823, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'isbn', 1, '9789810743734', 969082823, '9789810743734')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082823, '26a5d0df8b89fb38093f7a217b63865a')  (14.2ms) COMMIT ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082544 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082544, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082544 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082544, 'test_bd', 'successful', '2015-02-23 16:52:21')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2561  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082544 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e173339f8d98e7024e8aa1749a91ea30' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 16:52:21', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082824, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'auinit', 1, 'rd', 969082824, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'aulast', 1, 'kaplan', 969082824, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'atitle', 1, 'the coming anarchy', 969082824, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'title', 1, 'the atlantic monthly', 969082824, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'volume', 1, '273', 969082824, '273') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'issue', 1, '2', 969082824, '2') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'date', 1, '1994', 969082824, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'spage', 1, '44', 969082824, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'issn', 1, '1072-7825', 969082824, '1072-7825')  (16.2ms) COMMIT  (0.6ms) BEGIN SQL (7.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082824, 'info:sid/google', 'e173339f8d98e7024e8aa1749a91ea30')  (16.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082545 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082545, 'test_bd', 'successful', '2015-02-23 16:52:21')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2562  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082545 ServiceResponse Exists (2.3ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082545 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d8180a6bbe7c6b3a0596a0be6d000a1' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:21', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082825, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082825, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'aulast', 1, 'grimes', 969082825, 'Grimes')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082825, '2d8180a6bbe7c6b3a0596a0be6d000a1')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082546, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.2ms) COMMIT ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082546 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7000151ab616bedb9bcc70b9c067bfa9' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 16:52:21', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'book', 969082826, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'auinit', 1, 'eh', 969082826, 'EH') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'aulast', 1, 'lenneberg', 969082826, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'title', 1, 'biological foundations of language', 969082826, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'genre', 1, 'book', 969082826, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'date', 1, '1967', 969082826, '1967')  (14.8ms) COMMIT  (2.5ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082826, 'info:sid/google', '7000151ab616bedb9bcc70b9c067bfa9')  (14.0ms) COMMIT ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082547 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082547, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082547 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082547, 'test_bd', 'successful', '2015-02-23 16:52:21')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2563  (18.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082547 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4eccd0b3fffeced6142989ba35a1319' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:21', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082827, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'isbn', 1, '9789810743734', 969082827, '9789810743734')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082827, 'b4eccd0b3fffeced6142989ba35a1319')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082548  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082548  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082548, 'test_bd', 'queued', '2015-02-23 16:52:21')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2564  (14.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082548 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082827) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082827) ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082548) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082548) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082548 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082548 AND `dispatched_services`.`id` = 2564 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082548, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT Umlaut: Threaded service raised exception. Service: test_bd, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/available Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' Completed 500 Internal Server Error in 196ms ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 11:52:22 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cdec8d8b930f472bcf95713496cf0f87' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:22', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'format', 'book', 969082828, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'genre', 1, 'book', 969082828, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'author', 1, 'smith', 969082828, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'title', 1, 'some book', 969082828, 'Some Book')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 16:52:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082828, 'cdec8d8b930f472bcf95713496cf0f87')  (14.6ms) COMMIT  (2.5ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082549  (14.1ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:22', NULL, 969082549, 'BorrowDirect', 'queued', '2015-02-23 16:52:22')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2565  (13.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082549 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082828) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082828) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082549) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082549) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082549 AND `dispatched_services`.`id` = 2565 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082549, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2565  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082549 LIMIT 1 DispatchedService Load (43.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082828 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082828) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082549 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082828 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.0ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082549  (14.4ms) COMMIT Completed 200 OK in 363ms (Views: 140.3ms | ActiveRecord: 119.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 11:52:22 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd21b55e9cf4d72ecb92d4d7bdd3ac6b6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:22', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'format', 'journal', 969082829, 'journal') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'genre', 1, 'article', 969082829, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'title', 1, 'foo', 969082829, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'author', 1, 'bar', 969082829, 'bar')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 16:52:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082829, 'd21b55e9cf4d72ecb92d4d7bdd3ac6b6')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082550  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:22', NULL, 969082550, 'BorrowDirect', 'queued', '2015-02-23 16:52:22')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2566  (18.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082550 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082829) ReferentValue Load (3.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082829) ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082550) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082550) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082550 AND `dispatched_services`.`id` = 2566 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2566  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082550 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082829 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082829) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (18.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082550 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082829 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082550  (16.6ms) COMMIT Completed 200 OK in 249ms (Views: 32.4ms | ActiveRecord: 128.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6e2e0083cb8f8c6bc8a5c3fc2d76082' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (6.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:22', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'format', 'book', 969082830, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'genre', 1, 'book', 969082830, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'title', 1, 'foo', 969082830, 'foo')  (13.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 16:52:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082830, 'b6e2e0083cb8f8c6bc8a5c3fc2d76082')  (15.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082551 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.3ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:22', NULL, 969082551, 'BorrowDirect', 'failed_fatal', '2015-02-23 16:52:22')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2567  (15.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082551" for 127.0.0.1 at 2015-02-23 11:52:22 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082551"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082551 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082830 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082830)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082551  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082551 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082551 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082551 [["request_id", 969082551]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.0ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082830 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082830) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082551 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082551 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082830 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082551  (14.7ms) COMMIT Completed 200 OK in 85ms (Views: 24.0ms | ActiveRecord: 51.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:22 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b0a3891424ef0a18b527c7133ac4ed2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:22', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'format', 'journal', 969082831, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'isbn', 1, '9789810743734', 969082831, '9789810743734')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082831, '8b0a3891424ef0a18b527c7133ac4ed2')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082552  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:22', NULL, 969082552, 'BorrowDirect', 'queued', '2015-02-23 16:52:22')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2568  (14.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082831) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082552) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082552) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`id` = 2568 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082552, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:23', 'Choose your delivery location', 969082552, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2568  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082831 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082552 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.5ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082831 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082552  (15.8ms) COMMIT Completed 200 OK in 308ms (Views: 29.2ms | ActiveRecord: 115.7ms) Started GET "/borrow_direct/BorrowDirect/969082552?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:52:23 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082552"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082552 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2568  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:23', 969082552, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082831 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831) Redirected to http://www.example.com/resolve?umlaut.request_id=969082552&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 38.4ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2568  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013658  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969082552&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:52:23 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082552", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:52:23-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082831 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831)  (0.6ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082552  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 [["request_id", 969082552]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082831 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082552 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082831 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (3.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082552  (14.6ms) COMMIT Completed 200 OK in 85ms (Views: 24.4ms | ActiveRecord: 49.3ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 11:52:23 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70106501d344c3876bee5e6aae55e70a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:23', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:23', 'format', 'journal', 969082832, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:23', 'isbn', 1, '0109836413', 969082832, '0109836413')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:52:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082832, '70106501d344c3876bee5e6aae55e70a')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082553  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:23', NULL, 969082553, 'BorrowDirect', 'queued', '2015-02-23 16:52:23')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2569  (14.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082553 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082832) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082832) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082553) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082553) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082553 AND `dispatched_services`.`id` = 2569 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082553, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.6ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:23', 'This item is not currently available from BorrowDirect', 969082553, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (18.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2569  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082553 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082832 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082832) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082553 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082832 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082553  (14.2ms) COMMIT Completed 200 OK in 266ms (Views: 23.7ms | ActiveRecord: 113.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:23 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9cadb42cbad49b7675ce0d7acbe44936' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:23', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:23', 'format', 'journal', 969082833, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:23', 'isbn', 1, '9789810743734', 969082833, '9789810743734')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082833, '9cadb42cbad49b7675ce0d7acbe44936')  (21.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082554  (18.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:23', NULL, 969082554, 'BorrowDirect', 'queued', '2015-02-23 16:52:23')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2570  (14.5ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082833) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833) ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082554) ORDER BY id ASC DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082554) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`id` = 2570 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082554, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:23', 'Choose your delivery location', 969082554, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2570  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082833 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082554 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082833 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082554  (14.8ms) COMMIT Completed 200 OK in 345ms (Views: 30.2ms | ActiveRecord: 129.4ms) Started GET "/borrow_direct/BorrowDirect/969082554?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:52:24 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082554"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082554 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2570  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:24', 969082554, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082833 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833) Redirected to http://www.example.com/resolve?umlaut.request_id=969082554&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 56ms (ActiveRecord: 37.8ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2570  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013663  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082554&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:52:24 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082554", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:52:24-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082833 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082554  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 [["request_id", 969082554]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082833 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082554 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082833 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082554  (14.1ms) COMMIT Completed 200 OK in 80ms (Views: 22.8ms | ActiveRecord: 45.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86c864f9b6f1a1678a1e126d4cf9e540' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:24', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:24', 'format', 'journal', 969082834, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:24', 'isbn', 1, '9789810743734', 969082834, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082834, '86c864f9b6f1a1678a1e126d4cf9e540')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082555  (15.2ms) COMMIT DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:24', NULL, 969082555, 'BorrowDirect', 'queued', '2015-02-23 16:52:24')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2571  (14.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082555 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082834) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082834) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082555) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082555) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082555 AND `dispatched_services`.`id` = 2571 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082555, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:24', 'Choose your delivery location', 969082555, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2571  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082555 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.2ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082834 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082834) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082555 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.4ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082555 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (10.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (13.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (14.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082834 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082555  (20.5ms) COMMIT Completed 200 OK in 296ms (Views: 44.9ms | ActiveRecord: 125.6ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44d90986a86b3cabb28c4a1e348d62c4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:24', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:24', 'format', 'journal', 969082835, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:24', 'isbn', 1, '9789810743734', 969082835, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (6.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082835, '44d90986a86b3cabb28c4a1e348d62c4')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082556  (14.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556  (1.0ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:24', NULL, 969082556, 'BorrowDirect', 'queued', '2015-02-23 16:52:24')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (2.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2572  (16.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082835) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835) ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082556) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082556) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`id` = 2572 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082556, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:24', 'Choose your delivery location', 969082556, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2572  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.9ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082835 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082556 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.4ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082835 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082556  (14.2ms) COMMIT Completed 200 OK in 333ms (Views: 29.7ms | ActiveRecord: 125.1ms) Started GET "/borrow_direct/BorrowDirect/969082556" for 127.0.0.1 at 2015-02-23 11:52:24 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082556"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082556 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:24', 969082556, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.0ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082835 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835) Redirected to http://www.example.com/resolve?umlaut.request_id=969082556&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.7ms) Started GET "/resolve?umlaut.request_id=969082556&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:52:24 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082556", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:52:24-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082835 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082556  (14.4ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 [["request_id", 969082556]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082835 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082556 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082835 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082556  (25.4ms) COMMIT Completed 200 OK in 102ms (Views: 29.6ms | ActiveRecord: 60.2ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bce7fa0dc2b444bac7797b40f4dfcc5e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:25', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'format', 'journal', 969082836, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082836, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'aulast', 1, 'grimes', 969082836, 'Grimes')  (25.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 16:54:25', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082836, 'bce7fa0dc2b444bac7797b40f4dfcc5e')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082557, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (16.4ms) COMMIT ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082557 ORDER BY id ASC Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bbdd2103e8ee982724342c5ea6208ec' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 16:54:25', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'format', 'journal', 969082837, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'auinit', 1, 'rd', 969082837, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'aulast', 1, 'kaplan', 969082837, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'atitle', 1, 'the coming anarchy', 969082837, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'title', 1, 'the atlantic monthly', 969082837, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'volume', 1, '273', 969082837, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'issue', 1, '2', 969082837, '2') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'date', 1, '1994', 969082837, '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'spage', 1, '44', 969082837, '44') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'issn', 1, '1072-7825', 969082837, '1072-7825')  (21.5ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 16:54:25', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082837, 'info:sid/google', '6bbdd2103e8ee982724342c5ea6208ec')  (24.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082558 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:25', NULL, 969082558, 'test_bd', 'successful', '2015-02-23 16:54:25')  (20.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:25' WHERE `dispatched_services`.`id` = 2573  (25.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082558 ServiceResponse Exists (2.8ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082558 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '450ac2820d97d32db3d40501c3efd342' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 16:54:25', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'format', 'book', 969082838, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'auinit', 1, 'eh', 969082838, 'EH') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'aulast', 1, 'lenneberg', 969082838, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'title', 1, 'biological foundations of language', 969082838, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'genre', 1, 'book', 969082838, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'date', 1, '1967', 969082838, '1967')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 16:54:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082838, 'info:sid/google', '450ac2820d97d32db3d40501c3efd342')  (17.9ms) COMMIT ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082559 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082559, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082559 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:26', NULL, 969082559, 'test_bd', 'successful', '2015-02-23 16:54:26')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2574  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082559 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f530e0c27be0b1300e9306e7dbd66b2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:26', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'format', 'journal', 969082839, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'isbn', 1, '9789810743734', 969082839, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082839, '7f530e0c27be0b1300e9306e7dbd66b2')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082560  (13.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:26', NULL, 969082560, 'test_bd', 'queued', '2015-02-23 16:54:26')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2575  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082560 LIMIT 1 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082839) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082839) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082560) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082560) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082560 AND `dispatched_services`.`id` = 2575 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082560, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2575  (14.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082560 LIMIT 1 DispatchedService Load (35.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082839 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082839) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082560 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (95.0ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082839 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082560  (15.0ms) COMMIT Completed 200 OK in 445ms (Views: 136.2ms | ActiveRecord: 118.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 11:54:26 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8094a5c0848e5668f7d49bd1c48dbd2d' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:26', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'format', 'book', 969082840, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'genre', 1, 'book', 969082840, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'author', 1, 'smith', 969082840, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'title', 1, 'some book', 969082840, 'Some Book')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 16:54:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082840, '8094a5c0848e5668f7d49bd1c48dbd2d')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082561  (14.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561  (1.0ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:26', NULL, 969082561, 'BorrowDirect', 'queued', '2015-02-23 16:54:26')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2576  (13.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082561 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082840) ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082840) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082561) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082561) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082561 AND `dispatched_services`.`id` = 2576 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082561, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (13.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (0.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2576  (13.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082561 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082840 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082840) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082561 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082840 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082561  (16.0ms) COMMIT Completed 200 OK in 240ms (Views: 20.9ms | ActiveRecord: 127.9ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 11:54:26 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '898154d3a10e9993838c109c108fe9cb' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:26', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'format', 'journal', 969082841, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'genre', 1, 'article', 969082841, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'title', 1, 'foo', 969082841, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'author', 1, 'bar', 969082841, 'bar')  (41.1ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 16:54:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082841, '898154d3a10e9993838c109c108fe9cb')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082562  (16.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:26', NULL, 969082562, 'BorrowDirect', 'queued', '2015-02-23 16:54:26')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2577  (20.3ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082562 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082841) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082841) ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082562) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082562) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082562 AND `dispatched_services`.`id` = 2577 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (2.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2577  (52.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082562 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082841 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082841) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082562 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082841 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (39.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082562  (53.3ms) COMMIT Completed 200 OK in 364ms (Views: 53.8ms | ActiveRecord: 192.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '507d969559750649dd090067ed1de8e0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:27', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'format', 'book', 969082842, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'genre', 1, 'book', 969082842, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'title', 1, 'foo', 969082842, 'foo')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 16:54:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082842, '507d969559750649dd090067ed1de8e0')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082563 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:27', NULL, 969082563, 'BorrowDirect', 'failed_fatal', '2015-02-23 16:54:27')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2578  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082563" for 127.0.0.1 at 2015-02-23 11:54:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082563"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082563 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082842 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082842)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082563  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082563 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082563 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082563 [["request_id", 969082563]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082842 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082842) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082563 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082563 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082842 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082563  (14.2ms) COMMIT Completed 200 OK in 73ms (Views: 17.7ms | ActiveRecord: 48.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd32cf4c97590933d94b459373b6b3679' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:27', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'format', 'journal', 969082843, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'isbn', 1, '9789810743734', 969082843, '9789810743734')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082843, 'd32cf4c97590933d94b459373b6b3679')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082564  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:27', NULL, 969082564, 'BorrowDirect', 'queued', '2015-02-23 16:54:27')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2579  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082843) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082564) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082564) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`id` = 2579 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082564, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:27', 'Choose your delivery location', 969082564, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2579  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082843 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082564 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (2.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082843 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082564  (24.1ms) COMMIT Completed 200 OK in 275ms (Views: 24.6ms | ActiveRecord: 129.1ms) Started GET "/borrow_direct/BorrowDirect/969082564?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:54:27 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082564"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082564 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2579  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:27', 969082564, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082843 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843) Redirected to http://www.example.com/resolve?umlaut.request_id=969082564&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 54ms (ActiveRecord: 38.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2579  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013675  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082564&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:54:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082564", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:54:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082843 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082564  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 [["request_id", 969082564]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082843 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082564 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (40.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (41.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082843 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082564  (14.6ms) COMMIT Completed 200 OK in 121ms (Views: 61.7ms | ActiveRecord: 49.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 11:54:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b48b2dbacc25194ac41ca4078980335' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:27', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'format', 'journal', 969082844, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'isbn', 1, '0109836413', 969082844, '0109836413')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:54:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082844, '5b48b2dbacc25194ac41ca4078980335')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082565  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:28', NULL, 969082565, 'BorrowDirect', 'queued', '2015-02-23 16:54:28')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2580  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082565 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082844) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082844) ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082565) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082565) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082565 AND `dispatched_services`.`id` = 2580 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082565, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:28', 'This item is not currently available from BorrowDirect', 969082565, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2580  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082565 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082844 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082844) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082565 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082844 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN SQL (1.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082565  (15.0ms) COMMIT Completed 200 OK in 254ms (Views: 20.9ms | ActiveRecord: 117.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76f8ab89f223fc6867a6d2716aec80e8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:28', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:28', 'format', 'journal', 969082845, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:28', 'isbn', 1, '9789810743734', 969082845, '9789810743734')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082845, '76f8ab89f223fc6867a6d2716aec80e8')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082566  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:28', NULL, 969082566, 'BorrowDirect', 'queued', '2015-02-23 16:54:28')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2581  (13.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082845) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845) ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082566) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082566) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`id` = 2581 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082566, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:28', 'Choose your delivery location', 969082566, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2581  (15.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082845 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082566 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082845 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082566  (14.8ms) COMMIT Completed 200 OK in 257ms (Views: 21.3ms | ActiveRecord: 117.6ms) Started GET "/borrow_direct/BorrowDirect/969082566?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:54:28 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082566"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082566 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2581  (14.1ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:28', 969082566, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082845 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845) Redirected to http://www.example.com/resolve?umlaut.request_id=969082566&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 53ms (ActiveRecord: 37.9ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2581  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013680  (13.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969082566&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:54:28 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082566", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:54:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082845 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082566  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 [["request_id", 969082566]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.0ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082845 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082566 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082845 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082566  (15.6ms) COMMIT Completed 200 OK in 122ms (Views: 62.9ms | ActiveRecord: 49.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2362eed299fe3bc055317f2c31b2ee5b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:28', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:28', 'format', 'journal', 969082846, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:28', 'isbn', 1, '9789810743734', 969082846, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082846, '2362eed299fe3bc055317f2c31b2ee5b')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082567  (15.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:28', NULL, 969082567, 'BorrowDirect', 'queued', '2015-02-23 16:54:28')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2582  (14.5ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082567 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082846) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082846) ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082567) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082567) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082567 AND `dispatched_services`.`id` = 2582 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (4.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082567, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:28', 'Choose your delivery location', 969082567, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2582  (15.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082567 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082846 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082846) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082567 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082567 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082846 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082567  (14.6ms) COMMIT Completed 200 OK in 267ms (Views: 22.2ms | ActiveRecord: 121.1ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c04514cd53a91f0cdd802380f6937124' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (2.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:29', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082847, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'isbn', 1, '9789810743734', 969082847, '9789810743734')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082847, 'c04514cd53a91f0cdd802380f6937124')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082568  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082568, 'BorrowDirect', 'queued', '2015-02-23 16:54:29')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2583  (13.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082847) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847) ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082568) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082568) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`id` = 2583 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082568, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 'Choose your delivery location', 969082568, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2583  (17.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082847 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082568 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082847 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082568  (14.4ms) COMMIT Completed 200 OK in 260ms (Views: 21.5ms | ActiveRecord: 119.1ms) Started GET "/borrow_direct/BorrowDirect/969082568" for 127.0.0.1 at 2015-02-23 11:54:29 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082568"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082568 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 969082568, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (17.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082847 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847) Redirected to http://www.example.com/resolve?umlaut.request_id=969082568&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 23.9ms) Started GET "/resolve?umlaut.request_id=969082568&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:54:29 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082568", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:54:29-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082847 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082568  (14.1ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 [["request_id", 969082568]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082847 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082568 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (42.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (42.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082847 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082568  (14.6ms) COMMIT Completed 200 OK in 122ms (Views: 65.1ms | ActiveRecord: 47.4ms)  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '67a925faf9f99e60e9adebc4becba3d0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:29', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082848, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'isbn', 1, '9789810743734', 969082848, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082848, '67a925faf9f99e60e9adebc4becba3d0')  (14.9ms) COMMIT ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082569 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082569, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082569 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082569, 'test_bd', 'successful', '2015-02-23 16:54:29')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2584  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082569 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fcb3ab8cbe05edb30f2301f839ee6ce' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:29', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082849, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'title', 1, 'title', 969082849, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'author', 1, 'au', 969082849, 'au')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082849, '8fcb3ab8cbe05edb30f2301f839ee6ce')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 969082570, '--- {}\n', 'test_holding', 'holding')  (13.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082570, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082570 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082570, 'test_bd', 'successful', '2015-02-23 16:54:29')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2585  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082570 ServiceResponse Load (5.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082570 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24ff06ebff7fe189c6eb397a40609e47' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:29', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082850, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'title', 1, 'title', 969082850, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'author', 1, 'au', 969082850, 'au')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082850, '24ff06ebff7fe189c6eb397a40609e47')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 969082571, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082571 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082571, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082571 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082571, 'test_bd', 'successful', '2015-02-23 16:54:29')  (14.2ms) COMMIT  (2.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2586  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082571 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '749e5e8616613bc365ac26c2d2fcddd1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:29', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082851, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'title', 1, 'title', 969082851, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'author', 1, 'au', 969082851, 'au')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082851, '749e5e8616613bc365ac26c2d2fcddd1')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 969082572, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082572 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082572, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082572 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082572, 'test_bd', 'successful', '2015-02-23 16:54:29')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2587  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082572 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37dc39cb47fda6cdcfff2e71b340a6fe' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:29', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082852, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'title', 1, 'title', 969082852, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'author', 1, 'au', 969082852, 'au')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082852, '37dc39cb47fda6cdcfff2e71b340a6fe')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082573, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (27.0ms) COMMIT ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082573 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082573 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082573, 'test_bd', 'successful', '2015-02-23 16:54:30')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2588  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082573 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dce83fb7b13dba35cd11969e535f1d1f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082853, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '0109836413', 969082853, '0109836413')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082853, 'dce83fb7b13dba35cd11969e535f1d1f')  (17.4ms) COMMIT ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082574 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082574, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 'This item is not currently available from BorrowDirect', 969082574, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082574 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082574, 'test_bd', 'successful', '2015-02-23 16:54:30')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2589  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082574 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f07927fdabcdfb375df27f37c11ecb6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082854, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '9789810743734', 969082854, '9789810743734')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082854, '6f07927fdabcdfb375df27f37c11ecb6')  (14.4ms) COMMIT ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082575 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082575, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 'Choose your delivery location', 969082575, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082575 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082575, 'test_bd', 'successful', '2015-02-23 16:54:30')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2590  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082575 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf643e23277366c473c85c06afdce4b2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082855, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '9789810743734', 969082855, '9789810743734')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082855, 'cf643e23277366c473c85c06afdce4b2')  (14.8ms) COMMIT ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082576 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082576, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082576 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082576, 'test_bd', 'failed_temporary', '2015-02-23 16:54:30')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2591  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082576 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5436fe95f38b4d35eca7625557db69b8' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082856, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '000000000', 969082856, '000000000')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082856, '5436fe95f38b4d35eca7625557db69b8')  (15.7ms) COMMIT ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082577 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082577, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 'This item is not currently available from BorrowDirect', 969082577, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082577 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082577, 'test_bd', 'successful', '2015-02-23 16:54:30')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2592  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082577 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b013b9b560c2f8149b519e8573a0e8a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082857, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '121212', 969082857, '121212')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082857, '2b013b9b560c2f8149b519e8573a0e8a')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082578"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082578 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082578 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082578  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082578, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082578\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082857 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082857) Redirected to http://test.host/resolve?umlaut.request_id=969082578&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.2ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ee22bea8dd93b822ab319f1ee9ac9b8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082858, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '121212', 969082858, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (6.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082858, '1ee22bea8dd93b822ab319f1ee9ac9b8')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082579, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082579"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082579 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082579 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013702  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082579, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013702\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082858 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082858) Redirected to http://test.host/resolve?umlaut.request_id=969082579&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.6ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e967d86af76c1564b72aa864198a9192' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082859, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '121212', 969082859, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082859, 'e967d86af76c1564b72aa864198a9192')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082580, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082580"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082580 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082580 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082580 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082580, 'BorrowDirect', 'in_progress', '2015-02-23 16:54:30')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2593  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082580, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082859 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082859) Redirected to http://test.host/resolve?umlaut.request_id=969082580&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 74ms (ActiveRecord: 60.8ms) DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082580 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082580 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2593 ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082580 ORDER BY id ASC  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013705  (14.1ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a04ba68720f5a0fcebf27cbea7dd36de' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:31', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'format', 'journal', 969082860, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'isbn', 1, '121212', 969082860, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082860, 'a04ba68720f5a0fcebf27cbea7dd36de')  (22.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082581, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082581"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082581 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082581 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082581 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:31', NULL, 969082581, 'BorrowDirect', 'in_progress', '2015-02-23 16:54:31')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:31' WHERE `dispatched_services`.`id` = 2594  (20.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082581, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082860 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082860) Redirected to http://example.org Completed 302 Found in 81ms (ActiveRecord: 68.1ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e5e710d54644d9e8ea7ab6f7c65f87b9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:31', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'format', 'journal', 969082861, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'isbn', 1, '121212', 969082861, '121212')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082861, 'e5e710d54644d9e8ea7ab6f7c65f87b9')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082582, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082582"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082582 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082582 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082582 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:31', NULL, 969082582, 'BorrowDirect', 'in_progress', '2015-02-23 16:54:31')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:31' WHERE `dispatched_services`.`id` = 2595  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082582, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082861 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082861) UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Redirected to http://test.host/resolve?umlaut.request_id=969082582&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 74ms (ActiveRecord: 60.4ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082582 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN Request Load (3.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45768974b55fe3964d88dfdc23c01303' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:31', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'format', 'journal', 969082862, 'journal') SQL (7.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:54:31' WHERE `dispatched_services`.`id` = 2595 SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'isbn', 1, '121212', 969082862, '121212')  (15.0ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013709  (18.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082862, '45768974b55fe3964d88dfdc23c01303')  (14.5ms) COMMIT  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082583"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082583 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082583 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082583, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082862 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082862) Redirected to http://test.host/resolve?umlaut.request_id=969082583&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.7ms) ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 63ms (Views: 43.1ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 53ms (Views: 0.4ms | ActiveRecord: 6.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '738945daf9ae992e27daa08584fdafbe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:06', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:06', 'format', 'journal', 969082863, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:06', 'isbn', 1, '121212', 969082863, '121212')  (25.9ms) COMMIT  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082863, '738945daf9ae992e27daa08584fdafbe')  (15.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082584"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082584 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082584 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082584  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082584, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082584\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082863 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082863) Redirected to http://test.host/resolve?umlaut.request_id=969082584&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 90ms (ActiveRecord: 32.2ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fbde56fa01ec420b4497acf56f5dfd6e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082864, 'journal') SQL (8.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082864, '121212')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082864, 'fbde56fa01ec420b4497acf56f5dfd6e')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082585, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082585"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082585 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082585 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013712  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082585, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013712\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082864 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082864) Redirected to http://test.host/resolve?umlaut.request_id=969082585&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.9ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6cc8748c04b99be2ae0f7442af6fef8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082865, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082865, '121212')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082865, 'd6cc8748c04b99be2ae0f7442af6fef8')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082586, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082586"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082586 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082586 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082586 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:07', NULL, 969082586, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:07')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2596  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082586, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082865 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082865) Redirected to http://test.host/resolve?umlaut.request_id=969082586&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 106ms (ActiveRecord: 86.0ms) DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082586 ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082586 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082586 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2596  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013715  (14.0ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92d41908e7d51eb300871248ff25951f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082866, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082866, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082866, '92d41908e7d51eb300871248ff25951f')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082587, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082587"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082587 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082587 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082587 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:07', NULL, 969082587, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:07')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2597  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082587, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082866 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082866) Redirected to http://example.org Completed 302 Found in 112ms (ActiveRecord: 64.4ms) ---------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_for_validation_error ---------------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc3fe03476bdf7d3397dc3d013ef0b2f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082867, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082867, '121212')  (14.2ms) COMMIT  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082867, 'fc3fe03476bdf7d3397dc3d013ef0b2f')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082588, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969082588"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082588 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082588 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082588, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082867 LIMIT 1 ReferentValue Load (3.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082867) Redirected to http://test.host/resolve?umlaut.request_id=969082588&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 30.3ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '604ff841e25c642efc9f160c7552aa50' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082868, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082868, '121212')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082868, '604ff841e25c642efc9f160c7552aa50')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082589, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082589"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082589 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082589 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082589 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:07', NULL, 969082589, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:07')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2598  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082589, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082868 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082868) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 75ms (Views: 0.3ms | ActiveRecord: 62.2ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85ff6476d2e26b6877d4a29e041c88ca' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082589 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN  (2.5ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212') SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2598 SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082869, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082869, '121212')  (15.8ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013721  (18.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082869, '85ff6476d2e26b6877d4a29e041c88ca')  (15.7ms) COMMIT  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082590"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082590 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082590 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082590, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082869 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082869) Redirected to http://test.host/resolve?umlaut.request_id=969082590&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.8ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc414788c398816e58e4d569a459a34a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082870, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '9789810743734', 969082870, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082870, 'bc414788c398816e58e4d569a459a34a')  (14.6ms) COMMIT ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082591 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082591, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:08', 'Choose your delivery location', 969082591, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082591 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082591, 'test_bd', 'successful', '2015-02-23 18:13:08')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2599  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082591 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f9f06632183d950f30e1c7197a7a495' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:08', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'format', 'journal', 969082871, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'isbn', 1, '000000000', 969082871, '000000000')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:13:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082871, '8f9f06632183d950f30e1c7197a7a495')  (14.6ms) COMMIT ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082592 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082592, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:08', 'This item is not currently available from BorrowDirect', 969082592, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082592 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082592, 'test_bd', 'successful', '2015-02-23 18:13:08')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2600  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082592 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e81da0113c6438d0040239d5e01318d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:08', '0109836413') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'format', 'journal', 969082872, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'isbn', 1, '0109836413', 969082872, '0109836413')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:13:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082872, '6e81da0113c6438d0040239d5e01318d')  (13.9ms) COMMIT ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082593 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082593, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:08', 'This item is not currently available from BorrowDirect', 969082593, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082593 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082593, 'test_bd', 'successful', '2015-02-23 18:13:08')  (15.5ms) COMMIT  (1.2ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2601  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082593 Request Load (2.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a57dd98e26e45935581863f3a5860488' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:08', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'format', 'journal', 969082873, 'journal') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'isbn', 1, '9789810743734', 969082873, '9789810743734')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082873, 'a57dd98e26e45935581863f3a5860488')  (14.6ms) COMMIT ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082594 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082594, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082594 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082594, 'test_bd', 'failed_temporary', '2015-02-23 18:13:08')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2602  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082594 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11dba069c28fbdd52fbd02704daf4a26' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:08', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'format', 'journal', 969082874, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'isbn', 1, '9789810743734', 969082874, '9789810743734')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082874, '11dba069c28fbdd52fbd02704daf4a26')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082595  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082595, 'test_bd', 'queued', '2015-02-23 18:13:08')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2603  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082595 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082874) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082874) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082595) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082595) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082595 AND `dispatched_services`.`id` = 2603 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082595, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2603  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082595 LIMIT 1 DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082874 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082874) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (34.2ms) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082595 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082874 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082595  (14.3ms) COMMIT Completed 200 OK in 412ms (Views: 158.7ms | ActiveRecord: 116.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:13:09 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbad9412e48035f79dcea729b6f4dca3' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:09', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'format', 'book', 969082875, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'genre', 1, 'book', 969082875, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'author', 1, 'smith', 969082875, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'title', 1, 'some book', 969082875, 'Some Book')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:13:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082875, 'cbad9412e48035f79dcea729b6f4dca3')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082596  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596  (0.8ms) BEGIN SQL (6.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:09', NULL, 969082596, 'BorrowDirect', 'queued', '2015-02-23 18:13:09')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2604  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082596 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082875) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082875) ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082596) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082596) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082596 AND `dispatched_services`.`id` = 2604 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082596, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2604  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082596 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.7ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082875 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082875) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082596 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082875 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082596  (14.5ms) COMMIT Completed 200 OK in 243ms (Views: 19.9ms | ActiveRecord: 126.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:13:09 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50e373e76d2d0b5924eec376c3d00220' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.4ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:09', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'format', 'journal', 969082876, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'genre', 1, 'article', 969082876, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'title', 1, 'foo', 969082876, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'author', 1, 'bar', 969082876, 'bar')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:13:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082876, '50e373e76d2d0b5924eec376c3d00220')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082597  (14.2ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:09', NULL, 969082597, 'BorrowDirect', 'queued', '2015-02-23 18:13:09')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2605  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082597 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082876) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082876) ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082597) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082597) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082597 AND `dispatched_services`.`id` = 2605 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2605  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082597 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082876 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082876) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082597 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082876 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082597  (15.6ms) COMMIT Completed 200 OK in 214ms (Views: 17.3ms | ActiveRecord: 122.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa22f11cf7e1a0cdfffd2bb042bd49fb' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:09', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'format', 'book', 969082877, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'genre', 1, 'book', 969082877, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'title', 1, 'foo', 969082877, 'foo')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:13:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082877, 'fa22f11cf7e1a0cdfffd2bb042bd49fb')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082598 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:09', NULL, 969082598, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:13:09')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2606  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082598" for 127.0.0.1 at 2015-02-23 13:13:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082598"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082598 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082877 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082877)  (0.7ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082598  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082598 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082598 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082598 [["request_id", 969082598]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082877 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082877) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082598 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082598 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082877 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (42.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082598  (14.2ms) COMMIT Completed 200 OK in 115ms (Views: 58.2ms | ActiveRecord: 49.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '819236f54d89c0c6f2d3fe3269fbd1e9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:09', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'format', 'journal', 969082878, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'isbn', 1, '9789810743734', 969082878, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082878, '819236f54d89c0c6f2d3fe3269fbd1e9')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082599  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:09', NULL, 969082599, 'BorrowDirect', 'queued', '2015-02-23 18:13:09')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2607  (14.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082878) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082599) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082599) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`id` = 2607 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082599, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:09', 'Choose your delivery location', 969082599, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2607  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082878 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082599 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082878 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082599  (14.9ms) COMMIT Completed 200 OK in 259ms (Views: 24.6ms | ActiveRecord: 116.8ms) Started GET "/borrow_direct/BorrowDirect/969082599?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:13:10 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082599"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082599 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2607  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:10', 969082599, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082878 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878) Redirected to http://www.example.com/resolve?umlaut.request_id=969082599&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 52ms (ActiveRecord: 38.2ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2607  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013734  (15.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082599&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082599", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082878 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082599  (16.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 [["request_id", 969082599]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082878 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082599 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082878 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082599  (15.3ms) COMMIT Completed 200 OK in 81ms (Views: 21.5ms | ActiveRecord: 50.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:13:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b16b854a9a5e0d10fc81a7d19c42d3df' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:10', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'format', 'journal', 969082879, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'isbn', 1, '0109836413', 969082879, '0109836413')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:13:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082879, 'b16b854a9a5e0d10fc81a7d19c42d3df')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082600  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:10', NULL, 969082600, 'BorrowDirect', 'queued', '2015-02-23 18:13:10')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2608  (13.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082600 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082879) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082879) ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082600) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082600) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082600 AND `dispatched_services`.`id` = 2608 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082600, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:10', 'This item is not currently available from BorrowDirect', 969082600, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (16.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2608  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082600 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082879 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082879) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082600 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082879 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082600  (14.8ms) COMMIT Completed 200 OK in 255ms (Views: 20.4ms | ActiveRecord: 116.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e95a14a8ea47b9e74f486f6f6153226' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:10', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'format', 'journal', 969082880, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'isbn', 1, '9789810743734', 969082880, '9789810743734')  (16.7ms) COMMIT  (0.8ms) BEGIN SQL (7.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082880, '2e95a14a8ea47b9e74f486f6f6153226')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082601  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:10', NULL, 969082601, 'BorrowDirect', 'queued', '2015-02-23 18:13:10')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2609  (14.6ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082880) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082601) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082601) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`id` = 2609 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082601, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:10', 'Choose your delivery location', 969082601, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2609  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082880 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082601 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082880 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082601  (15.0ms) COMMIT Completed 200 OK in 266ms (Views: 21.3ms | ActiveRecord: 128.0ms) Started GET "/borrow_direct/BorrowDirect/969082601?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:13:10 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082601"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082601 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2609  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:10', 969082601, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082880 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880) Redirected to http://www.example.com/resolve?umlaut.request_id=969082601&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.2ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2609  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013739  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969082601&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082601", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082880 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082601  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 [["request_id", 969082601]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082880 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082601 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082880 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082601  (14.4ms) COMMIT Completed 200 OK in 76ms (Views: 19.4ms | ActiveRecord: 47.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd82144a457994725766b4842224646d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:10', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'format', 'journal', 969082881, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'isbn', 1, '9789810743734', 969082881, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082881, 'cd82144a457994725766b4842224646d')  (15.5ms) COMMIT  (1.0ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082602  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:11', NULL, 969082602, 'BorrowDirect', 'queued', '2015-02-23 18:13:11')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2610  (14.3ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082602 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082881) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082881) ServiceResponse Load (6.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082602) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082602) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082602 AND `dispatched_services`.`id` = 2610 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082602, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 'Choose your delivery location', 969082602, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2610  (16.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082602 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082881 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082881) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082602 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082602 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082881 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082602  (14.9ms) COMMIT Completed 200 OK in 261ms (Views: 21.7ms | ActiveRecord: 119.8ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d5e5f6690dc1fbd7f0208e8fcfbfa0c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:11', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'format', 'journal', 969082882, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'isbn', 1, '9789810743734', 969082882, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082882, '4d5e5f6690dc1fbd7f0208e8fcfbfa0c')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082603  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:11', NULL, 969082603, 'BorrowDirect', 'queued', '2015-02-23 18:13:11')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2611  (14.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082882) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882) ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082603) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082603) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`id` = 2611 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082603, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 'Choose your delivery location', 969082603, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2611  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082882 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082603 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082882 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082603  (14.4ms) COMMIT Completed 200 OK in 263ms (Views: 22.3ms | ActiveRecord: 122.1ms) Started GET "/borrow_direct/BorrowDirect/969082603" for 127.0.0.1 at 2015-02-23 13:13:11 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082603"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082603 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 969082603, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status') BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono%20-%20for%20piano%2C%201991&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'  (14.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082882 LIMIT 1 DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082587 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882) Redirected to http://www.example.com/resolve?umlaut.request_id=969082603&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.4ms) Started GET "/resolve?umlaut.request_id=969082603&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:11 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082603", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}  (4.9ms) BEGIN Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1 SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono%20-%20for%20piano%2C%201991&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2597 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082882 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082603  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013717  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 [["request_id", 969082603]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082882 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)  (15.6ms) COMMIT ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082603 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082882 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082603  (14.5ms) COMMIT Completed 200 OK in 83ms (Views: 25.0ms | ActiveRecord: 49.8ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '081d1a7eb913a35b8961c523023c64e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:11', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'format', 'journal', 969082883, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'isbn', 1, '9789810743734', 969082883, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082883, '081d1a7eb913a35b8961c523023c64e4')  (14.1ms) COMMIT ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082604 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082604, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082604 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:11', NULL, 969082604, 'test_bd', 'successful', '2015-02-23 18:13:11')  (17.3ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2612  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082604 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d003494b851a6a0fb7497ae63632d17' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:11', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'format', 'journal', 969082884, 'journal') SQL (6.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'title', 1, 'title', 969082884, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'author', 1, 'au', 969082884, 'au')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082884, '6d003494b851a6a0fb7497ae63632d17')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 969082605, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082605 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082605 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:11', NULL, 969082605, 'test_bd', 'successful', '2015-02-23 18:13:11')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2613  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082605 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '613b899c8a740b3d4169e7fdfbbc840a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:11', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'format', 'journal', 969082885, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'title', 1, 'title', 969082885, 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'author', 1, 'au', 969082885, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082885, '613b899c8a740b3d4169e7fdfbbc840a')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 969082606, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (6.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082606 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082606, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082606 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082606, 'test_bd', 'successful', '2015-02-23 18:13:12')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2614  (19.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082606 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f51694b3c8fc25b403a8e9f2fc951deb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:12', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'journal', 969082886, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'title', 969082886, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'author', 1, 'au', 969082886, 'au')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082886, 'f51694b3c8fc25b403a8e9f2fc951deb')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:12', 969082607, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.0ms) COMMIT ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082607 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082607, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (18.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082607 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082607, 'test_bd', 'successful', '2015-02-23 18:13:12')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2615  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082607 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f155b7cf148a01e348ca0b387479d8c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:12', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'journal', 969082887, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'title', 969082887, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'author', 1, 'au', 969082887, 'au')  (18.2ms) COMMIT  (0.6ms) BEGIN SQL (2.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082887, '0f155b7cf148a01e348ca0b387479d8c')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:12', 969082608, '--- {}\n', 'test_holding', 'holding')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082608, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082608 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082608, 'test_bd', 'successful', '2015-02-23 18:13:12')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2616  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082608 ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082608 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '55d3d8835948a27353c58d831447b87c' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:12', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'journal', 969082888, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082888, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'aulast', 1, 'grimes', 969082888, 'Grimes')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082888, '55d3d8835948a27353c58d831447b87c')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082609, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.0ms) COMMIT ServiceResponse Load (6.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082609 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f44bafa56376eb960a11e285e8ec88ee' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:13:12', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'book', 969082889, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'auinit', 1, 'eh', 969082889, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'aulast', 1, 'lenneberg', 969082889, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'biological foundations of language', 969082889, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'genre', 1, 'book', 969082889, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'date', 1, '1967', 969082889, '1967')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082889, 'info:sid/google', 'f44bafa56376eb960a11e285e8ec88ee')  (14.5ms) COMMIT ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082610 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082610, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082610 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082610, 'test_bd', 'successful', '2015-02-23 18:13:12')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2617  (14.0ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082610 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd529174c859286b7f3ae2678053dcbf' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:13:12', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'journal', 969082890, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'auinit', 1, 'rd', 969082890, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'aulast', 1, 'kaplan', 969082890, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'atitle', 1, 'the coming anarchy', 969082890, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'the atlantic monthly', 969082890, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'volume', 1, '273', 969082890, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'issue', 1, '2', 969082890, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'date', 1, '1994', 969082890, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'spage', 1, '44', 969082890, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'issn', 1, '1072-7825', 969082890, '1072-7825')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (7.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082890, 'info:sid/google', 'cd529174c859286b7f3ae2678053dcbf')  (15.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082611 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082611, 'test_bd', 'successful', '2015-02-23 18:13:12')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2618  (14.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082611 ServiceResponse Exists (2.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082611 LIMIT 1  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17728fe270310f81b385399195e72dbf' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082891, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'title', 969082891, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'author', 1, 'au', 969082891, 'au')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082891, '17728fe270310f81b385399195e72dbf')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:44', 969082612, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.4ms) COMMIT ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082612 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082612, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082612 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082612, 'test_bd', 'successful', '2015-02-23 18:13:44')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2619  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082612 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '182dec44032022887b914ca401830f60' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082892, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'title', 969082892, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'author', 1, 'au', 969082892, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082892, '182dec44032022887b914ca401830f60')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:44', 969082613, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.7ms) COMMIT ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082613 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082613 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082613, 'test_bd', 'successful', '2015-02-23 18:13:44')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2620  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082613 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17251e8668e15a060f4227666dae8507' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082893, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'title', 969082893, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'author', 1, 'au', 969082893, 'au')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082893, '17251e8668e15a060f4227666dae8507')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:44', 969082614, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.0ms) COMMIT ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082614 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082614, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082614 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082614, 'test_bd', 'successful', '2015-02-23 18:13:44')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2621  (15.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082614 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '934267c5bbd4d9aabdfeea92233e2fe9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082894, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082894, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'aulast', 1, 'grimes', 969082894, 'Grimes')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082894, '934267c5bbd4d9aabdfeea92233e2fe9')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082615, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.3ms) COMMIT ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082615 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aa25ff1a2989eb8430a931c0068afe05' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:13:44', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082895, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'auinit', 1, 'rd', 969082895, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'aulast', 1, 'kaplan', 969082895, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'atitle', 1, 'the coming anarchy', 969082895, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'the atlantic monthly', 969082895, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'volume', 1, '273', 969082895, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'issue', 1, '2', 969082895, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'date', 1, '1994', 969082895, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'spage', 1, '44', 969082895, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'issn', 1, '1072-7825', 969082895, '1072-7825')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082895, 'info:sid/google', 'aa25ff1a2989eb8430a931c0068afe05')  (15.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082616 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082616, 'test_bd', 'successful', '2015-02-23 18:13:44')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2622  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082616 ServiceResponse Exists (2.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082616 LIMIT 1 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1839da692d9e1f62ba3b45f303cae987' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:13:44', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'book', 969082896, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'auinit', 1, 'eh', 969082896, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'aulast', 1, 'lenneberg', 969082896, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'biological foundations of language', 969082896, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'genre', 1, 'book', 969082896, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'date', 1, '1967', 969082896, '1967')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082896, 'info:sid/google', '1839da692d9e1f62ba3b45f303cae987')  (14.1ms) COMMIT ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082617 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082617, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082617 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082617, 'test_bd', 'successful', '2015-02-23 18:13:44')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2623  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082617 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e894b688af044a63768d0aa672cf48ac' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082897, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'title', 969082897, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'author', 1, 'au', 969082897, 'au')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082897, 'e894b688af044a63768d0aa672cf48ac')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:44', 969082618, '--- {}\n', 'test_holding', 'holding')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082618, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082618 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082618, 'test_bd', 'successful', '2015-02-23 18:13:44')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2624  (15.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082618 ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082618 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb1b38f71ceea585af4827c0f89522fe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (5.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082898, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082898, '121212')  (15.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082898, 'cb1b38f71ceea585af4827c0f89522fe')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082619"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082619 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082619 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082619  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082619, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082619\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082898 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082898) Redirected to http://test.host/resolve?umlaut.request_id=969082619&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 41ms (ActiveRecord: 28.3ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c80d07fb56b6d15a551d3fafb9b19cf' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082899, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082899, '121212')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082899, '5c80d07fb56b6d15a551d3fafb9b19cf')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082620, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082620"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082620 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082620 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013765  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082620, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013765\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082899 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082899) Redirected to http://test.host/resolve?umlaut.request_id=969082620&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 67ms (ActiveRecord: 27.9ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c0b5d6c6aa7ed34a99ab17e39e18a8be' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082900, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082900, '121212')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082900, 'c0b5d6c6aa7ed34a99ab17e39e18a8be')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082621, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082621"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082621 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082621 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082621 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:45', NULL, 969082621, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:45')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2625  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082621, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082900 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082900) Redirected to http://test.host/resolve?umlaut.request_id=969082621&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 70ms (ActiveRecord: 60.1ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082621 ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082621 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082621 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2625  (21.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013768  (14.0ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e5af722d39af85e55ec58f177ac8f09a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082901, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082901, '121212')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (6.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082901, 'e5af722d39af85e55ec58f177ac8f09a')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (4.7ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082622, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082622"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082622 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082622 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082622 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:45', NULL, 969082622, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:45')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2626  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082622, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082901 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082901) Redirected to http://example.org Completed 302 Found in 74ms (ActiveRecord: 64.1ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6093339ac8905c178ca26d42210b2d7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082902, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082902, '121212')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082902, 'e6093339ac8905c178ca26d42210b2d7')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082623, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082623"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082623 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082623 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082623 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:45', NULL, 969082623, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:45')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2627  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082623, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082902 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082902) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 71ms (Views: 0.3ms | ActiveRecord: 60.6ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '118cef6eaf16a1415f7467d62b512e23' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082623 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN  (2.4ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212') SQL (2.0ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2627 SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082903, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082903, '121212')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013772  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082903, '118cef6eaf16a1415f7467d62b512e23')  (16.3ms) COMMIT  (15.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082624"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082624 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082624 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082624, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082903 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082903) Redirected to http://test.host/resolve?umlaut.request_id=969082624&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.4ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96ba296a889c469bb17a084f679992e3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082904, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '9789810743734', 969082904, '9789810743734')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082904, '96ba296a889c469bb17a084f679992e3')  (14.0ms) COMMIT ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082625 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082625, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082625 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:45', NULL, 969082625, 'test_bd', 'failed_temporary', '2015-02-23 18:13:45')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2628  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082625 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37b1cb8f45e6be74c8598febb1c04c91' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082905, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '000000000', 969082905, '000000000')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:13:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082905, '37b1cb8f45e6be74c8598febb1c04c91')  (14.6ms) COMMIT ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082626 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082626, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:46', 'This item is not currently available from BorrowDirect', 969082626, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082626 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082626, 'test_bd', 'successful', '2015-02-23 18:13:46')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2629  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082626 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c32c43508d98faa7685c6a0bc0f92b4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082906, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '0109836413', 969082906, '0109836413')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:13:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082906, '7c32c43508d98faa7685c6a0bc0f92b4')  (14.2ms) COMMIT ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082627 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082627, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:46', 'This item is not currently available from BorrowDirect', 969082627, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082627 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082627, 'test_bd', 'successful', '2015-02-23 18:13:46')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2630  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082627 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '678b77e2fcf97d8287ed5558ca26af53' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082907, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '9789810743734', 969082907, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082907, '678b77e2fcf97d8287ed5558ca26af53')  (14.4ms) COMMIT ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082628 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082628, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:46', 'Choose your delivery location', 969082628, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (61.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082628 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082628, 'test_bd', 'successful', '2015-02-23 18:13:46')  (54.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2631  (48.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082628  (1.0ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.9ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c298aa255c92eea034b90ce3634d9456' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082908, 'journal') SQL (7.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '9789810743734', 969082908, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082908, 'c298aa255c92eea034b90ce3634d9456')  (14.3ms) COMMIT ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082629 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082629, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082629 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082629, 'test_bd', 'successful', '2015-02-23 18:13:46')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2632  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082629 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:46 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ed13610850d702dc0542d44a895f224' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082909, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '9789810743734', 969082909, '9789810743734')  (23.4ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082909, '1ed13610850d702dc0542d44a895f224')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082630  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082630  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082630, 'test_bd', 'queued', '2015-02-23 18:13:46')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2633  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082630 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082909) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082909) ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082630) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082630) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082630 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082630 AND `dispatched_services`.`id` = 2633 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082630, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT Umlaut: Threaded service raised exception. Service: test_bd, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/available Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' Completed 500 Internal Server Error in 245ms ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:13:46 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53b27ca481af2c17f35f593d3332b6a3' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:46', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'book', 969082910, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'genre', 1, 'book', 969082910, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'author', 1, 'smith', 969082910, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'title', 1, 'some book', 969082910, 'Some Book')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:13:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082910, '53b27ca481af2c17f35f593d3332b6a3')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082631  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:47', NULL, 969082631, 'BorrowDirect', 'queued', '2015-02-23 18:13:47')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2634  (14.4ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082631 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082910) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082910) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082631) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082631) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082631 AND `dispatched_services`.`id` = 2634 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082631, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2634  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082631 LIMIT 1 DispatchedService Load (7.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082910 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082910) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.6ms) ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082631 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"XRj0B1RjpA4eRBKaQB6RPJA_60k","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082910 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (50.7ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082622 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)  (1.6ms) BEGIN Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.9ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082631 SQL (7.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"XRj0B1RjpA4eRBKaQB6RPJA_60k\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2626  (15.9ms) COMMIT Completed 200 OK in 357ms (Views: 137.3ms | ActiveRecord: 125.6ms)  (26.2ms) COMMIT -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:13:47 -0500 Processing by ResolveController#index as HTML  (2.1ms) BEGIN Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} SQL (1.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013770 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c278ddcca938bae3f4bd16f10f41e9a' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:47', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'format', 'journal', 969082911, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'genre', 1, 'article', 969082911, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'title', 1, 'foo', 969082911, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'author', 1, 'bar', 969082911, 'bar')  (14.7ms) COMMIT  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:13:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082911, '8c278ddcca938bae3f4bd16f10f41e9a')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082632  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:47', NULL, 969082632, 'BorrowDirect', 'queued', '2015-02-23 18:13:47')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2635  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082632 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082911) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082911) ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082632) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082632) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082632 AND `dispatched_services`.`id` = 2635 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2635  (14.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082632 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082911 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082911) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082632 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082911 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082632  (14.3ms) COMMIT Completed 200 OK in 209ms (Views: 17.5ms | ActiveRecord: 118.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '277ced49c7be7993080c325d961e7a9c' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:47', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'format', 'book', 969082912, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'genre', 1, 'book', 969082912, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'title', 1, 'foo', 969082912, 'foo')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:13:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082912, '277ced49c7be7993080c325d961e7a9c')  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082633 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:47', NULL, 969082633, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:13:47')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2636  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969082633" for 127.0.0.1 at 2015-02-23 13:13:47 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082633"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082633 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082912 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082912)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082633  (14.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082633 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082633 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082633 [["request_id", 969082633]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082912 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082912) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082633 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082633 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082912 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082633  (14.6ms) COMMIT Completed 200 OK in 80ms (Views: 19.1ms | ActiveRecord: 53.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:47 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '03261dfe4ea15fe5f4474e70ff9a51c4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:47', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'format', 'journal', 969082913, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'isbn', 1, '9789810743734', 969082913, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082913, '03261dfe4ea15fe5f4474e70ff9a51c4')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082634  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:47', NULL, 969082634, 'BorrowDirect', 'queued', '2015-02-23 18:13:47')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2637  (15.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082913) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913) ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082634) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082634) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`id` = 2637 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082634, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:47', 'Choose your delivery location', 969082634, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2637  (16.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082913 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082634 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082913 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082634  (14.7ms) COMMIT Completed 200 OK in 264ms (Views: 24.0ms | ActiveRecord: 119.3ms) Started GET "/borrow_direct/BorrowDirect/969082634?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:13:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082634"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082634 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2637  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:48', 969082634, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082913 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913) Redirected to http://www.example.com/resolve?umlaut.request_id=969082634&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 38.9ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2637  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013786  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969082634&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082634", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082913 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082634  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 [["request_id", 969082634]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082913 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082634 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082913 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082634  (14.7ms) COMMIT Completed 200 OK in 79ms (Views: 20.2ms | ActiveRecord: 50.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:13:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f59ab4599583da92a825132ec75e6a4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:48', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:48', 'format', 'journal', 969082914, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:48', 'isbn', 1, '0109836413', 969082914, '0109836413')  (16.0ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:13:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082914, '5f59ab4599583da92a825132ec75e6a4')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082635  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635  (0.7ms) BEGIN SQL (6.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:48', NULL, 969082635, 'BorrowDirect', 'queued', '2015-02-23 18:13:48')  (13.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2638  (15.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082635 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082914) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082914) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082635) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082635) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082635 AND `dispatched_services`.`id` = 2638 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082635, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:48', 'This item is not currently available from BorrowDirect', 969082635, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2638  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082635 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082914 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082914) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082635 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082914 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082635  (14.5ms) COMMIT Completed 200 OK in 307ms (Views: 20.3ms | ActiveRecord: 125.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f52b3c1eaff96205f805d84c84ff50e2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:48', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:48', 'format', 'journal', 969082915, 'journal') SQL (8.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:48', 'isbn', 1, '9789810743734', 969082915, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082915, 'f52b3c1eaff96205f805d84c84ff50e2')  (16.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082636  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:48', NULL, 969082636, 'BorrowDirect', 'queued', '2015-02-23 18:13:48')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2639  (14.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082915) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082636) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082636) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`id` = 2639 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082636, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:48', 'Choose your delivery location', 969082636, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2639  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082915 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082636 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082915 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082636  (14.6ms) COMMIT Completed 200 OK in 267ms (Views: 21.1ms | ActiveRecord: 127.2ms) Started GET "/borrow_direct/BorrowDirect/969082636?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:13:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082636"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082636 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2639  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:48', 969082636, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.3ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082915 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915) Redirected to http://www.example.com/resolve?umlaut.request_id=969082636&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 39.7ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2639  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013791  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082636&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082636", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082915 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082636  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 [["request_id", 969082636]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082915 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082636 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082915 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082636  (14.3ms) COMMIT Completed 200 OK in 75ms (Views: 17.8ms | ActiveRecord: 48.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43a0e326c1909bafcc8ee59e1c484dfc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:49', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:49', 'format', 'journal', 969082916, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:49', 'isbn', 1, '9789810743734', 969082916, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082916, '43a0e326c1909bafcc8ee59e1c484dfc')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082637  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:49', NULL, 969082637, 'BorrowDirect', 'queued', '2015-02-23 18:13:49')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:49' WHERE `dispatched_services`.`id` = 2640  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082637 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082916) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082916) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082637) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082637) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082637 AND `dispatched_services`.`id` = 2640 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082637, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:49', 'Choose your delivery location', 969082637, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:49' WHERE `dispatched_services`.`id` = 2640  (14.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082637 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082916 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082916) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082637 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082637 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082916 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082637  (14.4ms) COMMIT Completed 200 OK in 300ms (Views: 22.0ms | ActiveRecord: 118.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fdfd2e40ae57a1024c0abd77eedec692' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:49', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:49', 'format', 'journal', 969082917, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:49', 'isbn', 1, '9789810743734', 969082917, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082917, 'fdfd2e40ae57a1024c0abd77eedec692')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082638  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:49', NULL, 969082638, 'BorrowDirect', 'queued', '2015-02-23 18:13:49')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:49' WHERE `dispatched_services`.`id` = 2641  (16.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082917) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917) ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082638) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082638) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`id` = 2641 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082638, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:49', 'Choose your delivery location', 969082638, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:49' WHERE `dispatched_services`.`id` = 2641  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082917 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082638 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082917 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082638  (15.2ms) COMMIT Completed 200 OK in 267ms (Views: 22.5ms | ActiveRecord: 120.4ms) Started GET "/borrow_direct/BorrowDirect/969082638" for 127.0.0.1 at 2015-02-23 13:13:49 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082638"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082638 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:49', 969082638, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082917 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917) Redirected to http://www.example.com/resolve?umlaut.request_id=969082638&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.9ms) Started GET "/resolve?umlaut.request_id=969082638&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082638", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082917 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917)  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082638  (18.6ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 [["request_id", 969082638]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082917 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082638 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082917 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082638  (14.4ms) COMMIT Completed 200 OK in 83ms (Views: 20.8ms | ActiveRecord: 53.6ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 50ms (Views: 39.9ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 35ms (Views: 0.4ms | ActiveRecord: 6.5ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6432522b92c0976bddfee8483df28a6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082918, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082918, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082918, 'b6432522b92c0976bddfee8483df28a6')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082639"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082639 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082639 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082639  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082639, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082639\n', 'BorrowDirect', 'bd_request_status')  (15.4ms) COMMIT Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082918 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082918) Redirected to http://test.host/resolve?umlaut.request_id=969082639&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 91ms (ActiveRecord: 35.2ms) Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '705907355c1c415d244ae4a96d3d9103' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082919, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082919, '121212')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082919, '705907355c1c415d244ae4a96d3d9103')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082640, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082640"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082640 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082640 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013798  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082640, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013798\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082919 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082919) Redirected to http://test.host/resolve?umlaut.request_id=969082640&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.9ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfa26a99802cd96f1d94187d4a9159d2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082920, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082920, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082920, 'dfa26a99802cd96f1d94187d4a9159d2')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082641, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082641"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082641 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082641 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082641 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:10', NULL, 969082641, 'BorrowDirect', 'in_progress', '2015-02-23 18:14:10')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2642  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082641, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082920 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082920) Redirected to http://test.host/resolve?umlaut.request_id=969082641&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 86ms (ActiveRecord: 66.9ms) DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082641 ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082641 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082641 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2642  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013801  (14.6ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f050e4fa93cb10b8bcdc102fd7b14323' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082921, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082921, '121212')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082921, 'f050e4fa93cb10b8bcdc102fd7b14323')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082642, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082642"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082642 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082642 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082642 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:10', NULL, 969082642, 'BorrowDirect', 'in_progress', '2015-02-23 18:14:10')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2643  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082642, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082921 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082921) Redirected to http://example.org Completed 302 Found in 76ms (ActiveRecord: 65.7ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (10.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e631c348718d745858718e4e1da235f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082922, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082922, '121212')  (16.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082922, '8e631c348718d745858718e4e1da235f')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082643, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082643"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082643 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082643 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082643 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (4.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:10', NULL, 969082643, 'BorrowDirect', 'in_progress', '2015-02-23 18:14:10')  (18.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2644  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082643, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082922 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082922) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 83ms (Views: 0.3ms | ActiveRecord: 69.5ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f872b344fc87e99dacf66a4c5be739a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN DispatchedService Load (3.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082643 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212')  (1.6ms) BEGIN SQL (2.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082923, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082923, '121212') SQL (2.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2644  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082923, '3f872b344fc87e99dacf66a4c5be739a')  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013805  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082644"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082644 ORDER BY `requests`.`id` ASC LIMIT 1  (15.6ms) COMMIT ServiceResponse Load (6.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082644 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082644, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082923 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082923) Redirected to http://test.host/resolve?umlaut.request_id=969082644&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.6ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88cd51160077c58e9719b271ebcb36ce' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082924, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '9789810743734', 969082924, '9789810743734')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082924, '88cd51160077c58e9719b271ebcb36ce')  (14.7ms) COMMIT ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082645 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082645, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082645 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082645, 'test_bd', 'failed_temporary', '2015-02-23 18:14:11')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2645  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082645 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26a96a3aeb5ff78014681c43d2e26e52' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:11', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082925, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'isbn', 1, '000000000', 969082925, '000000000')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082925, '26a96a3aeb5ff78014681c43d2e26e52')  (14.2ms) COMMIT ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082646 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082646, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:11', 'This item is not currently available from BorrowDirect', 969082646, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082646 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082646, 'test_bd', 'successful', '2015-02-23 18:14:11')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2646  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082646 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '758f75db4dafe0ee5940edcd9d0b5c8a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:11', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082926, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'isbn', 1, '9789810743734', 969082926, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082926, '758f75db4dafe0ee5940edcd9d0b5c8a')  (14.9ms) COMMIT ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082647 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082647, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:11', 'Choose your delivery location', 969082647, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082647 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082647, 'test_bd', 'successful', '2015-02-23 18:14:11')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2647  (13.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082647 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a02a487c193d0e2f2c0828ae1cc6b608' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:11', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082927, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'isbn', 1, '0109836413', 969082927, '0109836413')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082927, 'a02a487c193d0e2f2c0828ae1cc6b608')  (14.7ms) COMMIT ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082648 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082648, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:11', 'This item is not currently available from BorrowDirect', 969082648, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082648 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082648, 'test_bd', 'successful', '2015-02-23 18:14:11')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2648  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082648 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69bbfb7a3ccfcf6fd238848f60efded3' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:11', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082928, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082928, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'aulast', 1, 'grimes', 969082928, 'Grimes')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082928, '69bbfb7a3ccfcf6fd238848f60efded3')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082649, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (14.5ms) COMMIT ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082649 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1de9b83b07b466618d6c0a0c5941b75a' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:14:11', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082929, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'auinit', 1, 'rd', 969082929, 'RD') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'aulast', 1, 'kaplan', 969082929, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'atitle', 1, 'the coming anarchy', 969082929, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'title', 1, 'the atlantic monthly', 969082929, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'volume', 1, '273', 969082929, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'issue', 1, '2', 969082929, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'date', 1, '1994', 969082929, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'spage', 1, '44', 969082929, '44') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'issn', 1, '1072-7825', 969082929, '1072-7825')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082929, 'info:sid/google', '1de9b83b07b466618d6c0a0c5941b75a')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082650 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082650, 'test_bd', 'successful', '2015-02-23 18:14:11')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2649  (14.4ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082650 ServiceResponse Exists (2.6ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082650 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc0e073269562b5edaa0c9f8b184a26e' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:14:11', 'biological foundations of language', '1967') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'book', 969082930, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'auinit', 1, 'eh', 969082930, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'aulast', 1, 'lenneberg', 969082930, 'Lenneberg') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'title', 1, 'biological foundations of language', 969082930, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'genre', 1, 'book', 969082930, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'date', 1, '1967', 969082930, '1967')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082930, 'info:sid/google', 'cc0e073269562b5edaa0c9f8b184a26e')  (14.7ms) COMMIT ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082651 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082651, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082651 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082651, 'test_bd', 'successful', '2015-02-23 18:14:11')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2650  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082651 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8ef6194d5b34640be664f553c79e1bd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:11', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082931, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'isbn', 1, '9789810743734', 969082931, '9789810743734')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082931, 'f8ef6194d5b34640be664f553c79e1bd')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082652  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652  (0.6ms) BEGIN SQL (3.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082652, 'test_bd', 'queued', '2015-02-23 18:14:11')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2651  (15.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082652 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082931) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082931) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082652) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082652) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082652 AND `dispatched_services`.`id` = 2651 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082652, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2651  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082652 LIMIT 1 DispatchedService Load (38.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082931 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082931) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082652 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082931 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082652  (14.6ms) COMMIT Completed 200 OK in 387ms (Views: 130.2ms | ActiveRecord: 122.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:14:12 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f978d9cd61cecdd0422b9044cb02b595' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:12', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'format', 'book', 969082932, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'genre', 1, 'book', 969082932, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'author', 1, 'smith', 969082932, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'title', 1, 'some book', 969082932, 'Some Book')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:14:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082932, 'f978d9cd61cecdd0422b9044cb02b595')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082653  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:12', NULL, 969082653, 'BorrowDirect', 'queued', '2015-02-23 18:14:12')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2652  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082653 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082932) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082932) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082653) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082653) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082653 AND `dispatched_services`.`id` = 2652 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082653, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2652  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082653 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082932 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082932) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082653 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082932 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082653  (14.6ms) COMMIT Completed 200 OK in 237ms (Views: 19.4ms | ActiveRecord: 122.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:14:12 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7094b5e1a3fc74a885b0ed92db377a7' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:12', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'format', 'journal', 969082933, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'genre', 1, 'article', 969082933, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'title', 1, 'foo', 969082933, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'author', 1, 'bar', 969082933, 'bar')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:14:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082933, 'f7094b5e1a3fc74a885b0ed92db377a7')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082654  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:12', NULL, 969082654, 'BorrowDirect', 'queued', '2015-02-23 18:14:12')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2653  (14.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082654 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082933) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082933) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082654) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082654) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082654 AND `dispatched_services`.`id` = 2653 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2653  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082654 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082933 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082933) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082654 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082933 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082654  (15.1ms) COMMIT Completed 200 OK in 213ms (Views: 17.5ms | ActiveRecord: 121.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9455b532b895111e7ece49273567206b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:12', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'format', 'book', 969082934, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'genre', 1, 'book', 969082934, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'title', 1, 'foo', 969082934, 'foo')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:14:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082934, '9455b532b895111e7ece49273567206b')  (17.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082655 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:12', NULL, 969082655, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:14:12')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2654  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082655" for 127.0.0.1 at 2015-02-23 13:14:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082655"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082655 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082934 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082934)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082655  (14.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082655 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082655 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082655 [["request_id", 969082655]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082934 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082934) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082655 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082655 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082934 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082655  (14.4ms) COMMIT Completed 200 OK in 75ms (Views: 18.2ms | ActiveRecord: 49.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce9ca3d86d1d4ec6d3002d3e8dfb6317' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:12', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'format', 'journal', 969082935, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'isbn', 1, '9789810743734', 969082935, '9789810743734')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082935, 'ce9ca3d86d1d4ec6d3002d3e8dfb6317')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082656  (16.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:13', NULL, 969082656, 'BorrowDirect', 'queued', '2015-02-23 18:14:13')  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2655  (14.2ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082935) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935) ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082656) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082656) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`id` = 2655 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082656, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:13', 'Choose your delivery location', 969082656, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2655  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082935 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082656 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082935 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082656  (14.7ms) COMMIT Completed 200 OK in 267ms (Views: 24.7ms | ActiveRecord: 123.5ms) Started GET "/borrow_direct/BorrowDirect/969082656?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:14:13 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082656"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082656 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2655  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:13', 969082656, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082935 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935) Redirected to http://www.example.com/resolve?umlaut.request_id=969082656&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2655  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013820  (17.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969082656&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:14:13 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082656", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:14:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082935 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082656  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 [["request_id", 969082656]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082935 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082656 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082935 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082656  (14.3ms) COMMIT Completed 200 OK in 79ms (Views: 20.7ms | ActiveRecord: 48.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:14:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd10aa4e59101bcae3689d0b4f27be79e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:13', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:13', 'format', 'journal', 969082936, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:13', 'isbn', 1, '0109836413', 969082936, '0109836413')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:14:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082936, 'd10aa4e59101bcae3689d0b4f27be79e')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082657  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:13', NULL, 969082657, 'BorrowDirect', 'queued', '2015-02-23 18:14:13')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2656  (14.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082657 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082936) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082936) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082657) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082657) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082657 AND `dispatched_services`.`id` = 2656 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082657, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:13', 'This item is not currently available from BorrowDirect', 969082657, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2656  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082657 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082936 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082936) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082657 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082936 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082657  (14.8ms) COMMIT Completed 200 OK in 298ms (Views: 19.6ms | ActiveRecord: 118.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b6f86797934b0b1fe2a13cea91d5100' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:13', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:13', 'format', 'journal', 969082937, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:13', 'isbn', 1, '9789810743734', 969082937, '9789810743734')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082937, '8b6f86797934b0b1fe2a13cea91d5100')  (15.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082658  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:13', NULL, 969082658, 'BorrowDirect', 'queued', '2015-02-23 18:14:13')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2657  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082937) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082658) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082658) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`id` = 2657 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082658, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:13', 'Choose your delivery location', 969082658, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2657  (15.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082937 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082658 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082937 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (2.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082658  (15.7ms) COMMIT Completed 200 OK in 266ms (Views: 21.9ms | ActiveRecord: 123.3ms) Started GET "/borrow_direct/BorrowDirect/969082658?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:14:14 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082658"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082658 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2657  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:14', 969082658, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082937 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937) Redirected to http://www.example.com/resolve?umlaut.request_id=969082658&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 40.0ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2657  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013825  (14.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969082658&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:14:14 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082658", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:14:14-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082937 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937)  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082658  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 [["request_id", 969082658]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082937 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082658 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082937 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082658  (14.4ms) COMMIT Completed 200 OK in 78ms (Views: 18.4ms | ActiveRecord: 50.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:14 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fd6bb44e119c0d2c57d58682216df4cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:14', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'format', 'journal', 969082938, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'isbn', 1, '9789810743734', 969082938, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:14', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082938, 'fd6bb44e119c0d2c57d58682216df4cd')  (15.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082659  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659  (1.4ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:14', NULL, 969082659, 'BorrowDirect', 'queued', '2015-02-23 18:14:14')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2658  (15.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082659 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082938) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082938) ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082659) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082659) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082659 AND `dispatched_services`.`id` = 2658 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082659, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:14', 'Choose your delivery location', 969082659, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2658  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082659 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082938 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082938) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082659 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082659 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082938 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082659  (14.9ms) COMMIT Completed 200 OK in 310ms (Views: 22.9ms | ActiveRecord: 123.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:14 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86a058e73b64fedfc03a77496270c71d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:14', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'format', 'journal', 969082939, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'isbn', 1, '9789810743734', 969082939, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:14', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082939, '86a058e73b64fedfc03a77496270c71d')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082660  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:14', NULL, 969082660, 'BorrowDirect', 'queued', '2015-02-23 18:14:14')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2659  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082939) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939) ServiceResponse Load (6.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082660) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082660) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`id` = 2659 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082660, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:14', 'Choose your delivery location', 969082660, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2659  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082939 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082660 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082939 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082660  (14.5ms) COMMIT Completed 200 OK in 257ms (Views: 21.7ms | ActiveRecord: 118.4ms) Started GET "/borrow_direct/BorrowDirect/969082660" for 127.0.0.1 at 2015-02-23 13:14:14 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082660"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082660 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:14', 969082660, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082939 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939) Redirected to http://www.example.com/resolve?umlaut.request_id=969082660&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.3ms) Started GET "/resolve?umlaut.request_id=969082660&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:14:14 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082660", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:14:14-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082939 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082660  (14.5ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 [["request_id", 969082660]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082939 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082660 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082939 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082660  (14.7ms) COMMIT Completed 200 OK in 80ms (Views: 22.5ms | ActiveRecord: 49.0ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '551a028613ffcfb2b00d911a300449f6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:14', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'format', 'journal', 969082940, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'isbn', 1, '9789810743734', 969082940, '9789810743734')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082940, '551a028613ffcfb2b00d911a300449f6')  (14.2ms) COMMIT ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082661 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082661, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082661 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082661, 'test_bd', 'successful', '2015-02-23 18:14:15')  (14.8ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2660  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082661  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a68b8b3453bbe59094d9efdf2a03417a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:15', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'format', 'journal', 969082941, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'title', 1, 'title', 969082941, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'author', 1, 'au', 969082941, 'au')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:14:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082941, 'a68b8b3453bbe59094d9efdf2a03417a')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:15', 969082662, '--- {}\n', 'test_holding', 'holding')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082662, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (13.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082662 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082662, 'test_bd', 'successful', '2015-02-23 18:14:15')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2661  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082662 ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082662 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9574f39efcb2b4980fa41052a6a3a1b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:15', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'format', 'journal', 969082942, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'title', 1, 'title', 969082942, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'author', 1, 'au', 969082942, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:14:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082942, '9574f39efcb2b4980fa41052a6a3a1b3')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:15', 969082663, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082663 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082663 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082663, 'test_bd', 'successful', '2015-02-23 18:14:15')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2662  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082663 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c352f74be0baf744faee1fce5c78702c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:15', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'format', 'journal', 969082943, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'title', 1, 'title', 969082943, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'author', 1, 'au', 969082943, 'au')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:14:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082943, 'c352f74be0baf744faee1fce5c78702c')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:15', 969082664, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082664 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082664, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082664 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082664, 'test_bd', 'successful', '2015-02-23 18:14:15')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2663  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082664 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1f56716e6206a2d592ea6da09e61f4c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:15', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'format', 'journal', 969082944, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'title', 1, 'title', 969082944, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'author', 1, 'au', 969082944, 'au')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:14:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082944, 'e1f56716e6206a2d592ea6da09e61f4c')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:15', 969082665, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.0ms) COMMIT ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082665 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082665, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082665 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082665, 'test_bd', 'successful', '2015-02-23 18:14:15')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2664  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082665 ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:57 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f61d3618466287c44f9952a08413c47' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:58', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'format', 'journal', 969082945, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'isbn', 1, '9789810743734', 969082945, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:58', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082945, '8f61d3618466287c44f9952a08413c47')  (25.7ms) COMMIT  (0.6ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082666  (19.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082666  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:58', NULL, 969082666, 'test_bd', 'queued', '2015-02-23 18:14:58')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:58' WHERE `dispatched_services`.`id` = 2665  (14.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082666 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082945) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082945) ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082666) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082666) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082666 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082666 AND `dispatched_services`.`id` = 2665 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082666, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT Umlaut: Threaded service raised exception. Service: test_bd, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/available Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' Completed 500 Internal Server Error in 461ms ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:14:58 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '729e922e8ed585c957a5f6253731a573' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:58', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'format', 'book', 969082946, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'genre', 1, 'book', 969082946, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'author', 1, 'smith', 969082946, 'Smith') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'title', 1, 'some book', 969082946, 'Some Book')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:14:58', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082946, '729e922e8ed585c957a5f6253731a573')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082667  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:58', NULL, 969082667, 'BorrowDirect', 'queued', '2015-02-23 18:14:58')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:58' WHERE `dispatched_services`.`id` = 2666  (16.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082667 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082946) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082946) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082667) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082667) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082667 AND `dispatched_services`.`id` = 2666 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082667, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:58' WHERE `dispatched_services`.`id` = 2666  (13.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082667 LIMIT 1 DispatchedService Load (7.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms) Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082946 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082946) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082667 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082946 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082667  (25.2ms) COMMIT Completed 200 OK in 390ms (Views: 134.3ms | ActiveRecord: 149.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:14:59 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '915d0338f83a4663c3a7e9dcb2ca0df8' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:59', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'format', 'journal', 969082947, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'genre', 1, 'article', 969082947, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'title', 1, 'foo', 969082947, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'author', 1, 'bar', 969082947, 'bar')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:14:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082947, '915d0338f83a4663c3a7e9dcb2ca0df8')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082668  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:59', NULL, 969082668, 'BorrowDirect', 'queued', '2015-02-23 18:14:59')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2667  (14.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082668 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082947) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082947) ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082668) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082668) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082668 AND `dispatched_services`.`id` = 2667 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2667  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082668 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082947 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082947) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082668 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082947 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082668  (14.7ms) COMMIT Completed 200 OK in 217ms (Views: 17.5ms | ActiveRecord: 124.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd615abf853e402b4ea7e208ad39218a8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:59', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'format', 'book', 969082948, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'genre', 1, 'book', 969082948, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'title', 1, 'foo', 969082948, 'foo')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:14:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082948, 'd615abf853e402b4ea7e208ad39218a8')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082669 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:59', NULL, 969082669, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:14:59')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2668  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969082669" for 127.0.0.1 at 2015-02-23 13:14:59 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082669"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082669 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082948 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082948)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082669  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082669 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082669 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082669 [["request_id", 969082669]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082948 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082948) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082669 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082669 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082948 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082669  (14.8ms) COMMIT Completed 200 OK in 113ms (Views: 54.3ms | ActiveRecord: 51.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:59 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '457ba690da2ed74cc79645cd217c48e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:59', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'format', 'journal', 969082949, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'isbn', 1, '9789810743734', 969082949, '9789810743734')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082949, '457ba690da2ed74cc79645cd217c48e4')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082670  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:59', NULL, 969082670, 'BorrowDirect', 'queued', '2015-02-23 18:14:59')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2669  (14.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082949) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082670) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082670) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`id` = 2669 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082670, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:59', 'Choose your delivery location', 969082670, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2669  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082949 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082670 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082949 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (1.3ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082670  (16.3ms) COMMIT Completed 200 OK in 269ms (Views: 24.0ms | ActiveRecord: 124.4ms) Started GET "/borrow_direct/BorrowDirect/969082670?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:14:59 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082670"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082670 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2669  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:59', 969082670, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082949 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949) Redirected to http://www.example.com/resolve?umlaut.request_id=969082670&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 38.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2669  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013843  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969082670&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:14:59 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082670", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:14:59-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082949 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082670  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 [["request_id", 969082670]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082949 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (6.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082670 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082949 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082670  (14.5ms) COMMIT Completed 200 OK in 80ms (Views: 21.4ms | ActiveRecord: 49.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:14:59 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a3784f0a9d79220b1128c8924f8e0699' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:59', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'format', 'journal', 969082950, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'isbn', 1, '0109836413', 969082950, '0109836413')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:15:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082950, 'a3784f0a9d79220b1128c8924f8e0699')  (34.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082671  (20.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:00', NULL, 969082671, 'BorrowDirect', 'queued', '2015-02-23 18:15:00')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2670  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082671 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082950) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082950) ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082671) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082671) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082671 AND `dispatched_services`.`id` = 2670 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (3.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082671, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:00', 'This item is not currently available from BorrowDirect', 969082671, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2670  (14.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082671 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082950 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082950) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082671 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082950 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082671  (14.6ms) COMMIT Completed 200 OK in 325ms (Views: 18.9ms | ActiveRecord: 147.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:15:00 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0178fc619fd987fb979c8709b094c701' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:00', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:00', 'format', 'journal', 969082951, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:00', 'isbn', 1, '9789810743734', 969082951, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (6.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082951, '0178fc619fd987fb979c8709b094c701')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082672  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:00', NULL, 969082672, 'BorrowDirect', 'queued', '2015-02-23 18:15:00')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2671  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082951) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951) ServiceResponse Load (6.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082672) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082672) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`id` = 2671 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082672, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:00', 'Choose your delivery location', 969082672, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2671  (17.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082951 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082672 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082951 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082672  (20.3ms) COMMIT Completed 200 OK in 274ms (Views: 22.8ms | ActiveRecord: 130.3ms) Started GET "/borrow_direct/BorrowDirect/969082672?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:15:00 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082672"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082672 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2671  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:00', 969082672, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.4ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082951 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951) Redirected to http://www.example.com/resolve?umlaut.request_id=969082672&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 42.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2671  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013848  (15.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082672&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:15:00 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082672", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:15:00-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082951 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082672  (15.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 [["request_id", 969082672]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082951 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082672 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082951 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082672  (14.9ms) COMMIT Completed 200 OK in 80ms (Views: 18.9ms | ActiveRecord: 51.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:15:00 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fff2ab4153cdba9cf64a19204aad5dc1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:00', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:00', 'format', 'journal', 969082952, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:00', 'isbn', 1, '9789810743734', 969082952, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082952, 'fff2ab4153cdba9cf64a19204aad5dc1')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082673  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:00', NULL, 969082673, 'BorrowDirect', 'queued', '2015-02-23 18:15:00')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2672  (18.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082673 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082952) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082952) ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082673) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082673) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082673 AND `dispatched_services`.`id` = 2672 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082673, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.4ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 'Choose your delivery location', 969082673, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2672  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082673 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082952 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082952) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082673 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082673 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082952 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082673  (14.6ms) COMMIT Completed 200 OK in 316ms (Views: 21.5ms | ActiveRecord: 125.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:15:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '02449987e4875af640b90964a6a04797' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:01', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'format', 'journal', 969082953, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'isbn', 1, '9789810743734', 969082953, '9789810743734')  (15.8ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082953, '02449987e4875af640b90964a6a04797')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082674  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:01', NULL, 969082674, 'BorrowDirect', 'queued', '2015-02-23 18:15:01')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2673  (19.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082953) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953) ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082674) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082674) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (24.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`id` = 2673 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082674, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 'Choose your delivery location', 969082674, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2673  (15.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082953 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082674 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082953 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082674  (14.9ms) COMMIT Completed 200 OK in 279ms (Views: 20.8ms | ActiveRecord: 126.2ms) Started GET "/borrow_direct/BorrowDirect/969082674" for 127.0.0.1 at 2015-02-23 13:15:01 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082674"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082674 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082674, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082953 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953) Redirected to http://www.example.com/resolve?umlaut.request_id=969082674&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.1ms) Started GET "/resolve?umlaut.request_id=969082674&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:15:01 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082674", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:15:01-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082953 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082674  (23.8ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 [["request_id", 969082674]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082953 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082674 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082953 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082674  (15.5ms) COMMIT Completed 200 OK in 90ms (Views: 22.1ms | ActiveRecord: 58.9ms) ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'face7ea059a5729bb995372d71e8b651' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:01', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'format', 'journal', 969082954, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'isbn', 1, '121212', 969082954, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (6.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082954, 'face7ea059a5729bb995372d71e8b651')  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082675"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082675 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082675 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082675  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082675, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082675\n', 'BorrowDirect', 'bd_request_status')  (17.8ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082954 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082954) Redirected to http://test.host/resolve?umlaut.request_id=969082675&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 38ms (ActiveRecord: 31.0ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77e7b7a8cc4681724c2dda86fd149a1b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:01', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'format', 'journal', 969082955, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'isbn', 1, '121212', 969082955, '121212')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082955, '77e7b7a8cc4681724c2dda86fd149a1b')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082676, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (16.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082676"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082676 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082676 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013855  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082676, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013855\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082955 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082955) Redirected to http://test.host/resolve?umlaut.request_id=969082676&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95fec44cbb4c0838b1116fc43d8633e5' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:01', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'format', 'journal', 969082956, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'isbn', 1, '121212', 969082956, '121212')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082956, '95fec44cbb4c0838b1116fc43d8633e5')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082677, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (30.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082677"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082677 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082677 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082677 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:01', NULL, 969082677, 'BorrowDirect', 'in_progress', '2015-02-23 18:15:01')  (29.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2674  (22.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082677, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082956 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082956) Redirected to http://test.host/resolve?umlaut.request_id=969082677&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 95ms (ActiveRecord: 84.2ms) DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082677 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082677 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2674 ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082677 ORDER BY id ASC  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013858  (14.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f4b7f0f404b4df0aecc7ff0cc915d37' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:02', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082957, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'isbn', 1, '121212', 969082957, '121212')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (5.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082957, '9f4b7f0f404b4df0aecc7ff0cc915d37')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082678, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082678"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082678 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082678 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (6.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082678, 'BorrowDirect', 'in_progress', '2015-02-23 18:15:02')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2675  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082678, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082957 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082957) Redirected to http://example.org Completed 302 Found in 75ms (ActiveRecord: 65.6ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89cb37cccd1686023192746c42d557aa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN DispatchedService Load (3.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:02', '121212')  (1.4ms) BEGIN SQL (2.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082958, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'isbn', 1, '121212', 969082958, '121212') SQL (2.0ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2675  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082958, '89cb37cccd1686023192746c42d557aa')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013860  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082679, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.2ms) COMMIT  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082679"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082679 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082679 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082679 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082679, 'BorrowDirect', 'in_progress', '2015-02-23 18:15:02')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2676  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082679, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082958 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082958) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 60.9ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082679 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN Request Load (3.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f48411ca5e3b36e53c449d575e2cd1f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (3.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2676 SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:02', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082959, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'isbn', 1, '121212', 969082959, '121212')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013862  (15.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082959, '0f48411ca5e3b36e53c449d575e2cd1f')  (15.4ms) COMMIT  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082680"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082680 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082680 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082680, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082959 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082959) Redirected to http://test.host/resolve?umlaut.request_id=969082680&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 26.9ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7062d2e2d0372ca6c65d85d2e45553d5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:02', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082960, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'title', 1, 'title', 969082960, 'title') SQL (6.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'author', 1, 'au', 969082960, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082960, '7062d2e2d0372ca6c65d85d2e45553d5')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082681, '--- {}\n', 'test_holding', 'holding')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082681, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082681 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082681, 'test_bd', 'successful', '2015-02-23 18:15:02')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2677  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082681 ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082681 ORDER BY id ASC  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (1.0ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb9d5b9cc2a01765badc611d6824d42b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:02', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082961, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'title', 1, 'title', 969082961, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'author', 1, 'au', 969082961, 'au')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082961, 'bb9d5b9cc2a01765badc611d6824d42b')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082682, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082682 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082682 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082682, 'test_bd', 'successful', '2015-02-23 18:15:02')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2678  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082682 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42bf2197f5a754dda96cf241f7d9184c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:02', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082962, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'title', 1, 'title', 969082962, 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'author', 1, 'au', 969082962, 'au')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (6.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082962, '42bf2197f5a754dda96cf241f7d9184c')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082683, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082683 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082683, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082683 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082683, 'test_bd', 'successful', '2015-02-23 18:15:02')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2679  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082683 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ec138b0de00f7d81da4ffb82799e39a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:02', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082963, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'title', 1, 'title', 969082963, 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'author', 1, 'au', 969082963, 'au')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082963, '2ec138b0de00f7d81da4ffb82799e39a')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082684, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.4ms) COMMIT ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082684 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082684, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082684 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082684, 'test_bd', 'successful', '2015-02-23 18:15:02')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2680  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082684 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74104a866c172fb117c932042137d09e' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (7.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:02', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082964, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'isbn', 1, '000000000', 969082964, '000000000')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082964, '74104a866c172fb117c932042137d09e')  (14.5ms) COMMIT ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082685 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082685, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:03', 'This item is not currently available from BorrowDirect', 969082685, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082685 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082685, 'test_bd', 'successful', '2015-02-23 18:15:03')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2681  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082685 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aa2e78e4ef67c01b4c6cb30a520cccb1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:03', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082965, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'isbn', 1, '9789810743734', 969082965, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082965, 'aa2e78e4ef67c01b4c6cb30a520cccb1')  (14.2ms) COMMIT ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082686 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082686, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082686 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082686, 'test_bd', 'failed_temporary', '2015-02-23 18:15:03')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2682  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082686 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9b95e4bafdbb31b5ac73e609af14a0a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:03', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082966, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'isbn', 1, '0109836413', 969082966, '0109836413')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082966, 'c9b95e4bafdbb31b5ac73e609af14a0a')  (14.1ms) COMMIT ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082687 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082687, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:03', 'This item is not currently available from BorrowDirect', 969082687, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (21.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082687 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082687, 'test_bd', 'successful', '2015-02-23 18:15:03')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2683  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082687 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5a607e4f86847139c4c2bcded36e1ed' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:03', '9789810743734') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082967, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'isbn', 1, '9789810743734', 969082967, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082967, 'a5a607e4f86847139c4c2bcded36e1ed')  (14.8ms) COMMIT ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082688 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082688, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:03', 'Choose your delivery location', 969082688, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082688 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082688, 'test_bd', 'successful', '2015-02-23 18:15:03')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2684  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082688 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e990f3087203308dfc796e6da5938362' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (11.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:03', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082968, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082968, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'aulast', 1, 'grimes', 969082968, 'Grimes')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082968, 'e990f3087203308dfc796e6da5938362')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082689, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')  (13.9ms) COMMIT ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082689 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5cc4ba59cadb4af328b2cc50fddcbaba' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:15:03', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082969, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'auinit', 1, 'rd', 969082969, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'aulast', 1, 'kaplan', 969082969, 'Kaplan') SQL (6.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'atitle', 1, 'the coming anarchy', 969082969, 'The coming anarchy') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'title', 1, 'the atlantic monthly', 969082969, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'volume', 1, '273', 969082969, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'issue', 1, '2', 969082969, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'date', 1, '1994', 969082969, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'spage', 1, '44', 969082969, '44') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'issn', 1, '1072-7825', 969082969, '1072-7825')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082969, 'info:sid/google', '5cc4ba59cadb4af328b2cc50fddcbaba')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082690 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082690, 'test_bd', 'successful', '2015-02-23 18:15:03')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2685  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082690 ServiceResponse Exists (2.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082690 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a01c65a2233a5610536ec550a30392f6' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:15:03', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'book', 969082970, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'auinit', 1, 'eh', 969082970, 'EH') SQL (9.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'aulast', 1, 'lenneberg', 969082970, 'Lenneberg') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'title', 1, 'biological foundations of language', 969082970, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'genre', 1, 'book', 969082970, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'date', 1, '1967', 969082970, '1967')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082970, 'info:sid/google', 'a01c65a2233a5610536ec550a30392f6')  (14.2ms) COMMIT ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082691 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082691, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082691 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082691, 'test_bd', 'successful', '2015-02-23 18:15:03')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2686  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082691 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5442328aa1cc974f2fc0db93d6765099' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:03', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082971, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'isbn', 1, '9789810743734', 969082971, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082971, '5442328aa1cc974f2fc0db93d6765099')  (14.0ms) COMMIT ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082692 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082692, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082692 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082692, 'test_bd', 'successful', '2015-02-23 18:15:03')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2687  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082692 ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 51ms (Views: 40.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 35ms (Views: 0.4ms | ActiveRecord: 6.8ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd468e1ae100d49fa0865910d6d42289a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082972, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082972, '121212')  (31.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082972, 'd468e1ae100d49fa0865910d6d42289a')  (16.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082693"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082693 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082693 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082693  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082693, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082693\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082972 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082972) Redirected to http://test.host/resolve?umlaut.request_id=969082693&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 90ms (ActiveRecord: 34.1ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca66539b14fe4aa83b8d01409b6a5c8c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082973, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082973, '121212')  (24.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082973, 'ca66539b14fe4aa83b8d01409b6a5c8c')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082694, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (34.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082694"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082694 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082694 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013882  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082694, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013882\n', 'BorrowDirect', 'bd_request_status')  (17.8ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082973 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082973) Redirected to http://test.host/resolve?umlaut.request_id=969082694&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 38ms (ActiveRecord: 31.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89b96710001905f40478139d0c6a2368' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082974, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082974, '121212')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082974, '89b96710001905f40478139d0c6a2368')  (17.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082695, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082695"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082695 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082695 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:04', NULL, 969082695, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:04')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:04' WHERE `dispatched_services`.`id` = 2688  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082695, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082974 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082974) Redirected to http://test.host/resolve?umlaut.request_id=969082695&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 86ms (ActiveRecord: 65.7ms) DispatchedService Load (4.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082695 ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082695 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:04' WHERE `dispatched_services`.`id` = 2688  (22.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013885  (14.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ec987264b1627c8d2e72e4ac7047f78' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082975, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082975, '121212')  (25.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082975, '4ec987264b1627c8d2e72e4ac7047f78')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082696, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082696"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082696 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082696 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082696 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:04', NULL, 969082696, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:04')  (17.4ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:04' WHERE `dispatched_services`.`id` = 2689  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082696, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082975 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082975) Redirected to http://example.org Completed 302 Found in 84ms (ActiveRecord: 70.6ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (11.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d66482066f6182c4151229640dd33b9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082976, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082976, '121212')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082976, '8d66482066f6182c4151229640dd33b9')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082697, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082697"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082697 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082697 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (8.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082697, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:05')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2690  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082697, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082976 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082976) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 81ms (Views: 0.3ms | ActiveRecord: 67.8ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90a4dfacac960e7410173d899c3b57a8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN  (2.3ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:05', '121212') SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2690 SQL (2.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082977, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'isbn', 1, '121212', 969082977, '121212')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013889  (17.3ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082977, '90a4dfacac960e7410173d899c3b57a8')  (15.5ms) COMMIT  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082698"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082698 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082698 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082698, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082977 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082977) Redirected to http://test.host/resolve?umlaut.request_id=969082698&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.4ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c0f60da16b6a0aa80527ca8ccc27444' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082978, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082978, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'aulast', 1, 'grimes', 969082978, 'Grimes')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082978, '1c0f60da16b6a0aa80527ca8ccc27444')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082699, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (17.7ms) COMMIT ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082699 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5cd344ba74fcc47f8fc7be63ced2dee' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:16:05', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082979, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'auinit', 1, 'rd', 969082979, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'aulast', 1, 'kaplan', 969082979, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'atitle', 1, 'the coming anarchy', 969082979, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'the atlantic monthly', 969082979, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'volume', 1, '273', 969082979, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'issue', 1, '2', 969082979, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'date', 1, '1994', 969082979, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'spage', 1, '44', 969082979, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'issn', 1, '1072-7825', 969082979, '1072-7825')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082979, 'info:sid/google', 'b5cd344ba74fcc47f8fc7be63ced2dee')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082700 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082700, 'test_bd', 'successful', '2015-02-23 18:16:05')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2691  (15.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082700 ServiceResponse Exists (2.9ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082700 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd503f169b03cbbcfbabdc5364f41ce17' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:16:05', 'biological foundations of language', '1967') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'book', 969082980, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'auinit', 1, 'eh', 969082980, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'aulast', 1, 'lenneberg', 969082980, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'biological foundations of language', 969082980, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'genre', 1, 'book', 969082980, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'date', 1, '1967', 969082980, '1967')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082980, 'info:sid/google', 'd503f169b03cbbcfbabdc5364f41ce17')  (14.5ms) COMMIT ServiceResponse Load (7.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082701 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082701, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082701 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082701, 'test_bd', 'successful', '2015-02-23 18:16:05')  (14.0ms) COMMIT  (1.2ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2692  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082701 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42b027708774547c9fa96aad70f53353' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082981, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'title', 969082981, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'author', 1, 'au', 969082981, 'au')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082981, '42b027708774547c9fa96aad70f53353')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082702, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (15.2ms) COMMIT ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082702 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082702, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082702 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082702, 'test_bd', 'successful', '2015-02-23 18:16:05')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2693  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082702 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '142787d2233f65936d5d10c6f35dcb66' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082982, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'title', 969082982, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'author', 1, 'au', 969082982, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082982, '142787d2233f65936d5d10c6f35dcb66')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082703, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082703 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082703, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082703 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082703, 'test_bd', 'successful', '2015-02-23 18:16:05')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2694  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082703 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49c8d696ee347e829973764cb4229d96' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082983, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'title', 969082983, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'author', 1, 'au', 969082983, 'au')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082983, '49c8d696ee347e829973764cb4229d96')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082704, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (13.8ms) COMMIT ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082704 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082704 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082704, 'test_bd', 'successful', '2015-02-23 18:16:05')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2695  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082704  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'febbf3c4554a95a58efc761295245370' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082984, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'title', 969082984, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'author', 1, 'au', 969082984, 'au')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082984, 'febbf3c4554a95a58efc761295245370')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082705, '--- {}\n', 'test_holding', 'holding')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082705, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082705 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082705, 'test_bd', 'successful', '2015-02-23 18:16:05')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2696  (16.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082705 ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082705 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3c9b12ee7e4986891157bd64023bfca1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:06', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'format', 'journal', 969082985, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'isbn', 1, '9789810743734', 969082985, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082985, '3c9b12ee7e4986891157bd64023bfca1')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082706  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:06', NULL, 969082706, 'test_bd', 'queued', '2015-02-23 18:16:06')  (27.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2697  (20.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082706 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082985) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082985) ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082706) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082706) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082706 AND `dispatched_services`.`id` = 2697 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082706, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2697  (15.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082706 LIMIT 1 DispatchedService Load (39.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082985 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082985) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082706 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082985 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082706  (14.5ms) COMMIT Completed 200 OK in 407ms (Views: 125.9ms | ActiveRecord: 143.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:16:06 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4aad4b8e4a17ade8911dcfaa5db76a5f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:06', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'format', 'book', 969082986, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'genre', 1, 'book', 969082986, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'author', 1, 'smith', 969082986, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'title', 1, 'some book', 969082986, 'Some Book')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:16:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082986, '4aad4b8e4a17ade8911dcfaa5db76a5f')  (13.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082707  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:06', NULL, 969082707, 'BorrowDirect', 'queued', '2015-02-23 18:16:06')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2698  (16.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082707 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082986) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082986) ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082707) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082707) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082707 AND `dispatched_services`.`id` = 2698 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082707, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.8ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2698  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082707 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082986 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082986) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082707 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082986 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082707  (15.9ms) COMMIT Completed 200 OK in 249ms (Views: 20.0ms | ActiveRecord: 129.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:16:06 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '554087b036a786493f0a6cb0b83df82e' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:06', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'format', 'journal', 969082987, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'genre', 1, 'article', 969082987, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'title', 1, 'foo', 969082987, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'author', 1, 'bar', 969082987, 'bar')  (23.9ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:16:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082987, '554087b036a786493f0a6cb0b83df82e')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082708  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:06', NULL, 969082708, 'BorrowDirect', 'queued', '2015-02-23 18:16:06')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2699  (14.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082708 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082987) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082987) ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082708) ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082708) DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082708 AND `dispatched_services`.`id` = 2699 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2699  (15.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082708 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082987 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082987) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082708 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082987 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082708  (15.1ms) COMMIT Completed 200 OK in 235ms (Views: 16.5ms | ActiveRecord: 138.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48e9b1595c2ca1947408c606702b053b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:07', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'format', 'book', 969082988, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'genre', 1, 'book', 969082988, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'title', 1, 'foo', 969082988, 'foo')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:16:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082988, '48e9b1595c2ca1947408c606702b053b')  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082709 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:07', NULL, 969082709, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:16:07')  (42.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2700  (45.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082709" for 127.0.0.1 at 2015-02-23 13:16:07 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082709"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082709 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082988 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082988)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082709  (15.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082709 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082709 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082709 [["request_id", 969082709]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082988 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082988) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082709 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (39.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082709 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082988 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082709  (14.5ms) COMMIT Completed 200 OK in 118ms (Views: 57.8ms | ActiveRecord: 52.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '36a4223533a91371b3cfc5655b179228' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:07', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'format', 'journal', 969082989, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'isbn', 1, '9789810743734', 969082989, '9789810743734')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082989, '36a4223533a91371b3cfc5655b179228')  (15.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082710  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:07', NULL, 969082710, 'BorrowDirect', 'queued', '2015-02-23 18:16:07')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2701  (24.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082989) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989) ServiceResponse Load (7.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082710) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082710) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`id` = 2701 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082710, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (23.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:07', 'Choose your delivery location', 969082710, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2701  (21.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082989 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082710 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082989 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082710  (15.5ms) COMMIT Completed 200 OK in 299ms (Views: 24.3ms | ActiveRecord: 136.6ms) Started GET "/borrow_direct/BorrowDirect/969082710?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:16:07 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082710"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082710 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2701  (22.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:07', 969082710, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082989 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989) Redirected to http://www.example.com/resolve?umlaut.request_id=969082710&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 57ms (ActiveRecord: 47.9ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2701  (15.4ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013904  (24.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969082710&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:16:07 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082710", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:16:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082989 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082710  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 [["request_id", 969082710]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082989 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082710 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082989 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082710  (15.2ms) COMMIT Completed 200 OK in 82ms (Views: 21.9ms | ActiveRecord: 51.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:16:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '855b09dd1abec014e2cf8ccb2bf0720f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:07', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'format', 'journal', 969082990, 'journal') SQL (6.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'isbn', 1, '0109836413', 969082990, '0109836413')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:16:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082990, '855b09dd1abec014e2cf8ccb2bf0720f')  (15.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082711  (16.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:07', NULL, 969082711, 'BorrowDirect', 'queued', '2015-02-23 18:16:07')  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2702  (20.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082711 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082990) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082990) ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082711) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082711) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082711 AND `dispatched_services`.`id` = 2702 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082711, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:08', 'This item is not currently available from BorrowDirect', 969082711, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (19.0ms) COMMIT DispatchedService Load (33.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2702  (23.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082711 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082990 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082990) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082711 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082990 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082711  (15.9ms) COMMIT Completed 200 OK in 377ms (Views: 19.0ms | ActiveRecord: 145.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1f86e77ad432d19bee50dbb99c827a4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:08', '9789810743734') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:08', 'format', 'journal', 969082991, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:08', 'isbn', 1, '9789810743734', 969082991, '9789810743734')  (36.6ms) COMMIT  (0.8ms) BEGIN SQL (2.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082991, 'c1f86e77ad432d19bee50dbb99c827a4')  (17.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082712  (15.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:08', NULL, 969082712, 'BorrowDirect', 'queued', '2015-02-23 18:16:08')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2703  (16.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082991) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082712) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082712) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`id` = 2703 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082712, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:08', 'Choose your delivery location', 969082712, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2703  (14.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082991 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082712 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082991 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082712  (17.9ms) COMMIT Completed 200 OK in 298ms (Views: 21.1ms | ActiveRecord: 152.6ms) Started GET "/borrow_direct/BorrowDirect/969082712?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:16:08 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082712"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082712 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2703  (26.1ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:08', 969082712, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.9ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082991 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991) Redirected to http://www.example.com/resolve?umlaut.request_id=969082712&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 63ms (ActiveRecord: 54.6ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2703  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013909  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969082712&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:16:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082712", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:16:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082991 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082712  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 [["request_id", 969082712]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082991 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082712 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082991 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082712  (15.1ms) COMMIT Completed 200 OK in 77ms (Views: 18.0ms | ActiveRecord: 50.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '451b1dc5464f38c648a83adf9acec83d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:08', '9789810743734') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:08', 'format', 'journal', 969082992, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:08', 'isbn', 1, '9789810743734', 969082992, '9789810743734')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082992, '451b1dc5464f38c648a83adf9acec83d')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082713 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono%20-%20for%20piano%2C%201991&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082696 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono%20-%20for%20piano%2C%201991&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2689  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:08', NULL, 969082713, 'BorrowDirect', 'queued', '2015-02-23 18:16:08')  (24.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013887  (27.7ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2704  (24.2ms) COMMIT  (15.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082713 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082992) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082992) ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082713) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082713) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (35.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082713 AND `dispatched_services`.`id` = 2704 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082713, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:08', 'Choose your delivery location', 969082713, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2704  (15.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082713 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082992 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082992) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082713 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082713 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082992 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082713  (15.4ms) COMMIT Completed 200 OK in 344ms (Views: 20.6ms | ActiveRecord: 135.5ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72b19fc195b70a86ef19829fcc823050' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:09', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'format', 'journal', 969082993, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'isbn', 1, '9789810743734', 969082993, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082993, '72b19fc195b70a86ef19829fcc823050')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082714  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:09', NULL, 969082714, 'BorrowDirect', 'queued', '2015-02-23 18:16:09')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:09' WHERE `dispatched_services`.`id` = 2705  (17.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082993) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993) ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082714) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082714) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`id` = 2705 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082714, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (6.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:09', 'Choose your delivery location', 969082714, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:09' WHERE `dispatched_services`.`id` = 2705  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082993 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082714 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082993 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082714  (16.1ms) COMMIT Completed 200 OK in 272ms (Views: 20.7ms | ActiveRecord: 123.0ms) Started GET "/borrow_direct/BorrowDirect/969082714" for 127.0.0.1 at 2015-02-23 13:16:09 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082714"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082714 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:09', 969082714, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (47.9ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082993 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993) Redirected to http://www.example.com/resolve?umlaut.request_id=969082714&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 60ms (ActiveRecord: 54.0ms) Started GET "/resolve?umlaut.request_id=969082714&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:16:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082714", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:16:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082993 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993)  (0.8ms) BEGIN SQL (44.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082714  (28.2ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 [["request_id", 969082714]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082993 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082714 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082993 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082714  (62.9ms) COMMIT Completed 200 OK in 187ms (Views: 22.3ms | ActiveRecord: 155.3ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88b0e7d49b1a71991536f5758a49f448' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:09', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'format', 'journal', 969082994, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'isbn', 1, '9789810743734', 969082994, '9789810743734')  (33.2ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082994, '88b0e7d49b1a71991536f5758a49f448')  (14.9ms) COMMIT ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082715 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082715, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:09', 'Choose your delivery location', 969082715, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (15.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082715 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:09', NULL, 969082715, 'test_bd', 'successful', '2015-02-23 18:16:09')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:09' WHERE `dispatched_services`.`id` = 2706  (20.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082715 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43324c37ecec92b30163fa1df9dbb028' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:09', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'format', 'journal', 969082995, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'isbn', 1, '0109836413', 969082995, '0109836413')  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:16:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082995, '43324c37ecec92b30163fa1df9dbb028')  (14.3ms) COMMIT ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082716 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082716, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:09', 'This item is not currently available from BorrowDirect', 969082716, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (30.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082716 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:09', NULL, 969082716, 'test_bd', 'successful', '2015-02-23 18:16:09')  (16.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:09' WHERE `dispatched_services`.`id` = 2707  (24.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082716 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96b1111323fe604dec94d064446800b4' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:09', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'format', 'journal', 969082996, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'isbn', 1, '000000000', 969082996, '000000000')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:16:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082996, '96b1111323fe604dec94d064446800b4')  (14.1ms) COMMIT ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082717 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082717, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:10', 'This item is not currently available from BorrowDirect', 969082717, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082717 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:10', NULL, 969082717, 'test_bd', 'successful', '2015-02-23 18:16:10')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:10' WHERE `dispatched_services`.`id` = 2708  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082717 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5042bb7bd371e270ef6c840188fad5d5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:10', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:10', 'format', 'journal', 969082997, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:10', 'isbn', 1, '9789810743734', 969082997, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082997, '5042bb7bd371e270ef6c840188fad5d5')  (14.3ms) COMMIT ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082718 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082718, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082718 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:10', NULL, 969082718, 'test_bd', 'failed_temporary', '2015-02-23 18:16:10')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:16:10' WHERE `dispatched_services`.`id` = 2709  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082718 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0abf70616098246e36fc2222d8d822d6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:10', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:10', 'format', 'journal', 969082998, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:10', 'isbn', 1, '9789810743734', 969082998, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082998, '0abf70616098246e36fc2222d8d822d6')  (14.0ms) COMMIT ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082719 ORDER BY id ASC  (0.8ms) BEGIN SQL (6.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082719, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082719 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:10', NULL, 969082719, 'test_bd', 'successful', '2015-02-23 18:16:10')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:10' WHERE `dispatched_services`.`id` = 2710  (13.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082719 ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae407747f239f39275c111c76efc6e0e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:52', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'format', 'journal', 969082999, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'isbn', 1, '9789810743734', 969082999, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082999, 'ae407747f239f39275c111c76efc6e0e')  (14.8ms) COMMIT ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082720 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082720, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082720 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:52', NULL, 969082720, 'test_bd', 'successful', '2015-02-23 18:16:52')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:52' WHERE `dispatched_services`.`id` = 2711  (14.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082720 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '575632c0d2a3bf9958f9970a1e2dde75' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:52', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'format', 'journal', 969083000, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'title', 1, 'title', 969083000, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'author', 1, 'au', 969083000, 'au')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083000, '575632c0d2a3bf9958f9970a1e2dde75')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:52', 969082721, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082721 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082721, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082721 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:52', NULL, 969082721, 'test_bd', 'successful', '2015-02-23 18:16:52')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:52' WHERE `dispatched_services`.`id` = 2712  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082721 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e79caf867bc217145e8b71dd4aa735fa' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:52', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'format', 'journal', 969083001, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'title', 1, 'title', 969083001, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'author', 1, 'au', 969083001, 'au')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083001, 'e79caf867bc217145e8b71dd4aa735fa')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:52', 969082722, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (15.2ms) COMMIT ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082722 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082722 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:52', NULL, 969082722, 'test_bd', 'successful', '2015-02-23 18:16:52')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:52' WHERE `dispatched_services`.`id` = 2713  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082722 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f059254f680520804e69088c20b0ee37' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:52', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'format', 'journal', 969083002, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'title', 1, 'title', 969083002, 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'author', 1, 'au', 969083002, 'au')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083002, 'f059254f680520804e69088c20b0ee37')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:52', 969082723, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082723 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082723, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082723 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:52', NULL, 969082723, 'test_bd', 'successful', '2015-02-23 18:16:52')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:52' WHERE `dispatched_services`.`id` = 2714  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082723 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 45ms (Views: 44.4ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04be4333a7464595fd79364f2b4b584a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083003, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083003, '121212')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083003, '04be4333a7464595fd79364f2b4b584a')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082724"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082724 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082724 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082724  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082724, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082724\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083003 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083003) Redirected to http://test.host/resolve?umlaut.request_id=969082724&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 26.9ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49ead19938a9241ac5116125a95d5cf6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083004, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083004, '121212')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083004, '49ead19938a9241ac5116125a95d5cf6')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082725, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082725"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082725 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082725 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013930  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082725, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013930\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083004 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083004) Redirected to http://test.host/resolve?umlaut.request_id=969082725&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 27.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '077ce92e6f461deabf8144c67515147a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083005, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083005, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083005, '077ce92e6f461deabf8144c67515147a')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082726, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082726"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082726 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082726 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082726 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:53', NULL, 969082726, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:53')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2715  (19.4ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082726, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.7ms) COMMIT Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083005 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083005) Redirected to http://test.host/resolve?umlaut.request_id=969082726&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 83ms (ActiveRecord: 72.1ms) DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082726 ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082726 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082726 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2715  (15.2ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013933  (14.1ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63de37fdb7454075b80962eae818043b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083006, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083006, '121212')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083006, '63de37fdb7454075b80962eae818043b')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082727, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082727"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082727 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082727 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082727 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:53', NULL, 969082727, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:53')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2716  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (4.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082727, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083006 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083006) Redirected to http://example.org Completed 302 Found in 83ms (ActiveRecord: 69.3ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f1c5595da4d8bbfd9cd09a0c83fe6eec' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083007, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083007, '121212')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083007, 'f1c5595da4d8bbfd9cd09a0c83fe6eec')  (15.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082728, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082728"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082728 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082728 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082728 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:53', NULL, 969082728, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:53')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2717  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082728, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083007 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083007) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 72ms (Views: 0.3ms | ActiveRecord: 61.8ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a252468cae2c2b1701fb972ecc7f464' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082728 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (4.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083008, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083008, '121212') SQL (7.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2717  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013937  (24.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083008, '2a252468cae2c2b1701fb972ecc7f464')  (16.3ms) COMMIT  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082729"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082729 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082729 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082729, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083008 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083008) Redirected to http://test.host/resolve?umlaut.request_id=969082729&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.7ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f94f3a1d5a366febcb98befa9e649e37' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:16:53', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083009, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'auinit', 1, 'rd', 969083009, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'aulast', 1, 'kaplan', 969083009, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'atitle', 1, 'the coming anarchy', 969083009, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'title', 1, 'the atlantic monthly', 969083009, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'volume', 1, '273', 969083009, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'issue', 1, '2', 969083009, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'date', 1, '1994', 969083009, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'spage', 1, '44', 969083009, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'issn', 1, '1072-7825', 969083009, '1072-7825')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083009, 'info:sid/google', 'f94f3a1d5a366febcb98befa9e649e37')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082730 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:53', NULL, 969082730, 'test_bd', 'successful', '2015-02-23 18:16:53')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2718  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082730 ServiceResponse Exists (2.9ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082730 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '692b61af5bb22fba4c558a5577f696a4' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:53', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083010, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083010, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'aulast', 1, 'grimes', 969083010, 'Grimes')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:16:54', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083010, '692b61af5bb22fba4c558a5577f696a4')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082731, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.2ms) COMMIT ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082731 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 52ms (Views: 42.1ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 35ms (Views: 0.4ms | ActiveRecord: 6.7ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '596e16e810ff0c999fc900a512537969' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083011, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083011, '121212')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083011, '596e16e810ff0c999fc900a512537969')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082732"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082732 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082732 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082732  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082732, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082732\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083011 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083011) Redirected to http://test.host/resolve?umlaut.request_id=969082732&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 92ms (ActiveRecord: 35.2ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5499a37a6710ef868be7f7332ea3c102' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083012, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083012, '121212')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (7.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083012, '5499a37a6710ef868be7f7332ea3c102')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082733, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082733"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082733 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082733 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013941  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082733, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013941\n', 'BorrowDirect', 'bd_request_status')  (15.7ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083012 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083012) Redirected to http://test.host/resolve?umlaut.request_id=969082733&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 29.8ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e9a50e10cee59f163c3905fc09b4511' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083013, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083013, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083013, '4e9a50e10cee59f163c3905fc09b4511')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082734, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082734"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082734 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082734 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:28', NULL, 969082734, 'BorrowDirect', 'in_progress', '2015-02-23 18:17:28')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2719  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082734, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083013 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083013) Redirected to http://test.host/resolve?umlaut.request_id=969082734&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 89ms (ActiveRecord: 67.7ms) DispatchedService Load (4.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082734 ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082734 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2719  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013944  (14.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8ea4c3dccf1b7c223e9100203eca60d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083014, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083014, '121212')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083014, 'a8ea4c3dccf1b7c223e9100203eca60d')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082735, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082735"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082735 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082735 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082735 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:28', NULL, 969082735, 'BorrowDirect', 'in_progress', '2015-02-23 18:17:28')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2720  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082735, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083014 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083014) Redirected to http://example.org Completed 302 Found in 77ms (ActiveRecord: 65.6ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082735 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN Request Load (3.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a07617fc5803277e4aec5a93a509659' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (3.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2720 SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083015, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083015, '121212')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013946  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083015, '4a07617fc5803277e4aec5a93a509659')  (17.0ms) COMMIT  (16.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082736, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082736"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082736 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082736 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082736 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:28', NULL, 969082736, 'BorrowDirect', 'in_progress', '2015-02-23 18:17:28')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2721  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082736, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083015 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083015) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 61.2ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb43cd5850160203cfc28bbd586dc578' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN DispatchedService Load (3.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082736 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (3.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083016, 'journal') SQL (2.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2721 SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083016, '121212')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013948  (19.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083016, 'fb43cd5850160203cfc28bbd586dc578')  (16.6ms) COMMIT  (15.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082737"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082737 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082737 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082737, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083016 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083016) Redirected to http://test.host/resolve?umlaut.request_id=969082737&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 28.8ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b78a227b3db10fc80c407540eca59042' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083017, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'title', 969083017, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'author', 1, 'au', 969083017, 'au')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083017, 'b78a227b3db10fc80c407540eca59042')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:29', 969082738, '--- {}\n', 'test_holding', 'holding')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082738, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082738 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082738, 'test_bd', 'successful', '2015-02-23 18:17:29')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2722  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082738 ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082738 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62e9746eac1122c1ab528b5b825aedd6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083018, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'title', 969083018, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'author', 1, 'au', 969083018, 'au')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083018, '62e9746eac1122c1ab528b5b825aedd6')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:29', 969082739, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (13.8ms) COMMIT ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082739 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082739 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082739, 'test_bd', 'successful', '2015-02-23 18:17:29')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2723  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082739 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '557c228402c653e8312e859a297c5585' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083019, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'title', 969083019, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'author', 1, 'au', 969083019, 'au')  (16.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083019, '557c228402c653e8312e859a297c5585')  (14.4ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:29', 969082740, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.4ms) COMMIT ServiceResponse Load (7.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082740 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082740, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082740 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082740, 'test_bd', 'successful', '2015-02-23 18:17:29')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2724  (13.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082740 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9fb7a0a236cac481cf725f736ab34ad8' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083020, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'title', 969083020, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'author', 1, 'au', 969083020, 'au')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083020, '9fb7a0a236cac481cf725f736ab34ad8')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:29', 969082741, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082741 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082741, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082741 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082741, 'test_bd', 'successful', '2015-02-23 18:17:29')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2725  (14.0ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082741 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76dbf1b7d4075dd06b23ec6f57474c86' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:17:29', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'book', 969083021, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'auinit', 1, 'eh', 969083021, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'aulast', 1, 'lenneberg', 969083021, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'biological foundations of language', 969083021, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'genre', 1, 'book', 969083021, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'date', 1, '1967', 969083021, '1967')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083021, 'info:sid/google', '76dbf1b7d4075dd06b23ec6f57474c86')  (14.1ms) COMMIT ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082742 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082742, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082742 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082742, 'test_bd', 'successful', '2015-02-23 18:17:29')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2726  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082742 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb9deffbc32b254049bd4b049cdf1353' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:17:29', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083022, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'auinit', 1, 'rd', 969083022, 'RD') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'aulast', 1, 'kaplan', 969083022, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'atitle', 1, 'the coming anarchy', 969083022, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'the atlantic monthly', 969083022, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'volume', 1, '273', 969083022, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'issue', 1, '2', 969083022, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'date', 1, '1994', 969083022, '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'spage', 1, '44', 969083022, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'issn', 1, '1072-7825', 969083022, '1072-7825')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083022, 'info:sid/google', 'fb9deffbc32b254049bd4b049cdf1353')  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082743 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082743, 'test_bd', 'successful', '2015-02-23 18:17:29')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2727  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082743 ServiceResponse Exists (3.1ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082743 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '436c4ed61191fb4331c7438e67d806f5' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083023, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083023, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'aulast', 1, 'grimes', 969083023, 'Grimes')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083023, '436c4ed61191fb4331c7438e67d806f5')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082744, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.3ms) COMMIT ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082744 ORDER BY id ASC Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3caf759eb292c3563f9f8910e71a6cfe' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:29', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083024, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'isbn', 1, '9789810743734', 969083024, '9789810743734')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083024, '3caf759eb292c3563f9f8910e71a6cfe')  (17.4ms) COMMIT ServiceResponse Load (10.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082745 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082745, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082745 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082745, 'test_bd', 'successful', '2015-02-23 18:17:29')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2728  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082745 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92c407ef7e6031d3170dd772652d9313' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:29', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083025, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'isbn', 1, '9789810743734', 969083025, '9789810743734')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083025, '92c407ef7e6031d3170dd772652d9313')  (17.5ms) COMMIT ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082746 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082746, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:30', 'Choose your delivery location', 969082746, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082746 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082746, 'test_bd', 'successful', '2015-02-23 18:17:30')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2729  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082746 Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a7d27647d51a021f8b43029956e378dc' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:30', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'journal', 969083026, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'isbn', 1, '000000000', 969083026, '000000000')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:17:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083026, 'a7d27647d51a021f8b43029956e378dc')  (14.2ms) COMMIT ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082747 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082747, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:30', 'This item is not currently available from BorrowDirect', 969082747, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082747 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082747, 'test_bd', 'successful', '2015-02-23 18:17:30')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2730  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082747 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53a3737d11216dc20b343e4be368530a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:30', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'journal', 969083027, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'isbn', 1, '0109836413', 969083027, '0109836413')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:17:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083027, '53a3737d11216dc20b343e4be368530a')  (15.4ms) COMMIT ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082748 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082748, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:30', 'This item is not currently available from BorrowDirect', 969082748, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082748 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082748, 'test_bd', 'successful', '2015-02-23 18:17:30')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2731  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082748 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '429db24d1b5af194e73d804efce06830' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:30', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'journal', 969083028, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'isbn', 1, '9789810743734', 969083028, '9789810743734')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (9.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083028, '429db24d1b5af194e73d804efce06830')  (14.3ms) COMMIT ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082749 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082749, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082749 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082749, 'test_bd', 'failed_temporary', '2015-02-23 18:17:30')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2732  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082749 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a67d4a65d08ae1571821285183ca084' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:30', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'journal', 969083029, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'isbn', 1, '9789810743734', 969083029, '9789810743734')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083029, '8a67d4a65d08ae1571821285183ca084')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082750  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082750  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082750, 'test_bd', 'queued', '2015-02-23 18:17:30')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2733  (14.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082750 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083029) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083029) ServiceResponse Load (7.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082750) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082750) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082750 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082750 AND `dispatched_services`.`id` = 2733 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082750, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT Umlaut: Threaded service raised exception. Service: test_bd, VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/available Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in `find_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in `find' umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle' umlaut app/service_adaptors/service.rb:92:in `handle_wrapper' umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle' Completed 500 Internal Server Error in 198ms ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:17:30 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a40df78e0fc8b894eb37523e35acca2' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:30', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'book', 969083030, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'genre', 1, 'book', 969083030, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'author', 1, 'smith', 969083030, 'Smith') SQL (8.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'title', 1, 'some book', 969083030, 'Some Book')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:17:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083030, '8a40df78e0fc8b894eb37523e35acca2')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082751  (66.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082751, 'BorrowDirect', 'queued', '2015-02-23 18:17:30')  (53.5ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2734  (15.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082751 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083030) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083030) ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082751) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082751) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (28.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082751 AND `dispatched_services`.`id` = 2734 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082751, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (19.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (36.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2734  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082751 LIMIT 1 DispatchedService Load (7.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083030 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083030) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082751 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083030 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082751  (15.1ms) COMMIT Completed 200 OK in 473ms (Views: 91.9ms | ActiveRecord: 227.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:17:31 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53911d556440ba688587c49a54b983df' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (6.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:31', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'format', 'journal', 969083031, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'genre', 1, 'article', 969083031, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'title', 1, 'foo', 969083031, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'author', 1, 'bar', 969083031, 'bar')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:17:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083031, '53911d556440ba688587c49a54b983df')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082752  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:31', NULL, 969082752, 'BorrowDirect', 'queued', '2015-02-23 18:17:31')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2735  (15.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082752 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083031) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083031) ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082752) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082752) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082752 AND `dispatched_services`.`id` = 2735 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2735  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082752 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083031 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083031) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082752 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083031 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (18.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082752  (14.3ms) COMMIT Completed 200 OK in 234ms (Views: 17.3ms | ActiveRecord: 140.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98a32fe08c23580da0310dc57d6f39b5' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:31', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'format', 'book', 969083032, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'genre', 1, 'book', 969083032, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'title', 1, 'foo', 969083032, 'foo')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (6.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:17:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083032, '98a32fe08c23580da0310dc57d6f39b5')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082753 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:31', NULL, 969082753, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:17:31')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2736  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082753" for 127.0.0.1 at 2015-02-23 13:17:31 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082753"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082753 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083032 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083032)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082753  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082753 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082753 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082753 [["request_id", 969082753]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083032 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083032) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082753 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082753 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083032 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082753  (14.7ms) COMMIT Completed 200 OK in 79ms (Views: 18.9ms | ActiveRecord: 52.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91321373fa6bd57211f0b2ca88d3f836' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:31', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'format', 'journal', 969083033, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'isbn', 1, '9789810743734', 969083033, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083033, '91321373fa6bd57211f0b2ca88d3f836')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082754  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:31', NULL, 969082754, 'BorrowDirect', 'queued', '2015-02-23 18:17:31')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2737  (14.1ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083033) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082754) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082754) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`id` = 2737 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082754, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:31', 'Choose your delivery location', 969082754, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2737  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083033 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082754 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083033 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082754  (16.4ms) COMMIT Completed 200 OK in 265ms (Views: 24.9ms | ActiveRecord: 120.0ms) Started GET "/borrow_direct/BorrowDirect/969082754?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:17:32 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082754"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082754 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2737  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:32', 969082754, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083033 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033) Redirected to http://www.example.com/resolve?umlaut.request_id=969082754&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 38.8ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2737  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013971  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082754&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:17:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082754", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:17:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083033 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082754  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 [["request_id", 969082754]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083033 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082754 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083033 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082754  (14.8ms) COMMIT Completed 200 OK in 81ms (Views: 21.0ms | ActiveRecord: 51.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:17:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8960ffa9ef6693693acff8399394fbd3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:32', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:32', 'format', 'journal', 969083034, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:32', 'isbn', 1, '0109836413', 969083034, '0109836413')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:17:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083034, '8960ffa9ef6693693acff8399394fbd3')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082755  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:32', NULL, 969082755, 'BorrowDirect', 'queued', '2015-02-23 18:17:32')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2738  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082755 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083034) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083034) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082755) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082755) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082755 AND `dispatched_services`.`id` = 2738 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082755, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:32', 'This item is not currently available from BorrowDirect', 969082755, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2738  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082755 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083034 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083034) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082755 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083034 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082755  (14.2ms) COMMIT Completed 200 OK in 256ms (Views: 20.5ms | ActiveRecord: 118.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '345a03ad949f262e5b737a7098664ed4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:32', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:32', 'format', 'journal', 969083035, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:32', 'isbn', 1, '9789810743734', 969083035, '9789810743734')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083035, '345a03ad949f262e5b737a7098664ed4')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082756  (14.0ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:32', NULL, 969082756, 'BorrowDirect', 'queued', '2015-02-23 18:17:32')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2739  (14.1ms) COMMIT Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083035) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035) ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082756) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082756) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`id` = 2739 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082756, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:32', 'Choose your delivery location', 969082756, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2739  (15.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083035 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082756 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083035 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082756  (14.3ms) COMMIT Completed 200 OK in 302ms (Views: 21.3ms | ActiveRecord: 118.0ms) Started GET "/borrow_direct/BorrowDirect/969082756?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:17:32 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082756"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082756 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2739  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (6.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:32', 969082756, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083035 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035) Redirected to http://www.example.com/resolve?umlaut.request_id=969082756&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 43.7ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2739  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013976  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969082756&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:17:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082756", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:17:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083035 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082756  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 [["request_id", 969082756]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083035 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082756 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083035 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082756  (14.3ms) COMMIT Completed 200 OK in 76ms (Views: 17.4ms | ActiveRecord: 50.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2262c750b8b4ab5db2e0ad4b12c069e2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:33', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:33', 'format', 'journal', 969083036, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:33', 'isbn', 1, '9789810743734', 969083036, '9789810743734')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083036, '2262c750b8b4ab5db2e0ad4b12c069e2')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082757  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757  (0.8ms) BEGIN SQL (12.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:33', NULL, 969082757, 'BorrowDirect', 'queued', '2015-02-23 18:17:33')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:33' WHERE `dispatched_services`.`id` = 2740  (14.2ms) COMMIT Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082757 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083036) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083036) ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082757) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082757) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082757 AND `dispatched_services`.`id` = 2740 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082757, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:33', 'Choose your delivery location', 969082757, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:33' WHERE `dispatched_services`.`id` = 2740  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082757 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083036 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083036) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082757 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082757 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083036 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082757  (14.1ms) COMMIT Completed 200 OK in 268ms (Views: 21.0ms | ActiveRecord: 129.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e168673733aaf0c9512dc716b1b0c97' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:33', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:33', 'format', 'journal', 969083037, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:33', 'isbn', 1, '9789810743734', 969083037, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083037, '5e168673733aaf0c9512dc716b1b0c97')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082758  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:33', NULL, 969082758, 'BorrowDirect', 'queued', '2015-02-23 18:17:33')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:33' WHERE `dispatched_services`.`id` = 2741  (14.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083037) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082758) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082758) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`id` = 2741 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082758, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:33', 'Choose your delivery location', 969082758, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:33' WHERE `dispatched_services`.`id` = 2741  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083037 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082758 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083037 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082758  (14.5ms) COMMIT Completed 200 OK in 259ms (Views: 21.1ms | ActiveRecord: 119.1ms) Started GET "/borrow_direct/BorrowDirect/969082758" for 127.0.0.1 at 2015-02-23 13:17:33 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082758"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082758 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:33', 969082758, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083037 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037) Redirected to http://www.example.com/resolve?umlaut.request_id=969082758&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 19.9ms) Started GET "/resolve?umlaut.request_id=969082758&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:17:33 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082758", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:17:33-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083037 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082758  (14.3ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 [["request_id", 969082758]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083037 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082758 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083037 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082758  (14.2ms) COMMIT Completed 200 OK in 79ms (Views: 21.3ms | ActiveRecord: 49.3ms)  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.9ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.9ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '655cfb232eabfb45ad952743f6ef784a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:58', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:58', 'format', 'journal', 969083038, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:58', 'isbn', 1, '000000000', 969083038, '000000000')  (14.8ms) COMMIT  (1.1ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:17:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083038, '655cfb232eabfb45ad952743f6ef784a')  (14.8ms) COMMIT ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082759 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082759, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:59', 'This item is not currently available from BorrowDirect', 969082759, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082759 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082759, 'test_bd', 'successful', '2015-02-23 18:17:59')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:59' WHERE `dispatched_services`.`id` = 2742  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082759 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7312a5a4befc48b5eae5557c46887415' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:59', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'format', 'journal', 969083039, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'isbn', 1, '0109836413', 969083039, '0109836413')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:17:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083039, '7312a5a4befc48b5eae5557c46887415')  (14.5ms) COMMIT ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082760 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082760, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:59', 'This item is not currently available from BorrowDirect', 969082760, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082760 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082760, 'test_bd', 'successful', '2015-02-23 18:17:59')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:59' WHERE `dispatched_services`.`id` = 2743  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082760 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '966fcebe915570e74d859b22fc5d2f57' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:59', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'format', 'journal', 969083040, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'isbn', 1, '9789810743734', 969083040, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083040, '966fcebe915570e74d859b22fc5d2f57')  (14.5ms) COMMIT ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082761 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082761, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:59', 'Choose your delivery location', 969082761, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082761 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082761, 'test_bd', 'successful', '2015-02-23 18:17:59')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:59' WHERE `dispatched_services`.`id` = 2744  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082761 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b724e06484278640b85bcd251728388d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:59', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'format', 'journal', 969083041, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'isbn', 1, '9789810743734', 969083041, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083041, 'b724e06484278640b85bcd251728388d')  (15.2ms) COMMIT ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082762 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082762, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082762 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082762, 'test_bd', 'failed_temporary', '2015-02-23 18:17:59')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:17:59' WHERE `dispatched_services`.`id` = 2745  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082762  (0.9ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.8ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (1.0ms) ROLLBACK ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:59 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa7a2cf84a3231eaba11d8d2eeca14ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:59', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'format', 'journal', 969083042, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'isbn', 1, '9789810743734', 969083042, '9789810743734')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083042, 'fa7a2cf84a3231eaba11d8d2eeca14ad')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082763  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082763, 'test_bd', 'queued', '2015-02-23 18:17:59')  (21.6ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2746  (19.8ms) COMMIT Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082763 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083042) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083042) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082763) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082763) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082763 AND `dispatched_services`.`id` = 2746 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082763, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2746  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082763 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083042 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083042) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (9.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082763 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (12.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (36.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (101.3ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083042 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082763  (14.3ms) COMMIT Completed 200 OK in 464ms (Views: 139.0ms | ActiveRecord: 133.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:18:00 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'edf46a801b0eb476367ee89cfdc74f2a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:00', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'format', 'book', 969083043, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'genre', 1, 'book', 969083043, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'author', 1, 'smith', 969083043, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'title', 1, 'some book', 969083043, 'Some Book')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:18:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083043, 'edf46a801b0eb476367ee89cfdc74f2a')  (18.7ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082764  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:00', NULL, 969082764, 'BorrowDirect', 'queued', '2015-02-23 18:18:00')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2747  (13.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082764 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083043) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083043) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082764) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082764) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082764 AND `dispatched_services`.`id` = 2747 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082764, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (13.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2747  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082764 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083043 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083043) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082764 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083043 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082764  (14.5ms) COMMIT Completed 200 OK in 246ms (Views: 19.1ms | ActiveRecord: 131.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:18:00 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd257a2ab08d29612fed02514c4c58f4b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:00', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'format', 'journal', 969083044, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'genre', 1, 'article', 969083044, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'title', 1, 'foo', 969083044, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'author', 1, 'bar', 969083044, 'bar')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:18:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083044, 'd257a2ab08d29612fed02514c4c58f4b')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082765  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:00', NULL, 969082765, 'BorrowDirect', 'queued', '2015-02-23 18:18:00')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2748  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082765 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083044) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083044) ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082765) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082765) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082765 AND `dispatched_services`.`id` = 2748 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2748  (14.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082765 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083044 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083044) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082765 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083044 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082765  (14.7ms) COMMIT Completed 200 OK in 211ms (Views: 16.3ms | ActiveRecord: 120.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8f61da96f80d76ad356bf9d3972785b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:00', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'format', 'book', 969083045, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'genre', 1, 'book', 969083045, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'title', 1, 'foo', 969083045, 'foo')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:18:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083045, 'f8f61da96f80d76ad356bf9d3972785b')  (40.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082766 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:00', NULL, 969082766, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:18:00')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2749  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969082766" for 127.0.0.1 at 2015-02-23 13:18:01 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082766"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082766 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083045 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083045)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082766  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082766 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082766 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082766 [["request_id", 969082766]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083045 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083045) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082766 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082766 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083045 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082766  (14.2ms) COMMIT Completed 200 OK in 76ms (Views: 18.9ms | ActiveRecord: 50.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:18:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e27ca6a012a74b2e5eb2d81c1c282803' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:01', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'format', 'journal', 969083046, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'isbn', 1, '9789810743734', 969083046, '9789810743734')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083046, 'e27ca6a012a74b2e5eb2d81c1c282803')  (14.0ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082767  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:01', NULL, 969082767, 'BorrowDirect', 'queued', '2015-02-23 18:18:01')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2750  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083046) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046) ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082767) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082767) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`id` = 2750 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082767, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:01', 'Choose your delivery location', 969082767, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2750  (13.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083046 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082767 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083046 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082767  (14.2ms) COMMIT Completed 200 OK in 302ms (Views: 23.8ms | ActiveRecord: 118.7ms) Started GET "/borrow_direct/BorrowDirect/969082767?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:18:01 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082767"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082767 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2750  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:01', 969082767, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083046 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046) Redirected to http://www.example.com/resolve?umlaut.request_id=969082767&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 53ms (ActiveRecord: 37.9ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (45.0ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2750  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013993  (36.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082767&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:18:01 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082767", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:18:01-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083046 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082767  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 [["request_id", 969082767]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083046 LIMIT 1 ReferentValue Load (0.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082767 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083046 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082767  (14.2ms) COMMIT Completed 200 OK in 80ms (Views: 21.1ms | ActiveRecord: 49.4ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:18:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cc18578aaa6f789fb7a578914d64a1d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:01', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'format', 'journal', 969083047, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'isbn', 1, '0109836413', 969083047, '0109836413')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:18:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083047, '8cc18578aaa6f789fb7a578914d64a1d')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082768  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:01', NULL, 969082768, 'BorrowDirect', 'queued', '2015-02-23 18:18:01')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2751  (14.4ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082768 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083047) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083047) ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082768) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082768) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082768 AND `dispatched_services`.`id` = 2751 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082768, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.7ms) COMMIT  (1.3ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:01', 'This item is not currently available from BorrowDirect', 969082768, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (20.0ms) COMMIT DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2751  (21.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082768 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083047 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083047) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082768 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083047 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082768  (18.8ms) COMMIT Completed 200 OK in 279ms (Views: 20.0ms | ActiveRecord: 123.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:18:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa43e13f5fff9f7808055583e04cb779' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:01', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'format', 'journal', 969083048, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'isbn', 1, '9789810743734', 969083048, '9789810743734')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083048, 'fa43e13f5fff9f7808055583e04cb779')  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082769  (15.4ms) COMMIT DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:02', NULL, 969082769, 'BorrowDirect', 'queued', '2015-02-23 18:18:02')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (43.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2752  (19.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083048) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048) ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082769) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082769) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`id` = 2752 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082769, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:02', 'Choose your delivery location', 969082769, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (23.2ms) COMMIT DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2752  (17.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083048 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082769 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083048 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082769  (19.8ms) COMMIT Completed 200 OK in 333ms (Views: 21.3ms | ActiveRecord: 176.9ms) Started GET "/borrow_direct/BorrowDirect/969082769?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:18:02 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082769"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082769 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2752  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:02', 969082769, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083048 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048) Redirected to http://www.example.com/resolve?umlaut.request_id=969082769&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 39.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2752  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013998  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082769&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:18:02 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082769", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:18:02-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083048 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048)  (1.1ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082769  (19.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 [["request_id", 969082769]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083048 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082769 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083048 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082769  (20.5ms) COMMIT Completed 200 OK in 88ms (Views: 17.9ms | ActiveRecord: 60.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:18:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ce2721bbf1c8de37ae8000d7ea31ac2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:02', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:02', 'format', 'journal', 969083049, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:02', 'isbn', 1, '9789810743734', 969083049, '9789810743734')  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083049, '0ce2721bbf1c8de37ae8000d7ea31ac2')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082770  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:02', NULL, 969082770, 'BorrowDirect', 'queued', '2015-02-23 18:18:02')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2753  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082770 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083049) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083049) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082770) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082770) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082770 AND `dispatched_services`.`id` = 2753 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082770, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:02', 'Choose your delivery location', 969082770, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2753  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082770 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083049 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083049) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082770 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082770 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083049 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082770  (14.6ms) COMMIT Completed 200 OK in 262ms (Views: 20.8ms | ActiveRecord: 117.8ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:18:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'feef9a4248aad1296d19db5869a9847c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:02', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:02', 'format', 'journal', 969083050, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:02', 'isbn', 1, '9789810743734', 969083050, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083050, 'feef9a4248aad1296d19db5869a9847c')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082771  (14.3ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:02', NULL, 969082771, 'BorrowDirect', 'queued', '2015-02-23 18:18:02')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2754  (18.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083050) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082771) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082771) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`id` = 2754 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082771, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:02', 'Choose your delivery location', 969082771, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2754  (23.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1 DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.0ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083050 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082771 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083050 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082771  (41.4ms) COMMIT Completed 200 OK in 353ms (Views: 22.3ms | ActiveRecord: 150.3ms) Started GET "/borrow_direct/BorrowDirect/969082771" for 127.0.0.1 at 2015-02-23 13:18:03 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082771"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082771 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:03', 969082771, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (20.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083050 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050) Redirected to http://www.example.com/resolve?umlaut.request_id=969082771&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 26.3ms) Started GET "/resolve?umlaut.request_id=969082771&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:18:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082771", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:18:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083050 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082771  (15.6ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 [["request_id", 969082771]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083050 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082771 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083050 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082771  (15.1ms) COMMIT Completed 200 OK in 83ms (Views: 21.9ms | ActiveRecord: 51.9ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29431e1499cd6ea3b5290acfc3180e07' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:03', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083051, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'isbn', 1, '9789810743734', 969083051, '9789810743734')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083051, '29431e1499cd6ea3b5290acfc3180e07')  (14.7ms) COMMIT ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082772 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082772, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082772 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082772, 'test_bd', 'successful', '2015-02-23 18:18:03')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2755  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082772 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb5e7bcd732ff30ed7e519ba7053f785' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:03', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083052, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'title', 969083052, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'author', 1, 'au', 969083052, 'au')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083052, 'fb5e7bcd732ff30ed7e519ba7053f785')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:03', 969082773, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (17.9ms) COMMIT ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082773 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082773 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082773, 'test_bd', 'successful', '2015-02-23 18:18:03')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2756  (19.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082773 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd8e01992f749027db9a176a0a03878d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:03', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083053, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'title', 969083053, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'author', 1, 'au', 969083053, 'au')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083053, 'bd8e01992f749027db9a176a0a03878d')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:03', 969082774, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (13.9ms) COMMIT ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082774 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082774, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082774 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082774, 'test_bd', 'successful', '2015-02-23 18:18:03')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2757  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082774 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d69b59c031f44a8e5311755af064ab3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:03', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083054, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'title', 969083054, 'title') SQL (6.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'author', 1, 'au', 969083054, 'au')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083054, '4d69b59c031f44a8e5311755af064ab3')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:03', 969082775, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082775 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082775, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082775 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082775, 'test_bd', 'successful', '2015-02-23 18:18:03')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2758  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082775 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd432da67102215bce80a60af59f39a8f' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:03', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083055, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083055, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'aulast', 1, 'grimes', 969083055, 'Grimes')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083055, 'd432da67102215bce80a60af59f39a8f')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082776, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.3ms) COMMIT ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082776 ORDER BY id ASC Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e185561d7471bc51d4a6766a6461bb2f' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:18:03', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083056, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'auinit', 1, 'rd', 969083056, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'aulast', 1, 'kaplan', 969083056, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'atitle', 1, 'the coming anarchy', 969083056, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'the atlantic monthly', 969083056, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'volume', 1, '273', 969083056, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'issue', 1, '2', 969083056, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'date', 1, '1994', 969083056, '1994') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'spage', 1, '44', 969083056, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'issn', 1, '1072-7825', 969083056, '1072-7825')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083056, 'info:sid/google', 'e185561d7471bc51d4a6766a6461bb2f')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082777 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082777, 'test_bd', 'successful', '2015-02-23 18:18:03')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2759  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082777 ServiceResponse Exists (3.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082777 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49f66163316bd3e0a0f8b45272eacb5a' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:18:04', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'book', 969083057, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'auinit', 1, 'eh', 969083057, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'aulast', 1, 'lenneberg', 969083057, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'title', 1, 'biological foundations of language', 969083057, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'genre', 1, 'book', 969083057, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'date', 1, '1967', 969083057, '1967')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083057, 'info:sid/google', '49f66163316bd3e0a0f8b45272eacb5a')  (14.0ms) COMMIT ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082778 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082778, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082778 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:04', NULL, 969082778, 'test_bd', 'successful', '2015-02-23 18:18:04')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2760  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082778 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04ce86f671a2143874c5cae2202db2b8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083058, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083058, '121212')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083058, '04ce86f671a2143874c5cae2202db2b8')  (15.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082779"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082779 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082779 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082779  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082779, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082779\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083058 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083058) Redirected to http://test.host/resolve?umlaut.request_id=969082779&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 29.2ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '974f489f20896eafa8e9acd7ceed0bfa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083059, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083059, '121212')  (15.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083059, '974f489f20896eafa8e9acd7ceed0bfa')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082780, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082780"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082780 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082780 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014013  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082780, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014013\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083059 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083059) Redirected to http://test.host/resolve?umlaut.request_id=969082780&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 30.1ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab610e0db765ad89ee2e2f631e027d5d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083060, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083060, '121212')  (14.5ms) COMMIT  (1.5ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083060, 'ab610e0db765ad89ee2e2f631e027d5d')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082781, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082781"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082781 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082781 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082781 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:04', NULL, 969082781, 'BorrowDirect', 'in_progress', '2015-02-23 18:18:04')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2761  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082781, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083060 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083060) Redirected to http://test.host/resolve?umlaut.request_id=969082781&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 76ms (ActiveRecord: 62.1ms) DispatchedService Load (4.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082781 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082781 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2761 ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082781 ORDER BY id ASC  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014016  (14.8ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1bac297b373dae9c03ccfafa6fc488c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083061, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083061, '121212')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083061, 'd1bac297b373dae9c03ccfafa6fc488c')  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082782, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082782"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082782 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082782 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:04', NULL, 969082782, 'BorrowDirect', 'in_progress', '2015-02-23 18:18:04')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2762  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082782, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.0ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083061 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083061) Redirected to http://example.org Completed 302 Found in 74ms (ActiveRecord: 64.7ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '862e9b908fb8ab7ea62b088a17666cd8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN  (2.4ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212') SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2762 SQL (2.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083062, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083062, '121212')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014018  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083062, '862e9b908fb8ab7ea62b088a17666cd8')  (15.5ms) COMMIT  (14.7ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082783, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082783"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082783 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082783 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082783 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:04', NULL, 969082783, 'BorrowDirect', 'in_progress', '2015-02-23 18:18:04')  (16.3ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2763  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082783, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083062 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083062) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 78ms (Views: 0.3ms | ActiveRecord: 65.2ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '202aab83695372a7b98755673a0f769d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082783 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN  (2.3ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083063, 'journal') SQL (2.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2763 SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083063, '121212')  (16.6ms) COMMIT  (0.6ms) BEGIN SQL (2.9ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014020  (25.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083063, '202aab83695372a7b98755673a0f769d')  (34.3ms) COMMIT  (25.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082784"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082784 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082784 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082784, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.9ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083063 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083063) Redirected to http://test.host/resolve?umlaut.request_id=969082784&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 29.8ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a56cb6eb0df25cf6a0485362c7647b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:04', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083064, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'title', 1, 'title', 969083064, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'author', 1, 'au', 969083064, 'au')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083064, '8a56cb6eb0df25cf6a0485362c7647b3')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082785, '--- {}\n', 'test_holding', 'holding')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082785, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082785 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:05', NULL, 969082785, 'test_bd', 'successful', '2015-02-23 18:18:05')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:05' WHERE `dispatched_services`.`id` = 2764  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082785 ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082785 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '080bcf416fea5d2c24ccd91a7d10e145' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:09', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'format', 'journal', 969083065, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083065, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'aulast', 1, 'grimes', 969083065, 'Grimes')  (21.9ms) COMMIT  (2.2ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:19:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083065, '080bcf416fea5d2c24ccd91a7d10e145')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082786, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.2ms) COMMIT ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082786 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc978bd98ce661b94aea0a010e6da8d1' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:19:09', 'biological foundations of language', '1967') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'format', 'book', 969083066, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'auinit', 1, 'eh', 969083066, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'aulast', 1, 'lenneberg', 969083066, 'Lenneberg') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'title', 1, 'biological foundations of language', 969083066, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'genre', 1, 'book', 969083066, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'date', 1, '1967', 969083066, '1967')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:19:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083066, 'info:sid/google', 'dc978bd98ce661b94aea0a010e6da8d1')  (14.1ms) COMMIT ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082787 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082787, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082787 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:09', NULL, 969082787, 'test_bd', 'successful', '2015-02-23 18:19:09')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:09' WHERE `dispatched_services`.`id` = 2765  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082787 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f3ce92c604ab4cc9c3e2b2b1800e950b' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:19:09', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'format', 'journal', 969083067, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'auinit', 1, 'rd', 969083067, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'aulast', 1, 'kaplan', 969083067, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'atitle', 1, 'the coming anarchy', 969083067, 'The coming anarchy') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'title', 1, 'the atlantic monthly', 969083067, 'The Atlantic monthly') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'volume', 1, '273', 969083067, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'issue', 1, '2', 969083067, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'date', 1, '1994', 969083067, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'spage', 1, '44', 969083067, '44') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'issn', 1, '1072-7825', 969083067, '1072-7825')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:19:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083067, 'info:sid/google', 'f3ce92c604ab4cc9c3e2b2b1800e950b')  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082788 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:09', NULL, 969082788, 'test_bd', 'successful', '2015-02-23 18:19:09')  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:09' WHERE `dispatched_services`.`id` = 2766  (19.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082788 ServiceResponse Exists (3.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082788 LIMIT 1 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c2b1d1bba83d2aeb84c925281aac65e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (7.8ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:09', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'format', 'journal', 969083068, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'isbn', 1, '9789810743734', 969083068, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083068, '2c2b1d1bba83d2aeb84c925281aac65e')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082789  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:09', NULL, 969082789, 'test_bd', 'queued', '2015-02-23 18:19:09')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:09' WHERE `dispatched_services`.`id` = 2767  (14.9ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082789 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083068) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083068) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082789) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082789) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082789 AND `dispatched_services`.`id` = 2767 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082789, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2767  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082789 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083068 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083068) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082789 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (14.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (43.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (46.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (120.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083068 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082789  (14.6ms) COMMIT Completed 200 OK in 502ms (Views: 169.6ms | ActiveRecord: 128.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:19:10 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1924e2eb9e786bc56a39185b22fb475c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:10', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'format', 'book', 969083069, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'genre', 1, 'book', 969083069, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'author', 1, 'smith', 969083069, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'title', 1, 'some book', 969083069, 'Some Book')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:19:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083069, '1924e2eb9e786bc56a39185b22fb475c')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082790  (15.0ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:10', NULL, 969082790, 'BorrowDirect', 'queued', '2015-02-23 18:19:10')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2768  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082790 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083069) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083069) ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082790) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082790) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082790 AND `dispatched_services`.`id` = 2768 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082790, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2768  (22.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082790 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083069 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083069) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (10.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082790 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083069 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082790  (17.6ms) COMMIT Completed 200 OK in 267ms (Views: 21.8ms | ActiveRecord: 140.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:19:10 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '766715e7441bd0dfc1148d69e664e0f6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:10', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'format', 'journal', 969083070, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'genre', 1, 'article', 969083070, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'title', 1, 'foo', 969083070, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'author', 1, 'bar', 969083070, 'bar')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:19:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083070, '766715e7441bd0dfc1148d69e664e0f6')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082791  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:10', NULL, 969082791, 'BorrowDirect', 'queued', '2015-02-23 18:19:10')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2769  (14.3ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082791 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083070) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083070) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082791) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082791) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082791 AND `dispatched_services`.`id` = 2769 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2769  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082791 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083070 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083070) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082791 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083070 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082791  (14.8ms) COMMIT Completed 200 OK in 218ms (Views: 17.8ms | ActiveRecord: 121.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '984ea1d6da56344a2e40a84c437cb24d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:10', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'format', 'book', 969083071, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'genre', 1, 'book', 969083071, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'title', 1, 'foo', 969083071, 'foo')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:19:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083071, '984ea1d6da56344a2e40a84c437cb24d')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:10', NULL, 969082792, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:19:10')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2770  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082792" for 127.0.0.1 at 2015-02-23 13:19:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082792"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082792 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083071 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083071)  (0.8ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082792  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082792 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082792 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082792 [["request_id", 969082792]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083071 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083071) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082792 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082792 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083071 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082792  (14.3ms) COMMIT Completed 200 OK in 79ms (Views: 19.9ms | ActiveRecord: 51.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72566f51d6faeb114c824016e4a0a8f5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:11', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'format', 'journal', 969083072, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'isbn', 1, '9789810743734', 969083072, '9789810743734')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083072, '72566f51d6faeb114c824016e4a0a8f5')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082793  (14.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:11', NULL, 969082793, 'BorrowDirect', 'queued', '2015-02-23 18:19:11')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2771  (14.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083072) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082793) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082793) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`id` = 2771 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (9.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082793, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:11', 'Choose your delivery location', 969082793, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2771  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083072 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082793 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083072 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082793  (14.5ms) COMMIT Completed 200 OK in 317ms (Views: 25.3ms | ActiveRecord: 118.4ms) Started GET "/borrow_direct/BorrowDirect/969082793?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:19:11 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082793"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082793 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2771  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:11', 969082793, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083072 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072) Redirected to http://www.example.com/resolve?umlaut.request_id=969082793&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 37.8ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (6.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2771  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014030  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082793&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:11 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082793", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083072 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082793  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 [["request_id", 969082793]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083072 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082793 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083072 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082793  (15.1ms) COMMIT Completed 200 OK in 82ms (Views: 21.6ms | ActiveRecord: 51.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:19:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b41e74064fcb941997eaa06d323964f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:11', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'format', 'journal', 969083073, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'isbn', 1, '0109836413', 969083073, '0109836413')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (6.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:19:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083073, '1b41e74064fcb941997eaa06d323964f')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082794  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:11', NULL, 969082794, 'BorrowDirect', 'queued', '2015-02-23 18:19:11')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2772  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082794 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083073) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083073) ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082794) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082794) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082794 AND `dispatched_services`.`id` = 2772 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082794, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:11', 'This item is not currently available from BorrowDirect', 969082794, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2772  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082794 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083073 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083073) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082794 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083073 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082794  (14.5ms) COMMIT Completed 200 OK in 264ms (Views: 22.0ms | ActiveRecord: 124.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a1fd7ca49daa89bf4ae7cff9de3e087' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:11', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'format', 'journal', 969083074, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'isbn', 1, '9789810743734', 969083074, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083074, '4a1fd7ca49daa89bf4ae7cff9de3e087')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082795  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:11', NULL, 969082795, 'BorrowDirect', 'queued', '2015-02-23 18:19:11')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2773  (14.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083074) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074) ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082795) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082795) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`id` = 2773 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082795, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:12', 'Choose your delivery location', 969082795, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2773  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083074 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.0ms) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082795 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.6ms) Request Load (2.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083074 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082795  (14.2ms) COMMIT Completed 200 OK in 331ms (Views: 34.5ms | ActiveRecord: 120.7ms) Started GET "/borrow_direct/BorrowDirect/969082795?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:19:12 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082795"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082795 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2773  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:12', 969082795, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083074 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074) Redirected to http://www.example.com/resolve?umlaut.request_id=969082795&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 46ms (ActiveRecord: 37.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2773  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014035  (15.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082795&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082795", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083074 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082795  (14.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 [["request_id", 969082795]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083074 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.2ms) ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082795 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083074 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082795  (14.7ms) COMMIT Completed 200 OK in 85ms (Views: 22.7ms | ActiveRecord: 52.1ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd011d14a2910c8c7e9f95835264e06d7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:12', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:12', 'format', 'journal', 969083075, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:12', 'isbn', 1, '9789810743734', 969083075, '9789810743734')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083075, 'd011d14a2910c8c7e9f95835264e06d7')  (19.3ms) COMMIT  (1.0ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082796  (15.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:12', NULL, 969082796, 'BorrowDirect', 'queued', '2015-02-23 18:19:12')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2774  (14.0ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082796 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083075) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083075) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082796) ORDER BY id ASC DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082796) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082796 AND `dispatched_services`.`id` = 2774 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082796, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (50.2ms) COMMIT  (0.6ms) BEGIN SQL (40.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:12', 'Choose your delivery location', 969082796, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (28.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2774  (30.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082796 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083075 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083075) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082796 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082796 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083075 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082796  (18.4ms) COMMIT Completed 200 OK in 412ms (Views: 24.9ms | ActiveRecord: 129.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ff683ab925ae3e8d6867eba6c3e4244' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:12', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:12', 'format', 'journal', 969083076, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:12', 'isbn', 1, '9789810743734', 969083076, '9789810743734')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083076, '1ff683ab925ae3e8d6867eba6c3e4244')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082797  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:12', NULL, 969082797, 'BorrowDirect', 'queued', '2015-02-23 18:19:12')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2775  (14.6ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083076) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082797) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082797) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`id` = 2775 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082797, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 'Choose your delivery location', 969082797, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2775  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083076 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082797 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083076 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082797  (14.4ms) COMMIT Completed 200 OK in 308ms (Views: 21.9ms | ActiveRecord: 118.2ms) Started GET "/borrow_direct/BorrowDirect/969082797" for 127.0.0.1 at 2015-02-23 13:19:13 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082797"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082797 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082797, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083076 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076) Redirected to http://www.example.com/resolve?umlaut.request_id=969082797&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.5ms) Started GET "/resolve?umlaut.request_id=969082797&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:13 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082797", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083076 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082797  (14.0ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 [["request_id", 969082797]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083076 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082797 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083076 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082797  (14.9ms) COMMIT Completed 200 OK in 81ms (Views: 22.3ms | ActiveRecord: 48.9ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '815b9171d66791d52d9fc3a3a4d809c6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:13', 'title') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083077, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'title', 1, 'title', 969083077, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'author', 1, 'au', 969083077, 'au')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083077, '815b9171d66791d52d9fc3a3a4d809c6')  (13.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082798, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (13.3ms) COMMIT ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082798 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082798, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082798 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082798, 'test_bd', 'successful', '2015-02-23 18:19:13')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2776  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082798 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3002c4b20c63d4f56a037e863a78a41e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (8.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:13', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083078, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'title', 1, 'title', 969083078, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'author', 1, 'au', 969083078, 'au')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083078, '3002c4b20c63d4f56a037e863a78a41e')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082799, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082799 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082799, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082799 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082799, 'test_bd', 'successful', '2015-02-23 18:19:13')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2777  (14.1ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082799 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8386927c6fabe9f0f4e3e3afc96f1d2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:13', 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083079, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'title', 1, 'title', 969083079, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'author', 1, 'au', 969083079, 'au')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083079, 'b8386927c6fabe9f0f4e3e3afc96f1d2')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082800, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.2ms) COMMIT ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082800 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082800 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082800, 'test_bd', 'successful', '2015-02-23 18:19:13')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2778  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082800 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '064454f7dd1e89ae922761f3e99c7083' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:13', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083080, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'isbn', 1, '9789810743734', 969083080, '9789810743734')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083080, '064454f7dd1e89ae922761f3e99c7083')  (15.1ms) COMMIT ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082801 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082801, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082801 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082801, 'test_bd', 'successful', '2015-02-23 18:19:13')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2779  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082801 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e0734b9c249f848c928e91eb0d273c8' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:13', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083081, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'title', 1, 'title', 969083081, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'author', 1, 'au', 969083081, 'au')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083081, '5e0734b9c249f848c928e91eb0d273c8')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082802, '--- {}\n', 'test_holding', 'holding')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082802, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (19.5ms) COMMIT DispatchedService Load (2.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082802 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082802, 'test_bd', 'successful', '2015-02-23 18:19:13')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2780  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082802 ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082802 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f31328fc81a96f35c10214dad89e384d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:13', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083082, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'isbn', 1, '121212', 969083082, '121212')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083082, 'f31328fc81a96f35c10214dad89e384d')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082803"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082803 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082803 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082803  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082803, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082803\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083082 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083082) Redirected to http://test.host/resolve?umlaut.request_id=969082803&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 28.6ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4462590e44bfd6d4c2078f273bb171cc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083083, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083083, '121212')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083083, '4462590e44bfd6d4c2078f273bb171cc')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (7.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082804, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082804"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082804 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082804 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014050  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082804, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014050\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083083 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083083) Redirected to http://test.host/resolve?umlaut.request_id=969082804&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 28.9ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e7c4bce5fab00ded0cccbeaee3c6181' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083084, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083084, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083084, '2e7c4bce5fab00ded0cccbeaee3c6181')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082805, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082805"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082805 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082805 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082805 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082805, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:14')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2781  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082805, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083084 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083084) Redirected to http://test.host/resolve?umlaut.request_id=969082805&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 73ms (ActiveRecord: 61.9ms) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082805 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082805 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082805 ORDER BY id ASC  (1.2ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2781  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014053  (14.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89be4c523262a2307927d1d258571429' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083085, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083085, '121212')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083085, '89be4c523262a2307927d1d258571429')  (18.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082806, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082806"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082806 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082806 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082806 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082806, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:14')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2782  (14.6ms) COMMIT  (1.3ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082806, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083085 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083085) Redirected to http://example.org Completed 302 Found in 76ms (ActiveRecord: 61.7ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5eb71c7a2bd7b6ae7b72981a35a9e8f0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083086, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083086, '121212')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083086, '5eb71c7a2bd7b6ae7b72981a35a9e8f0')  (14.6ms) COMMIT  (10.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082807, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082807"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082807 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082807 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082807 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082807, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:14')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2783  (14.0ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082807, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083086 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083086) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 63.5ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26001c36d0f2222825d06434c7007a59' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN DispatchedService Load (4.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082807 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212')  (1.4ms) BEGIN SQL (2.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083087, 'journal') SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2783 SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083087, '121212')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014057  (19.5ms) COMMIT  (1.0ms) BEGIN SQL (13.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083087, '26001c36d0f2222825d06434c7007a59')  (18.1ms) COMMIT  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082808"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082808 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (7.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082808 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082808, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083087 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083087) Redirected to http://test.host/resolve?umlaut.request_id=969082808&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.3ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0b96c3aca197b77dd4d002025d48a89' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083088, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '9789810743734', 969083088, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083088, 'a0b96c3aca197b77dd4d002025d48a89')  (14.1ms) COMMIT ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082809 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082809, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 'Choose your delivery location', 969082809, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082809 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082809, 'test_bd', 'successful', '2015-02-23 18:19:14')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2784  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082809 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74df9775a063433afe74c5c8b848d8a3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083089, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '9789810743734', 969083089, '9789810743734')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (2.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083089, '74df9775a063433afe74c5c8b848d8a3')  (14.0ms) COMMIT ServiceResponse Load (8.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082810 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082810, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082810 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082810, 'test_bd', 'failed_temporary', '2015-02-23 18:19:14')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:19:15' WHERE `dispatched_services`.`id` = 2785  (15.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082810 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b01268736b0a1bddeb482b99cfcf2383' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:15', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:15', 'format', 'journal', 969083090, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:15', 'isbn', 1, '0109836413', 969083090, '0109836413')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:19:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083090, 'b01268736b0a1bddeb482b99cfcf2383')  (14.2ms) COMMIT ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082811 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082811, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:15', 'This item is not currently available from BorrowDirect', 969082811, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082811 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:15', NULL, 969082811, 'test_bd', 'successful', '2015-02-23 18:19:15')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:15' WHERE `dispatched_services`.`id` = 2786  (15.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082811 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45ced78a2c28400693fc4d80b5707653' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:15', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:15', 'format', 'journal', 969083091, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:15', 'isbn', 1, '000000000', 969083091, '000000000')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:19:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083091, '45ced78a2c28400693fc4d80b5707653')  (15.2ms) COMMIT ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082812 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082812, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:15', 'This item is not currently available from BorrowDirect', 969082812, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082812 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:15', NULL, 969082812, 'test_bd', 'successful', '2015-02-23 18:19:15')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:15' WHERE `dispatched_services`.`id` = 2787  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082812 ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fe49c269a7aa92191fa99700c4f7f1e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (7.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:41', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:41', 'format', 'journal', 969083092, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:41', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083092, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:41', 'aulast', 1, 'grimes', 969083092, 'Grimes')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (11.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:19:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083092, '3fe49c269a7aa92191fa99700c4f7f1e')  (15.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082813, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.4ms) COMMIT ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082813 ORDER BY id ASC Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a561e3c52bc2ad75384b5dab06a28043' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:19:42', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083093, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'auinit', 1, 'rd', 969083093, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'aulast', 1, 'kaplan', 969083093, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'atitle', 1, 'the coming anarchy', 969083093, 'The coming anarchy') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'title', 1, 'the atlantic monthly', 969083093, 'The Atlantic monthly') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'volume', 1, '273', 969083093, '273') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'issue', 1, '2', 969083093, '2') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'date', 1, '1994', 969083093, '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'spage', 1, '44', 969083093, '44') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'issn', 1, '1072-7825', 969083093, '1072-7825')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083093, 'info:sid/google', 'a561e3c52bc2ad75384b5dab06a28043')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082814 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:42', NULL, 969082814, 'test_bd', 'successful', '2015-02-23 18:19:42')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2788  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082814 ServiceResponse Exists (3.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082814 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa08ab23d3c127453641178208ccf885' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:19:42', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'book', 969083094, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'auinit', 1, 'eh', 969083094, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'aulast', 1, 'lenneberg', 969083094, 'Lenneberg') SQL (10.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'title', 1, 'biological foundations of language', 969083094, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'genre', 1, 'book', 969083094, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'date', 1, '1967', 969083094, '1967')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083094, 'info:sid/google', 'fa08ab23d3c127453641178208ccf885')  (14.4ms) COMMIT ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082815 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082815, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082815 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:42', NULL, 969082815, 'test_bd', 'successful', '2015-02-23 18:19:42')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2789  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082815  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acc2b4c2cb5463c2177b91ffedd48003' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083095, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'isbn', 1, '121212', 969083095, '121212')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (6.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083095, 'acc2b4c2cb5463c2177b91ffedd48003')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082816"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082816 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082816 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082816  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082816, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082816\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083095 LIMIT 1 ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083095) Redirected to http://test.host/resolve?umlaut.request_id=969082816&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 42ms (ActiveRecord: 29.0ms) Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a519f5d6ffded6b16fc58a019120561' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083096, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'isbn', 1, '121212', 969083096, '121212')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083096, '3a519f5d6ffded6b16fc58a019120561')  (13.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082817, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082817"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082817 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082817 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014069  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082817, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014069\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083096 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083096) Redirected to http://test.host/resolve?umlaut.request_id=969082817&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 28.9ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eeb3d8c0d8c9bee8a002ebd2efce5091' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083097, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'isbn', 1, '121212', 969083097, '121212')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083097, 'eeb3d8c0d8c9bee8a002ebd2efce5091')  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082818, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082818"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082818 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082818 ORDER BY id ASC DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082818 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:42', NULL, 969082818, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:42')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2790  (18.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082818, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.6ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083097 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083097) Redirected to http://test.host/resolve?umlaut.request_id=969082818&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 112ms (ActiveRecord: 68.8ms) DispatchedService Load (4.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082818 ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082818 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082818 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2790  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014072  (14.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71535caa242272c677d6b6eee9a2822a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083098, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'isbn', 1, '121212', 969083098, '121212')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083098, '71535caa242272c677d6b6eee9a2822a')  (13.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082819, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082819"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082819 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082819 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:42', NULL, 969082819, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:42')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2791  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082819, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083098 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083098) Redirected to http://example.org Completed 302 Found in 83ms (ActiveRecord: 69.6ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65c5b75e439d61c563bf6ca6012f9824' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'journal', 969083099, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'isbn', 1, '121212', 969083099, '121212')  (35.8ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083099, '65c5b75e439d61c563bf6ca6012f9824')  (21.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:43', 969082820, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (30.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082820"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082820 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082820 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082820 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (4.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:43', NULL, 969082820, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:43')  (28.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2792  (30.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:43', 969082820, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.7ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083099 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083099) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 111ms (Views: 0.3ms | ActiveRecord: 97.7ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (2.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0b961f9d127d898bf7e3157426b3ea78' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082820 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN  (2.5ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:43', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'journal', 969083100, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'isbn', 1, '121212', 969083100, '121212') SQL (7.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2792  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083100, '0b961f9d127d898bf7e3157426b3ea78')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014076  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082821"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082821 ORDER BY `requests`.`id` ASC LIMIT 1  (15.8ms) COMMIT ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082821 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:43', 969082821, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083100 LIMIT 1 ReferentValue Load (2.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083100) Redirected to http://test.host/resolve?umlaut.request_id=969082821&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 30.1ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11bd599a519aa92febd622836b7a8488' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:43', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'journal', 969083101, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'title', 1, 'title', 969083101, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'author', 1, 'au', 969083101, 'au')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083101, '11bd599a519aa92febd622836b7a8488')  (16.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:43', 969082822, '--- {}\n', 'test_holding', 'holding')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082822, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082822 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:43', NULL, 969082822, 'test_bd', 'successful', '2015-02-23 18:19:43')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2793  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082822 ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082822 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:43 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38ee275d257af1ebced27da22072b580' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:43', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'journal', 969083102, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'isbn', 1, '9789810743734', 969083102, '9789810743734')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083102, '38ee275d257af1ebced27da22072b580')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082823  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:43', NULL, 969082823, 'test_bd', 'queued', '2015-02-23 18:19:43')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2794  (14.1ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082823 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083102) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083102) ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082823) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082823) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082823 AND `dispatched_services`.`id` = 2794 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082823, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2794  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082823 LIMIT 1 DispatchedService Load (7.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083102 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083102) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082823 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (43.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083102 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082823  (14.6ms) COMMIT Completed 200 OK in 382ms (Views: 125.6ms | ActiveRecord: 121.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:19:43 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0cfba120631f672d074f0e7e4f87d73c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:43', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'book', 969083103, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'genre', 1, 'book', 969083103, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'author', 1, 'smith', 969083103, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'title', 1, 'some book', 969083103, 'Some Book')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:19:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083103, '0cfba120631f672d074f0e7e4f87d73c')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082824  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:44', NULL, 969082824, 'BorrowDirect', 'queued', '2015-02-23 18:19:44')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2795  (14.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082824 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083103) ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083103) ServiceResponse Load (8.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082824) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082824) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082824 AND `dispatched_services`.`id` = 2795 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082824, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2795  (14.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082824 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083103 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083103) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082824 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083103 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (3.0ms) BEGIN BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"z6quFfX0afVaA8_TgfrRMf6q3x8","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082824 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (8.0ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"z6quFfX0afVaA8_TgfrRMf6q3x8\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2791  (16.6ms) COMMIT Completed 200 OK in 247ms (Views: 20.2ms | ActiveRecord: 129.2ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:19:44 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cec205b383488072bd65d4372de92362' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (18.1ms) COMMIT  (0.7ms) BEGIN  (3.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:44', 'foo') SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014074 SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'format', 'journal', 969083104, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'genre', 1, 'article', 969083104, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'title', 1, 'foo', 969083104, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'author', 1, 'bar', 969083104, 'bar')  (17.8ms) COMMIT  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:19:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083104, 'cec205b383488072bd65d4372de92362')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082825  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:44', NULL, 969082825, 'BorrowDirect', 'queued', '2015-02-23 18:19:44')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2796  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082825 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083104) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083104) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082825) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082825) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082825 AND `dispatched_services`.`id` = 2796 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2796  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082825 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083104 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083104) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082825 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083104 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082825  (14.5ms) COMMIT Completed 200 OK in 214ms (Views: 16.8ms | ActiveRecord: 121.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3e2b98c4f6fc5bf4a6d6a5963864ab9' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:44', 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'format', 'book', 969083105, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'genre', 1, 'book', 969083105, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'title', 1, 'foo', 969083105, 'foo')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:19:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083105, 'd3e2b98c4f6fc5bf4a6d6a5963864ab9')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:44', NULL, 969082826, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:19:44')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2797  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082826" for 127.0.0.1 at 2015-02-23 13:19:44 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082826"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082826 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083105 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083105)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082826  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082826 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082826 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082826 [["request_id", 969082826]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083105 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083105) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082826 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082826 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083105 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082826  (14.3ms) COMMIT Completed 200 OK in 78ms (Views: 19.1ms | ActiveRecord: 50.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:44 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f7ffaac1985d9caf0f6cf8933293751' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:44', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'format', 'journal', 969083106, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'isbn', 1, '9789810743734', 969083106, '9789810743734')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083106, '1f7ffaac1985d9caf0f6cf8933293751')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082827  (14.8ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:44', NULL, 969082827, 'BorrowDirect', 'queued', '2015-02-23 18:19:44')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2798  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083106) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106) ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082827) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082827) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`id` = 2798 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082827, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:44', 'Choose your delivery location', 969082827, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2798  (14.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083106 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082827 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083106 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082827  (15.1ms) COMMIT Completed 200 OK in 271ms (Views: 24.0ms | ActiveRecord: 124.5ms) Started GET "/borrow_direct/BorrowDirect/969082827?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:19:44 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082827"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082827 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2798  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:44', 969082827, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083106 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106) Redirected to http://www.example.com/resolve?umlaut.request_id=969082827&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 53ms (ActiveRecord: 39.4ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2798  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014084  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082827&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:45 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082827", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:44-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083106 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082827  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 [["request_id", 969082827]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083106 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082827 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083106 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082827  (14.7ms) COMMIT Completed 200 OK in 83ms (Views: 21.3ms | ActiveRecord: 52.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:19:45 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'def6f47e5257d22a7f1f1beafad73b2a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:45', '0109836413') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'format', 'journal', 969083107, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'isbn', 1, '0109836413', 969083107, '0109836413')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:19:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083107, 'def6f47e5257d22a7f1f1beafad73b2a')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082828  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:45', NULL, 969082828, 'BorrowDirect', 'queued', '2015-02-23 18:19:45')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2799  (14.3ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082828 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083107) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083107) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082828) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082828) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082828 AND `dispatched_services`.`id` = 2799 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082828, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:45', 'This item is not currently available from BorrowDirect', 969082828, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2799  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082828 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083107 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083107) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082828 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083107 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082828  (19.6ms) COMMIT Completed 200 OK in 263ms (Views: 19.4ms | ActiveRecord: 126.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:45 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e98ee68414a0e4bf433024589bb41653' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:45', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'format', 'journal', 969083108, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'isbn', 1, '9789810743734', 969083108, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083108, 'e98ee68414a0e4bf433024589bb41653')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082829  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:45', NULL, 969082829, 'BorrowDirect', 'queued', '2015-02-23 18:19:45')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2800  (13.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083108) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082829) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082829) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`id` = 2800 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082829, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:45', 'Choose your delivery location', 969082829, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2800  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083108 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082829 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083108 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082829  (14.6ms) COMMIT Completed 200 OK in 263ms (Views: 21.2ms | ActiveRecord: 120.2ms) Started GET "/borrow_direct/BorrowDirect/969082829?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:19:45 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082829"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082829 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2800  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:45', 969082829, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083108 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108) Redirected to http://www.example.com/resolve?umlaut.request_id=969082829&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 37.8ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2800  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014089  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082829&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:45 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082829", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:45-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083108 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082829  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 [["request_id", 969082829]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083108 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082829 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083108 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082829  (14.7ms) COMMIT Completed 200 OK in 78ms (Views: 18.0ms | ActiveRecord: 51.4ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:45 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c74446d3621e467524396d7f4e21850b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:45', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'format', 'journal', 969083109, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'isbn', 1, '9789810743734', 969083109, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083109, 'c74446d3621e467524396d7f4e21850b')  (14.7ms) COMMIT  (1.2ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082830  (23.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:45', NULL, 969082830, 'BorrowDirect', 'queued', '2015-02-23 18:19:45')  (19.2ms) COMMIT  (1.1ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2801  (14.3ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082830 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083109) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083109) ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082830) ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082830) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082830 AND `dispatched_services`.`id` = 2801 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082830, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 'Choose your delivery location', 969082830, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2801  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082830 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083109 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083109) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082830 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082830 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083109 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082830  (14.5ms) COMMIT Completed 200 OK in 277ms (Views: 21.1ms | ActiveRecord: 135.1ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:46 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1672c17a357d3481b542951d9518c776' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (7.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:46', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'format', 'journal', 969083110, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'isbn', 1, '9789810743734', 969083110, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083110, '1672c17a357d3481b542951d9518c776')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082831  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:46', NULL, 969082831, 'BorrowDirect', 'queued', '2015-02-23 18:19:46')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2802  (14.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083110) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082831) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082831) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`id` = 2802 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082831, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 'Choose your delivery location', 969082831, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2802  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083110 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082831 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083110 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082831  (14.4ms) COMMIT Completed 200 OK in 264ms (Views: 20.6ms | ActiveRecord: 124.7ms) Started GET "/borrow_direct/BorrowDirect/969082831" for 127.0.0.1 at 2015-02-23 13:19:46 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082831"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082831 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 969082831, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083110 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110) Redirected to http://www.example.com/resolve?umlaut.request_id=969082831&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A46-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 28ms (ActiveRecord: 21.8ms) Started GET "/resolve?umlaut.request_id=969082831&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A46-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:46 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082831", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:46-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083110 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110)  (1.1ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082831  (14.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 [["request_id", 969082831]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083110 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082831 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083110 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082831  (14.6ms) COMMIT Completed 200 OK in 85ms (Views: 22.6ms | ActiveRecord: 53.5ms) Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e8fcd3e818be5e5759c856a56b6edca' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:46', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'format', 'journal', 969083111, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'title', 1, 'title', 969083111, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'author', 1, 'au', 969083111, 'au')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083111, '5e8fcd3e818be5e5759c856a56b6edca')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 969082832, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082832 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082832 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:46', NULL, 969082832, 'test_bd', 'successful', '2015-02-23 18:19:46')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2803  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082832 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c5477d3f93239bc5808073d8e108ff2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:46', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'format', 'journal', 969083112, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'title', 1, 'title', 969083112, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'author', 1, 'au', 969083112, 'au')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083112, '6c5477d3f93239bc5808073d8e108ff2')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 969082833, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.1ms) COMMIT ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082833 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082833, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082833 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:46', NULL, 969082833, 'test_bd', 'successful', '2015-02-23 18:19:46')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2804  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082833 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '00955c33222ec71fdc09b944dab6ca6e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:46', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'format', 'journal', 969083113, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'title', 1, 'title', 969083113, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'author', 1, 'au', 969083113, 'au')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083113, '00955c33222ec71fdc09b944dab6ca6e')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 969082834, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082834 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082834, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082834 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:46', NULL, 969082834, 'test_bd', 'successful', '2015-02-23 18:19:46')  (14.4ms) COMMIT  (1.5ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2805  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082834 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5005fb5a3d9701909348b66d095d24f5' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083114, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '000000000', 969083114, '000000000')  (15.1ms) COMMIT  (1.4ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083114, '5005fb5a3d9701909348b66d095d24f5')  (15.0ms) COMMIT ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082835 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082835, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.5ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:47', 'This item is not currently available from BorrowDirect', 969082835, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082835 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082835, 'test_bd', 'successful', '2015-02-23 18:19:47')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2806  (20.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082835 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b12e48c6ca2dfc6c13dff7fbdff450af' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083115, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '9789810743734', 969083115, '9789810743734')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083115, 'b12e48c6ca2dfc6c13dff7fbdff450af')  (14.6ms) COMMIT ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082836 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082836, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:47', 'Choose your delivery location', 969082836, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082836 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082836, 'test_bd', 'successful', '2015-02-23 18:19:47')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2807  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082836 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd707ad42a36825b6ab55927165f3a4da' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083116, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '0109836413', 969083116, '0109836413')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083116, 'd707ad42a36825b6ab55927165f3a4da')  (14.7ms) COMMIT ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082837 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082837, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:47', 'This item is not currently available from BorrowDirect', 969082837, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082837 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082837, 'test_bd', 'successful', '2015-02-23 18:19:47')  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2808  (14.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082837 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb1b0a428182465de8294078c3eca004' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083117, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '9789810743734', 969083117, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083117, 'bb1b0a428182465de8294078c3eca004')  (14.1ms) COMMIT ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082838 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082838, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.8ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082838 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082838, 'test_bd', 'failed_temporary', '2015-02-23 18:19:47')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2809  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082838 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '503970d584b8d4e0355c81b542ec4882' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083118, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '9789810743734', 969083118, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083118, '503970d584b8d4e0355c81b542ec4882')  (14.7ms) COMMIT ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082839 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082839, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082839 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082839, 'test_bd', 'successful', '2015-02-23 18:19:47')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2810  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082839 ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8aea2d5ed607e5c78645d7ada9e21058' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:01', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'format', 'journal', 969083119, 'journal') SQL (7.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'title', 1, 'title', 969083119, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'author', 1, 'au', 969083119, 'au')  (13.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:22:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083119, '8aea2d5ed607e5c78645d7ada9e21058')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:01', 969082840, '--- {}\n', 'test_holding', 'holding')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082840, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (13.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082840 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:01', NULL, 969082840, 'test_bd', 'successful', '2015-02-23 18:22:01')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:01' WHERE `dispatched_services`.`id` = 2811  (15.4ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082840 ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082840 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99adc7aa0f90318fa590aea3aede1470' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:01', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'format', 'journal', 969083120, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'isbn', 1, '9789810743734', 969083120, '9789810743734')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083120, '99adc7aa0f90318fa590aea3aede1470')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082841  (23.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:01', NULL, 969082841, 'test_bd', 'queued', '2015-02-23 18:22:01')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:01' WHERE `dispatched_services`.`id` = 2812  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082841 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083120) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083120) ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082841) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082841) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082841 AND `dispatched_services`.`id` = 2812 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082841, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:22:01' WHERE `dispatched_services`.`id` = 2812  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082841 LIMIT 1 DispatchedService Load (7.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083120 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083120) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082841 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (66.6ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083120 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (42.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082841  (15.1ms) COMMIT Completed 200 OK in 504ms (Views: 171.3ms | ActiveRecord: 131.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:22:02 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3ef516a30a5b29efca9b4e54746545e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:02', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'format', 'book', 969083121, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'genre', 1, 'book', 969083121, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'author', 1, 'smith', 969083121, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'title', 1, 'some book', 969083121, 'Some Book')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:22:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083121, 'c3ef516a30a5b29efca9b4e54746545e')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082842  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:02', NULL, 969082842, 'BorrowDirect', 'queued', '2015-02-23 18:22:02')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2813  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082842 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083121) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083121) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082842) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082842) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082842 AND `dispatched_services`.`id` = 2813 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082842, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2813  (14.7ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082842 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083121 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083121) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082842 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083121 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082842  (14.3ms) COMMIT Completed 200 OK in 253ms (Views: 19.2ms | ActiveRecord: 135.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:22:02 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24a3db4b583327325b04c369e65c0952' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:02', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'format', 'journal', 969083122, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'genre', 1, 'article', 969083122, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'title', 1, 'foo', 969083122, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'author', 1, 'bar', 969083122, 'bar')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:22:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083122, '24a3db4b583327325b04c369e65c0952')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082843  (18.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:02', NULL, 969082843, 'BorrowDirect', 'queued', '2015-02-23 18:22:02')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2814  (15.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082843 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083122) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083122) ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082843) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082843) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082843 AND `dispatched_services`.`id` = 2814 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2814  (15.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082843 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083122 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083122) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082843 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083122 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082843  (17.4ms) COMMIT Completed 200 OK in 227ms (Views: 17.5ms | ActiveRecord: 130.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f94195ecdb46e9eb1673d3fb287998aa' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:02', 'foo') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'format', 'book', 969083123, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'genre', 1, 'book', 969083123, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'title', 1, 'foo', 969083123, 'foo')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:22:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083123, 'f94195ecdb46e9eb1673d3fb287998aa')  (33.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082844 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:02', NULL, 969082844, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:22:02')  (26.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2815  (16.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969082844" for 127.0.0.1 at 2015-02-23 13:22:02 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082844"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082844 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083123 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083123)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082844  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082844 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082844 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082844 [["request_id", 969082844]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083123 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083123) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082844 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082844 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083123 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082844  (14.5ms) COMMIT Completed 200 OK in 78ms (Views: 19.7ms | ActiveRecord: 50.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9dac777f52f23ea94f9051f1f07ef492' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:02', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'format', 'journal', 969083124, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'isbn', 1, '9789810743734', 969083124, '9789810743734')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083124, '9dac777f52f23ea94f9051f1f07ef492')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082845  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:02', NULL, 969082845, 'BorrowDirect', 'queued', '2015-02-23 18:22:02')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2816  (17.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083124) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124) ServiceResponse Load (10.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082845) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082845) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (24.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`id` = 2816 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082845, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (29.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:03', 'Choose your delivery location', 969082845, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2816  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083124 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082845 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083124 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082845  (15.0ms) COMMIT Completed 200 OK in 300ms (Views: 23.7ms | ActiveRecord: 123.1ms) Started GET "/borrow_direct/BorrowDirect/969082845?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:22:03 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082845"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082845 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2816  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:03', 969082845, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083124 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124) Redirected to http://www.example.com/resolve?umlaut.request_id=969082845&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 88ms (ActiveRecord: 38.8ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2816  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014114  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969082845&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:22:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082845", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:22:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083124 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082845  (18.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 [["request_id", 969082845]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083124 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082845 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083124 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082845  (14.1ms) COMMIT Completed 200 OK in 85ms (Views: 20.7ms | ActiveRecord: 55.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:22:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a8a9b5bfafb37e3d0cda9d5377b913c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:03', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:03', 'format', 'journal', 969083125, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:03', 'isbn', 1, '0109836413', 969083125, '0109836413')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:22:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083125, '2a8a9b5bfafb37e3d0cda9d5377b913c')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082846  (15.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:03', NULL, 969082846, 'BorrowDirect', 'queued', '2015-02-23 18:22:03')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2817  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082846 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083125) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083125) ServiceResponse Load (8.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082846) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082846) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082846 AND `dispatched_services`.`id` = 2817 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082846, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:03', 'This item is not currently available from BorrowDirect', 969082846, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2817  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082846 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083125 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083125) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082846 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083125 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082846  (14.4ms) COMMIT Completed 200 OK in 256ms (Views: 19.7ms | ActiveRecord: 118.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '549b64b29be54a0bc6dce80299661608' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:03', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:03', 'format', 'journal', 969083126, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:03', 'isbn', 1, '9789810743734', 969083126, '9789810743734')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083126, '549b64b29be54a0bc6dce80299661608')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082847  (18.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:03', NULL, 969082847, 'BorrowDirect', 'queued', '2015-02-23 18:22:03')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2818  (13.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083126) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126) ServiceResponse Load (8.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082847) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082847) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`id` = 2818 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082847, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:03', 'Choose your delivery location', 969082847, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2818  (14.4ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083126 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082847 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083126 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082847  (14.7ms) COMMIT Completed 200 OK in 266ms (Views: 21.9ms | ActiveRecord: 122.4ms) Started GET "/borrow_direct/BorrowDirect/969082847?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:22:03 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082847"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082847 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2818  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 969082847, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083126 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126) Redirected to http://www.example.com/resolve?umlaut.request_id=969082847&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 89ms (ActiveRecord: 37.7ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2818  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014119  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969082847&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:22:04 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082847", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:22:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083126 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082847  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 [["request_id", 969082847]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083126 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082847 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083126 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082847  (14.9ms) COMMIT Completed 200 OK in 79ms (Views: 18.8ms | ActiveRecord: 50.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b0b26ce829ac2a1828d60d07c81d9e0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:04', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'format', 'journal', 969083127, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'isbn', 1, '9789810743734', 969083127, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083127, '3b0b26ce829ac2a1828d60d07c81d9e0')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082848  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:04', NULL, 969082848, 'BorrowDirect', 'queued', '2015-02-23 18:22:04')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2819  (14.3ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082848 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083127) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083127) ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082848) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082848) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082848 AND `dispatched_services`.`id` = 2819 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082848, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 'Choose your delivery location', 969082848, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2819  (14.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082848 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083127 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083127) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082848 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082848 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083127 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082848  (14.1ms) COMMIT Completed 200 OK in 257ms (Views: 21.2ms | ActiveRecord: 118.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3dddd5898527270c2bd8bcbf01d18f88' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:04', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'format', 'journal', 969083128, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'isbn', 1, '9789810743734', 969083128, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083128, '3dddd5898527270c2bd8bcbf01d18f88')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082849  (15.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:04', NULL, 969082849, 'BorrowDirect', 'queued', '2015-02-23 18:22:04')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2820  (14.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083128) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128) ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082849) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082849) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`id` = 2820 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082849, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 'Choose your delivery location', 969082849, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2820  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083128 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082849 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083128 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082849  (14.3ms) COMMIT Completed 200 OK in 262ms (Views: 20.6ms | ActiveRecord: 117.8ms) Started GET "/borrow_direct/BorrowDirect/969082849" for 127.0.0.1 at 2015-02-23 13:22:04 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082849"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082849 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 969082849, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.8ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083128 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128) Redirected to http://www.example.com/resolve?umlaut.request_id=969082849&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 70ms (ActiveRecord: 20.9ms) Started GET "/resolve?umlaut.request_id=969082849&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:22:04 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082849", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:22:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083128 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082849  (14.6ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 [["request_id", 969082849]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083128 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082849 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083128 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082849  (14.6ms) COMMIT Completed 200 OK in 81ms (Views: 21.2ms | ActiveRecord: 50.2ms) ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e10d5ac27d1e6dbe6d039a244a991116' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:04', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'format', 'journal', 969083129, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'isbn', 1, '121212', 969083129, '121212')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083129, 'e10d5ac27d1e6dbe6d039a244a991116')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082850"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082850 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082850 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082850  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 969082850, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082850\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083129 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083129) Redirected to http://test.host/resolve?umlaut.request_id=969082850&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 28.1ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0328ee6670891daed6dfe421490c1c14' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083130, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083130, '121212')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083130, '0328ee6670891daed6dfe421490c1c14')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082851, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082851"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082851 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082851 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014126  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082851, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014126\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083130 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083130) Redirected to http://test.host/resolve?umlaut.request_id=969082851&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 27.9ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d226d05c90bc7122b15869ad2f6b39e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083131, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083131, '121212')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083131, '7d226d05c90bc7122b15869ad2f6b39e')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (4.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082852, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082852"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082852 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082852 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:05', NULL, 969082852, 'BorrowDirect', 'in_progress', '2015-02-23 18:22:05')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2821  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082852, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083131 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083131) Redirected to http://test.host/resolve?umlaut.request_id=969082852&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 75ms (ActiveRecord: 62.2ms) DispatchedService Load (4.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082852 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2821 ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082852 ORDER BY id ASC  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014129  (13.9ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96e7228d6388657e36691295cb55b666' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083132, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083132, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083132, '96e7228d6388657e36691295cb55b666')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082853, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082853"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082853 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082853 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082853 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:05', NULL, 969082853, 'BorrowDirect', 'in_progress', '2015-02-23 18:22:05')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2822  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082853, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083132 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083132) Redirected to http://example.org Completed 302 Found in 73ms (ActiveRecord: 62.6ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082853 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN Request Load (3.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a48ca497b54e691368fd62b19c121eef' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (3.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2822 SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083133, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083133, '121212')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014131  (15.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083133, 'a48ca497b54e691368fd62b19c121eef')  (14.8ms) COMMIT  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082854, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969082854"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082854 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082854 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082854, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083133 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083133) Redirected to http://test.host/resolve?umlaut.request_id=969082854&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 29.2ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e189571a25334fade46d49effab0c0b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083134, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083134, '121212')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083134, '5e189571a25334fade46d49effab0c0b')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082855, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082855"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082855 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082855 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082855 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:05', NULL, 969082855, 'BorrowDirect', 'in_progress', '2015-02-23 18:22:05')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2823  (65.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082855, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (68.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083134 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083134) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 182ms (Views: 0.4ms | ActiveRecord: 168.3ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '55b4663fa4b918cb6efbde875507ddf6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN DispatchedService Load (3.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082855 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (32.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083135, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083135, '121212') SQL (41.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2823  (29.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083135, '55b4663fa4b918cb6efbde875507ddf6')  (31.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014135  (69.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082856"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082856 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082856 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082856, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (103.3ms) COMMIT  (34.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083135 LIMIT 1 ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083135) Redirected to http://test.host/resolve?umlaut.request_id=969082856&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 97ms (ActiveRecord: 49.9ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7cc912652c7b56077a9f5ea11b96948c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:06', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083136, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'title', 969083136, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'author', 1, 'au', 969083136, 'au')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083136, '7cc912652c7b56077a9f5ea11b96948c')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 969082857, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.0ms) COMMIT ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082857 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082857 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082857, 'test_bd', 'successful', '2015-02-23 18:22:06')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2824  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082857 Request Load (2.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '93143e1ac94ac59fc3ab1a8a9b90ffe8' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:06', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083137, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'title', 969083137, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'author', 1, 'au', 969083137, 'au')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083137, '93143e1ac94ac59fc3ab1a8a9b90ffe8')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 969082858, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.5ms) COMMIT ServiceResponse Load (10.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082858 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082858, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082858 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082858, 'test_bd', 'successful', '2015-02-23 18:22:06')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2825  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082858 Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fee4e38ee10e13ee06f278439d0ce68' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:06', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083138, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'title', 969083138, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'author', 1, 'au', 969083138, 'au')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083138, '5fee4e38ee10e13ee06f278439d0ce68')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 969082859, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (10.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082859 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082859, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082859 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082859, 'test_bd', 'successful', '2015-02-23 18:22:06')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2826  (14.0ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082859  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80c331c8113fd7ce52bf3b9ddcdc6314' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:22:06', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'book', 969083139, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'auinit', 1, 'eh', 969083139, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'aulast', 1, 'lenneberg', 969083139, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'biological foundations of language', 969083139, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'genre', 1, 'book', 969083139, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'date', 1, '1967', 969083139, '1967')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083139, 'info:sid/google', '80c331c8113fd7ce52bf3b9ddcdc6314')  (17.7ms) COMMIT ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082860 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082860, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082860 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082860, 'test_bd', 'successful', '2015-02-23 18:22:06')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2827  (15.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082860 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2be3cb7c7e08257fe9b3807ad1ab4da6' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:22:06', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083140, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'auinit', 1, 'rd', 969083140, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'aulast', 1, 'kaplan', 969083140, 'Kaplan') SQL (6.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'atitle', 1, 'the coming anarchy', 969083140, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'the atlantic monthly', 969083140, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'volume', 1, '273', 969083140, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'issue', 1, '2', 969083140, '2') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'date', 1, '1994', 969083140, '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'spage', 1, '44', 969083140, '44') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'issn', 1, '1072-7825', 969083140, '1072-7825')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083140, 'info:sid/google', '2be3cb7c7e08257fe9b3807ad1ab4da6')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082861 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082861, 'test_bd', 'successful', '2015-02-23 18:22:06')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2828  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082861 ServiceResponse Exists (3.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082861 LIMIT 1 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bccdd6b75ebf5af791a19009e4df06ce' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:06', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083141, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083141, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'aulast', 1, 'grimes', 969083141, 'Grimes')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083141, 'bccdd6b75ebf5af791a19009e4df06ce')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082862, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (15.3ms) COMMIT ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082862 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bc16e1cc4ac68340c911c89497d89d1' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:06', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083142, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'isbn', 1, '0109836413', 969083142, '0109836413')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083142, '6bc16e1cc4ac68340c911c89497d89d1')  (14.5ms) COMMIT ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082863 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082863, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 'This item is not currently available from BorrowDirect', 969082863, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082863 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082863, 'test_bd', 'successful', '2015-02-23 18:22:06')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2829  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082863 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3ccf9030b61f06859318f3821e59e15' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:06', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083143, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'isbn', 1, '9789810743734', 969083143, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083143, 'e3ccf9030b61f06859318f3821e59e15')  (14.1ms) COMMIT ServiceResponse Load (8.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082864 ORDER BY id ASC  (0.7ms) BEGIN SQL (6.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082864, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 'Choose your delivery location', 969082864, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082864 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082864, 'test_bd', 'successful', '2015-02-23 18:22:06')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:07' WHERE `dispatched_services`.`id` = 2830  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082864 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5aa97003eb4b97fdfce855c4e162c1c4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:07', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'format', 'journal', 969083144, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'isbn', 1, '9789810743734', 969083144, '9789810743734')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083144, '5aa97003eb4b97fdfce855c4e162c1c4')  (14.1ms) COMMIT ServiceResponse Load (8.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082865 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082865, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082865 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:07', NULL, 969082865, 'test_bd', 'failed_temporary', '2015-02-23 18:22:07')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:22:07' WHERE `dispatched_services`.`id` = 2831  (14.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082865 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd836dda515a35f8c5ace6d6a6a8c89de' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:07', '000000000') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'format', 'journal', 969083145, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'isbn', 1, '000000000', 969083145, '000000000')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:22:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083145, 'd836dda515a35f8c5ace6d6a6a8c89de')  (14.1ms) COMMIT ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082866 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082866, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:07', 'This item is not currently available from BorrowDirect', 969082866, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082866 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:07', NULL, 969082866, 'test_bd', 'successful', '2015-02-23 18:22:07')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:07' WHERE `dispatched_services`.`id` = 2832  (13.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082866 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e57dd3906c90f67e84ef92918f7edf13' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:07', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'format', 'journal', 969083146, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'isbn', 1, '9789810743734', 969083146, '9789810743734')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083146, 'e57dd3906c90f67e84ef92918f7edf13')  (13.9ms) COMMIT ServiceResponse Load (8.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082867 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082867, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082867 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:07', NULL, 969082867, 'test_bd', 'successful', '2015-02-23 18:22:07')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:07' WHERE `dispatched_services`.`id` = 2833  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082867 ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ccbbd8213f475d88d6d08fd9cb7915e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:34', '9789810743734') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'format', 'journal', 969083147, 'journal') SQL (4.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'isbn', 1, '9789810743734', 969083147, '9789810743734')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083147, '6ccbbd8213f475d88d6d08fd9cb7915e')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082868  (19.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:34', NULL, 969082868, 'test_bd', 'queued', '2015-02-23 18:24:34')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:34' WHERE `dispatched_services`.`id` = 2834  (14.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082868 LIMIT 1 Referent Load (5.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083147) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083147) ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082868) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082868) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082868 AND `dispatched_services`.`id` = 2834 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082868, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:24:34' WHERE `dispatched_services`.`id` = 2834  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082868 LIMIT 1 DispatchedService Load (6.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083147 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083147) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (9.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082868 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (15.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (75.7ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083147 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082868  (17.0ms) COMMIT Completed 200 OK in 728ms (Views: 145.3ms | ActiveRecord: 158.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:24:34 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0bc2c52666c1c94d3d17ff663914b49f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:34', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'format', 'book', 969083148, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'genre', 1, 'book', 969083148, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'author', 1, 'smith', 969083148, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'title', 1, 'some book', 969083148, 'Some Book')  (21.5ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:24:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083148, '0bc2c52666c1c94d3d17ff663914b49f')  (21.2ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082869  (30.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:34', NULL, 969082869, 'BorrowDirect', 'queued', '2015-02-23 18:24:34')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:34' WHERE `dispatched_services`.`id` = 2835  (18.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082869 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083148) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083148) ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082869) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082869) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082869 AND `dispatched_services`.`id` = 2835 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082869, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2835  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082869 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083148 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083148) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082869 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083148 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082869  (14.4ms) COMMIT Completed 200 OK in 295ms (Views: 19.7ms | ActiveRecord: 168.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:24:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d4308184dcaa0c5f0c80a8d8bbcc9fb' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:35', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'format', 'journal', 969083149, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'genre', 1, 'article', 969083149, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'title', 1, 'foo', 969083149, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'author', 1, 'bar', 969083149, 'bar')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:24:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083149, '9d4308184dcaa0c5f0c80a8d8bbcc9fb')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082870  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:35', NULL, 969082870, 'BorrowDirect', 'queued', '2015-02-23 18:24:35')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2836  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082870 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083149) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083149) ServiceResponse Load (9.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082870) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082870) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082870 AND `dispatched_services`.`id` = 2836 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2836  (13.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082870 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083149 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083149) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082870 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083149 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082870  (14.4ms) COMMIT Completed 200 OK in 259ms (Views: 17.4ms | ActiveRecord: 120.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '825afc56bca33108c65e71119628e424' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:35', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'format', 'book', 969083150, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'genre', 1, 'book', 969083150, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'title', 1, 'foo', 969083150, 'foo')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:24:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083150, '825afc56bca33108c65e71119628e424')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082871 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:35', NULL, 969082871, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:24:35')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2837  (14.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969082871" for 127.0.0.1 at 2015-02-23 13:24:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082871"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082871 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083150 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083150)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082871  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082871 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082871 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082871 [["request_id", 969082871]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083150 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083150) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082871 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082871 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083150 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082871  (15.2ms) COMMIT Completed 200 OK in 82ms (Views: 19.0ms | ActiveRecord: 54.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07e9f1ce257c195c5db7a11c8100e043' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:35', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'format', 'journal', 969083151, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'isbn', 1, '9789810743734', 969083151, '9789810743734')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083151, '07e9f1ce257c195c5db7a11c8100e043')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082872  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:35', NULL, 969082872, 'BorrowDirect', 'queued', '2015-02-23 18:24:35')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2838  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083151) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151) ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082872) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082872) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`id` = 2838 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082872, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:35', 'Choose your delivery location', 969082872, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2838  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083151 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082872 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083151 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082872  (15.5ms) COMMIT Completed 200 OK in 269ms (Views: 25.5ms | ActiveRecord: 121.6ms) Started GET "/borrow_direct/BorrowDirect/969082872?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:24:35 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082872"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082872 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2838  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:35', 969082872, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083151 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151) Redirected to http://www.example.com/resolve?umlaut.request_id=969082872&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 53ms (ActiveRecord: 38.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2838  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014156  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969082872&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:24:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082872", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:24:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083151 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082872  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 [["request_id", 969082872]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083151 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082872 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083151 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082872  (15.2ms) COMMIT Completed 200 OK in 82ms (Views: 21.1ms | ActiveRecord: 51.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:24:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f4270c220b285d1c6c47c14fd478dea' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:36', '0109836413') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'format', 'journal', 969083152, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'isbn', 1, '0109836413', 969083152, '0109836413')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:24:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083152, '3f4270c220b285d1c6c47c14fd478dea')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082873  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:36', NULL, 969082873, 'BorrowDirect', 'queued', '2015-02-23 18:24:36')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2839  (14.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082873 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083152) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083152) ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082873) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082873) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082873 AND `dispatched_services`.`id` = 2839 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082873, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:36', 'This item is not currently available from BorrowDirect', 969082873, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (15.9ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2839  (15.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082873 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083152 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083152) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082873 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083152 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082873  (14.8ms) COMMIT Completed 200 OK in 263ms (Views: 19.8ms | ActiveRecord: 121.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5fb62ed6f5d888ccc93210d9adf7767' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:36', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'format', 'journal', 969083153, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'isbn', 1, '9789810743734', 969083153, '9789810743734')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083153, 'd5fb62ed6f5d888ccc93210d9adf7767')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082874  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:36', NULL, 969082874, 'BorrowDirect', 'queued', '2015-02-23 18:24:36')  (14.5ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2840  (15.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083153) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153) ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082874) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082874) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`id` = 2840 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082874, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:36', 'Choose your delivery location', 969082874, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2840  (14.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083153 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (10.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082874 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083153 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082874  (14.8ms) COMMIT Completed 200 OK in 276ms (Views: 20.8ms | ActiveRecord: 129.0ms) Started GET "/borrow_direct/BorrowDirect/969082874?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:24:36 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082874"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082874 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2840  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:36', 969082874, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083153 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153) Redirected to http://www.example.com/resolve?umlaut.request_id=969082874&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 40.0ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2840  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014161  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969082874&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:24:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082874", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:24:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083153 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082874  (15.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 [["request_id", 969082874]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083153 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082874 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083153 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082874  (15.2ms) COMMIT Completed 200 OK in 81ms (Views: 18.2ms | ActiveRecord: 53.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'affe903adf92a25aab465ff289a7fd58' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:36', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'format', 'journal', 969083154, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'isbn', 1, '9789810743734', 969083154, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083154, 'affe903adf92a25aab465ff289a7fd58')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082875  (13.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:36', NULL, 969082875, 'BorrowDirect', 'queued', '2015-02-23 18:24:36')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2841  (14.3ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082875 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083154) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083154) ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082875) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082875) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082875 AND `dispatched_services`.`id` = 2841 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082875, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:37', 'Choose your delivery location', 969082875, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2841  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082875 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083154 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083154) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (10.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082875 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082875 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083154 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082875  (17.5ms) COMMIT Completed 200 OK in 267ms (Views: 23.3ms | ActiveRecord: 123.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ee45759e0965e506c5cb10e8df0d29e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:37', '9789810743734') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'journal', 969083155, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'isbn', 1, '9789810743734', 969083155, '9789810743734')  (16.2ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083155, '1ee45759e0965e506c5cb10e8df0d29e')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082876  (15.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:37', NULL, 969082876, 'BorrowDirect', 'queued', '2015-02-23 18:24:37')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2842  (17.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083155) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155) ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082876) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082876) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`id` = 2842 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082876, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:37', 'Choose your delivery location', 969082876, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.1ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2842  (15.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083155 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (10.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082876 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083155 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082876  (15.0ms) COMMIT Completed 200 OK in 280ms (Views: 22.1ms | ActiveRecord: 127.7ms) Started GET "/borrow_direct/BorrowDirect/969082876" for 127.0.0.1 at 2015-02-23 13:24:37 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082876"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082876 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:37', 969082876, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083155 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155) Redirected to http://www.example.com/resolve?umlaut.request_id=969082876&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.3ms) Started GET "/resolve?umlaut.request_id=969082876&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:24:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082876", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:24:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083155 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082876  (14.3ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 [["request_id", 969082876]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083155 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082876 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (54.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083155 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082876  (17.9ms) COMMIT Completed 200 OK in 130ms (Views: 65.7ms | ActiveRecord: 54.2ms) Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ef6f95ca661b0c41b072ce92ff2b95b' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:24:37', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'book', 969083156, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'auinit', 1, 'eh', 969083156, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'aulast', 1, 'lenneberg', 969083156, 'Lenneberg') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'title', 1, 'biological foundations of language', 969083156, 'Biological foundations of language') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'genre', 1, 'book', 969083156, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'date', 1, '1967', 969083156, '1967')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (6.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:24:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083156, 'info:sid/google', '1ef6f95ca661b0c41b072ce92ff2b95b')  (14.4ms) COMMIT ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082877 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082877, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082877 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:37', NULL, 969082877, 'test_bd', 'successful', '2015-02-23 18:24:37')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2843  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082877 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7deef231808c64bbceacc50ab93eb40' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:24:37', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'journal', 969083157, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'auinit', 1, 'rd', 969083157, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'aulast', 1, 'kaplan', 969083157, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'atitle', 1, 'the coming anarchy', 969083157, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'title', 1, 'the atlantic monthly', 969083157, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'volume', 1, '273', 969083157, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'issue', 1, '2', 969083157, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'date', 1, '1994', 969083157, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'spage', 1, '44', 969083157, '44') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'issn', 1, '1072-7825', 969083157, '1072-7825')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:24:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083157, 'info:sid/google', 'f7deef231808c64bbceacc50ab93eb40')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082878 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:37', NULL, 969082878, 'test_bd', 'successful', '2015-02-23 18:24:37')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2844  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082878 ServiceResponse Exists (3.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082878 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c15a7b3dfb3af2a2ed0cbf48b042192a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:37', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'journal', 969083158, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083158, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'aulast', 1, 'grimes', 969083158, 'Grimes')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:24:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083158, 'c15a7b3dfb3af2a2ed0cbf48b042192a')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082879, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.4ms) COMMIT ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082879 ORDER BY id ASC Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9abe414c723706fe15e3369313386f5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:37', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'journal', 969083159, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'title', 1, 'title', 969083159, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'author', 1, 'au', 969083159, 'au')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:24:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083159, 'a9abe414c723706fe15e3369313386f5')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:37', 969082880, '--- {}\n', 'test_holding', 'holding')  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082880, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (21.0ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082880 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082880, 'test_bd', 'successful', '2015-02-23 18:24:38')  (32.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2845  (30.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082880 ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082880 ORDER BY id ASC Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd94c05e433b1e5243cb52aee506ed18a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083160, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '9789810743734', 969083160, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083160, 'd94c05e433b1e5243cb52aee506ed18a')  (14.4ms) COMMIT ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082881 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082881, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082881 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082881, 'test_bd', 'failed_temporary', '2015-02-23 18:24:38')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2846  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082881 Request Load (3.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0db31acbdcd144ad65ac062460b4da18' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (44.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083161, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '0109836413', 969083161, '0109836413')  (16.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083161, '0db31acbdcd144ad65ac062460b4da18')  (40.6ms) COMMIT ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082882 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082882, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (41.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:38', 'This item is not currently available from BorrowDirect', 969082882, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (54.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082882 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082882, 'test_bd', 'successful', '2015-02-23 18:24:38')  (20.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2847  (29.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082882 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f961e6b22d56f97fcdcdf488f9588b1' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083162, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '000000000', 969083162, '000000000')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083162, '2f961e6b22d56f97fcdcdf488f9588b1')  (14.0ms) COMMIT ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082883 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082883, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:38', 'This item is not currently available from BorrowDirect', 969082883, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082883 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082883, 'test_bd', 'successful', '2015-02-23 18:24:38')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2848  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082883 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7a9e5eb4db4d2b6b9a4db9f264a75231' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083163, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '9789810743734', 969083163, '9789810743734')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083163, '7a9e5eb4db4d2b6b9a4db9f264a75231')  (14.0ms) COMMIT ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082884 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082884, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:38', 'Choose your delivery location', 969082884, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082884 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082884, 'test_bd', 'successful', '2015-02-23 18:24:38')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2849  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082884  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed0ea316444cb3b1e514788a525df455' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083164, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '121212', 969083164, '121212')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083164, 'ed0ea316444cb3b1e514788a525df455')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082885"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082885 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082885 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082885  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:38', 969082885, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082885\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083164 LIMIT 1 ReferentValue Load (4.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083164) Redirected to http://test.host/resolve?umlaut.request_id=969082885&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 32.5ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94f55eaa8a61bbbc5cc9feba13564e1a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083165, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '121212', 969083165, '121212')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083165, '94f55eaa8a61bbbc5cc9feba13564e1a')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082886, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082886"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082886 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082886 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014179  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082886, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014179\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083165 LIMIT 1 ReferentValue Load (4.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083165) Redirected to http://test.host/resolve?umlaut.request_id=969082886&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 33.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'efcaf8b93d177964911d05296eb18954' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083166, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083166, '121212')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083166, 'efcaf8b93d177964911d05296eb18954')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082887, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082887"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082887 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082887 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:39', NULL, 969082887, 'BorrowDirect', 'in_progress', '2015-02-23 18:24:39')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2850  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082887, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083166 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083166) Redirected to http://test.host/resolve?umlaut.request_id=969082887&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 76ms (ActiveRecord: 63.8ms) DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082887 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2850 ServiceResponse Load (10.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082887 ORDER BY id ASC  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014182  (14.7ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da221a5b165311e3bbe76d44e469d77a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083167, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083167, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083167, 'da221a5b165311e3bbe76d44e469d77a')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082888, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082888"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082888 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082888 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082888 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (29.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:39', NULL, 969082888, 'BorrowDirect', 'in_progress', '2015-02-23 18:24:39')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2851  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082888, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083167 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083167) Redirected to http://example.org Completed 302 Found in 102ms (ActiveRecord: 92.2ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8df48bec8972270b859a03e2e1cd970' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083168, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083168, '121212')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083168, 'd8df48bec8972270b859a03e2e1cd970')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082889, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969082889"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082889 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082889 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082889, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083168 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083168) Redirected to http://test.host/resolve?umlaut.request_id=969082889&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 29.4ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea45d80794542453bba0f9446100e2e4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (4.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083169, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083169, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083169, 'ea45d80794542453bba0f9446100e2e4')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082890, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082890"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082890 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082890 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082890 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:39', NULL, 969082890, 'BorrowDirect', 'in_progress', '2015-02-23 18:24:39')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2852  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082890, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083169 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083169) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 62.7ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf1d696df61ce793117617205d50804f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082890 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212')  (1.5ms) BEGIN SQL (2.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083170, 'journal') SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2852 SQL (2.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083170, '121212')  (15.4ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014188  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (9.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083170, 'bf1d696df61ce793117617205d50804f')  (14.5ms) COMMIT  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082891"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082891 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082891 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082891, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083170 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083170) Redirected to http://test.host/resolve?umlaut.request_id=969082891&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 38ms (ActiveRecord: 30.5ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66609c80cbbdde47c6ddeb6cbb88bd8b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:39', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083171, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'title', 1, 'title', 969083171, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'author', 1, 'au', 969083171, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083171, '66609c80cbbdde47c6ddeb6cbb88bd8b')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082892, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082892 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082892 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:39', NULL, 969082892, 'test_bd', 'successful', '2015-02-23 18:24:39')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2853  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082892 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18bf8a50fe7be17623080b6f6fdc83ff' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:39', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083172, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'title', 1, 'title', 969083172, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'author', 1, 'au', 969083172, 'au')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083172, '18bf8a50fe7be17623080b6f6fdc83ff')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082893, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.4ms) COMMIT ServiceResponse Load (9.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082893 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082893, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082893 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:40', NULL, 969082893, 'test_bd', 'successful', '2015-02-23 18:24:40')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:40' WHERE `dispatched_services`.`id` = 2854  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082893 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '898b7107dc037355969490e1c11d2a0c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:40', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'format', 'journal', 969083173, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'title', 1, 'title', 969083173, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'author', 1, 'au', 969083173, 'au')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:24:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083173, '898b7107dc037355969490e1c11d2a0c')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:40', 969082894, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082894 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082894, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082894 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:40', NULL, 969082894, 'test_bd', 'successful', '2015-02-23 18:24:40')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:40' WHERE `dispatched_services`.`id` = 2855  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082894 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53cb8839868c0a3f9f84a020dbeaeadd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:40', '9789810743734') SQL (8.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'format', 'journal', 969083174, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'isbn', 1, '9789810743734', 969083174, '9789810743734')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083174, '53cb8839868c0a3f9f84a020dbeaeadd')  (14.0ms) COMMIT ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082895 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082895, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082895 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:40', NULL, 969082895, 'test_bd', 'successful', '2015-02-23 18:24:40')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:40' WHERE `dispatched_services`.`id` = 2856  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082895 ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2853c33692017b06eda7f680d1f5c12' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:36', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083175, 'journal') SQL (10.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'title', 1, 'title', 969083175, 'title') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'author', 1, 'au', 969083175, 'au')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:28:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083175, 'e2853c33692017b06eda7f680d1f5c12')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:36', 969082896, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (8.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082896 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082896, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082896 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082896, 'test_bd', 'successful', '2015-02-23 18:28:36')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2857  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082896 Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f7421a423abbcd44240fb0e6456261e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:36', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083176, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'title', 1, 'title', 969083176, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'author', 1, 'au', 969083176, 'au')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:28:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083176, '5f7421a423abbcd44240fb0e6456261e')  (14.4ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:36', 969082897, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082897 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082897, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082897 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082897, 'test_bd', 'successful', '2015-02-23 18:28:36')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2858  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082897 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80300139be93a5eb96bed7b15d53a6ce' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:36', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083177, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'title', 1, 'title', 969083177, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'author', 1, 'au', 969083177, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:28:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083177, '80300139be93a5eb96bed7b15d53a6ce')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:36', 969082898, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (17.9ms) COMMIT ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082898 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082898 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082898, 'test_bd', 'successful', '2015-02-23 18:28:36')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2859  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082898 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '688082973e2a91b37a8c7f3b0ac18767' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:36', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083178, 'journal') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'title', 1, 'title', 969083178, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'author', 1, 'au', 969083178, 'au')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:28:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083178, '688082973e2a91b37a8c7f3b0ac18767')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:36', 969082899, '--- {}\n', 'test_holding', 'holding')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082899, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082899 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082899, 'test_bd', 'successful', '2015-02-23 18:28:36')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2860  (15.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082899 ServiceResponse Load (9.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082899 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '977a52658160ff3bbf5ef1e790c7c75f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:36', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083179, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'isbn', 1, '9789810743734', 969083179, '9789810743734')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083179, '977a52658160ff3bbf5ef1e790c7c75f')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082900  (14.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082900, 'test_bd', 'queued', '2015-02-23 18:28:36')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2861  (14.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082900 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083179) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083179) ServiceResponse Load (10.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082900) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082900) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082900 AND `dispatched_services`.`id` = 2861 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082900, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2861  (14.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082900 LIMIT 1 DispatchedService Load (6.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.4ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083179 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083179) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (10.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082900 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (12.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (69.1ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083179 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.9ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082900  (14.5ms) COMMIT Completed 200 OK in 457ms (Views: 138.4ms | ActiveRecord: 126.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:28:37 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a08a6e8bf9c4ca741e29787b5d1aacd' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:37', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'format', 'book', 969083180, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'genre', 1, 'book', 969083180, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'author', 1, 'smith', 969083180, 'Smith') SQL (6.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'title', 1, 'some book', 969083180, 'Some Book')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:28:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083180, '1a08a6e8bf9c4ca741e29787b5d1aacd')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082901  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:37', NULL, 969082901, 'BorrowDirect', 'queued', '2015-02-23 18:28:37')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2862  (13.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082901 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083180) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083180) ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082901) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082901) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082901 AND `dispatched_services`.`id` = 2862 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (6.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082901, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2862  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082901 LIMIT 1 DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083180 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083180) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (58.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082901 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083180 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082901  (15.3ms) COMMIT Completed 200 OK in 346ms (Views: 17.7ms | ActiveRecord: 189.9ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:28:37 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2a1a942b0b77e7cce6c8fc60f1ba8ef' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:37', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'format', 'journal', 969083181, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'genre', 1, 'article', 969083181, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'title', 1, 'foo', 969083181, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'author', 1, 'bar', 969083181, 'bar')  (16.0ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:28:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083181, 'e2a1a942b0b77e7cce6c8fc60f1ba8ef')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082902  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:37', NULL, 969082902, 'BorrowDirect', 'queued', '2015-02-23 18:28:37')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2863  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082902 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083181) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083181) ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082902) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082902) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082902 AND `dispatched_services`.`id` = 2863 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2863  (14.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082902 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083181 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083181) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082902 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083181 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082902  (14.7ms) COMMIT Completed 200 OK in 219ms (Views: 16.5ms | ActiveRecord: 124.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a96cbfd4741350d6284d1607534b167a' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:37', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'format', 'book', 969083182, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'genre', 1, 'book', 969083182, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'title', 1, 'foo', 969083182, 'foo')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:28:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083182, 'a96cbfd4741350d6284d1607534b167a')  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082903 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:37', NULL, 969082903, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:28:37')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2864  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969082903" for 127.0.0.1 at 2015-02-23 13:28:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082903"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082903 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083182 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083182)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082903  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082903 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082903 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082903 [["request_id", 969082903]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083182 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083182) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (12.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082903 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (13.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082903 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083182 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082903  (14.3ms) COMMIT Completed 200 OK in 80ms (Views: 17.7ms | ActiveRecord: 54.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3cf99eeba08e15ca7bfebf9898ac4b2a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:38', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'format', 'journal', 969083183, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'isbn', 1, '9789810743734', 969083183, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083183, '3cf99eeba08e15ca7bfebf9898ac4b2a')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082904  (15.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:38', NULL, 969082904, 'BorrowDirect', 'queued', '2015-02-23 18:28:38')  (14.7ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2865  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083183) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183) ServiceResponse Load (10.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082904) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082904) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`id` = 2865 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082904, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:38', 'Choose your delivery location', 969082904, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2865  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083183 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082904 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (48.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (48.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083183 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082904  (14.7ms) COMMIT Completed 200 OK in 315ms (Views: 66.0ms | ActiveRecord: 124.0ms) Started GET "/borrow_direct/BorrowDirect/969082904?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:28:38 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082904"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082904 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2865  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:38', 969082904, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083183 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183) Redirected to http://www.example.com/resolve?umlaut.request_id=969082904&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 39.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2865  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014207  (15.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969082904&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:28:38 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082904", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:28:38-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083183 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183)  (0.8ms) BEGIN SQL (1.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082904  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 [["request_id", 969082904]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083183 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (10.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082904 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083183 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082904  (15.2ms) COMMIT Completed 200 OK in 82ms (Views: 19.3ms | ActiveRecord: 54.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:28:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '19bacd604c886a43d7b5581b03f60c10' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:38', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'format', 'journal', 969083184, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'isbn', 1, '0109836413', 969083184, '0109836413')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:28:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083184, '19bacd604c886a43d7b5581b03f60c10')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082905  (19.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:38', NULL, 969082905, 'BorrowDirect', 'queued', '2015-02-23 18:28:38')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2866  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082905 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083184) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083184) ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082905) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082905) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082905 AND `dispatched_services`.`id` = 2866 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082905, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:38', 'This item is not currently available from BorrowDirect', 969082905, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2866  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082905 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083184 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083184) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082905 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083184 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082905  (14.4ms) COMMIT Completed 200 OK in 267ms (Views: 19.7ms | ActiveRecord: 127.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84f4211814cafdcc9b979264842cb829' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:38', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'format', 'journal', 969083185, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'isbn', 1, '9789810743734', 969083185, '9789810743734')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083185, '84f4211814cafdcc9b979264842cb829')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082906  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:38', NULL, 969082906, 'BorrowDirect', 'queued', '2015-02-23 18:28:38')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2867  (15.4ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083185) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185) ServiceResponse Load (9.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082906) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082906) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`id` = 2867 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082906, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 'Choose your delivery location', 969082906, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2867  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083185 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (10.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082906 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (44.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (47.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083185 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082906  (14.5ms) COMMIT Completed 200 OK in 308ms (Views: 62.6ms | ActiveRecord: 122.1ms) Started GET "/borrow_direct/BorrowDirect/969082906?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:28:39 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082906"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082906 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2867  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 969082906, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083185 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185) Redirected to http://www.example.com/resolve?umlaut.request_id=969082906&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 54ms (ActiveRecord: 38.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2867  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014212  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969082906&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:28:39 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082906", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:28:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083185 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082906  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 [["request_id", 969082906]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083185 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (10.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082906 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083185 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082906  (15.0ms) COMMIT Completed 200 OK in 80ms (Views: 17.4ms | ActiveRecord: 52.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e712327eae3abe4bcce1a86780385f27' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:39', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:39', 'format', 'journal', 969083186, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:39', 'isbn', 1, '9789810743734', 969083186, '9789810743734')  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083186, 'e712327eae3abe4bcce1a86780385f27')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082907  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:39', NULL, 969082907, 'BorrowDirect', 'queued', '2015-02-23 18:28:39')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2868  (14.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082907 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083186) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083186) ServiceResponse Load (9.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082907) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082907) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082907 AND `dispatched_services`.`id` = 2868 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082907, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 'Choose your delivery location', 969082907, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2868  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082907 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083186 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083186) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (10.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082907 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082907 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083186 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082907  (14.3ms) COMMIT Completed 200 OK in 264ms (Views: 21.1ms | ActiveRecord: 122.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '146ccdf22feb0d757b05de12591a6393' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:39', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:39', 'format', 'journal', 969083187, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:39', 'isbn', 1, '9789810743734', 969083187, '9789810743734')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083187, '146ccdf22feb0d757b05de12591a6393')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082908  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:39', NULL, 969082908, 'BorrowDirect', 'queued', '2015-02-23 18:28:39')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2869  (14.4ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083187) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187) ServiceResponse Load (9.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082908) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082908) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`id` = 2869 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082908, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 'Choose your delivery location', 969082908, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2869  (14.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083187 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082908 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (42.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (47.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083187 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082908  (14.3ms) COMMIT Completed 200 OK in 307ms (Views: 22.8ms | ActiveRecord: 162.9ms) Started GET "/borrow_direct/BorrowDirect/969082908" for 127.0.0.1 at 2015-02-23 13:28:39 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082908"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082908 ORDER BY id ASC  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 969082908, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083187 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187) Redirected to http://www.example.com/resolve?umlaut.request_id=969082908&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.7ms) Started GET "/resolve?umlaut.request_id=969082908&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:28:39 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969082908", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:28:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083187 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187)  (0.6ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082908  (14.3ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 [["request_id", 969082908]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083187 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082908 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083187 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082908  (15.1ms) COMMIT Completed 200 OK in 82ms (Views: 20.9ms | ActiveRecord: 52.0ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3cc97ee6f2c6b61fc142f3e5fd3bc75e' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:28:40', 'biological foundations of language', '1967') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'book', 969083188, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'auinit', 1, 'eh', 969083188, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'aulast', 1, 'lenneberg', 969083188, 'Lenneberg') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'title', 1, 'biological foundations of language', 969083188, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'genre', 1, 'book', 969083188, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'date', 1, '1967', 969083188, '1967')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083188, 'info:sid/google', '3cc97ee6f2c6b61fc142f3e5fd3bc75e')  (14.3ms) COMMIT ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082909 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082909, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082909 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:40', NULL, 969082909, 'test_bd', 'successful', '2015-02-23 18:28:40')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2870  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082909 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5054f07e795e54b44d1b7e8a3629ba95' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:28:40', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083189, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'auinit', 1, 'rd', 969083189, 'RD') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'aulast', 1, 'kaplan', 969083189, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'atitle', 1, 'the coming anarchy', 969083189, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'title', 1, 'the atlantic monthly', 969083189, 'The Atlantic monthly') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'volume', 1, '273', 969083189, '273') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'issue', 1, '2', 969083189, '2') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'date', 1, '1994', 969083189, '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'spage', 1, '44', 969083189, '44') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'issn', 1, '1072-7825', 969083189, '1072-7825')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083189, 'info:sid/google', '5054f07e795e54b44d1b7e8a3629ba95')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082910 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:40', NULL, 969082910, 'test_bd', 'successful', '2015-02-23 18:28:40')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2871  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082910 ServiceResponse Exists (3.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082910 LIMIT 1 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c08a2e23fe3192fc7027b6d00a6ee1c9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:40', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083190, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083190, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'aulast', 1, 'grimes', 969083190, 'Grimes')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (12.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083190, 'c08a2e23fe3192fc7027b6d00a6ee1c9')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082911, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.8ms) COMMIT ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082911 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbbab16c5fabd5dbb99b8fa9f60e9472' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083191, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '9789810743734', 969083191, '9789810743734')  (14.9ms) COMMIT  (1.1ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083191, 'dbbab16c5fabd5dbb99b8fa9f60e9472')  (14.4ms) COMMIT ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082912 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082912, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082912 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:40', NULL, 969082912, 'test_bd', 'successful', '2015-02-23 18:28:40')  (16.4ms) COMMIT  (1.1ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2872  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082912 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5c19c64c13d1abdbc03a1cda5f8d004' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083192, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '121212', 969083192, '121212')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083192, 'b5c19c64c13d1abdbc03a1cda5f8d004')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082913"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082913 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (10.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082913 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969082913  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082913, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082913\n', 'BorrowDirect', 'bd_request_status')  (17.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083192 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083192) Redirected to http://test.host/resolve?umlaut.request_id=969082913&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 33.2ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfbb0c83773f77afda8190fe0d7a1e18' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083193, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '121212', 969083193, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083193, 'bfbb0c83773f77afda8190fe0d7a1e18')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082914, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082914"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082914 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082914 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014222  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082914, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014222\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083193 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083193) Redirected to http://test.host/resolve?umlaut.request_id=969082914&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 30.0ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5719e78c298bb114edaa6df79520dad7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083194, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '121212', 969083194, '121212')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083194, '5719e78c298bb114edaa6df79520dad7')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082915, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082915"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082915 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082915 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082915 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:40', NULL, 969082915, 'BorrowDirect', 'in_progress', '2015-02-23 18:28:40')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2873  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082915, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083194 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083194) Redirected to http://test.host/resolve?umlaut.request_id=969082915&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 79ms (ActiveRecord: 68.2ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082915 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082915 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.3ms) BEGIN ServiceResponse Load (10.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082915 ORDER BY id ASC SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2873  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014225  (15.5ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a508ac8b394cc21a2ffcc98c29a54c4b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (9.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083195, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '121212', 969083195, '121212')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083195, 'a508ac8b394cc21a2ffcc98c29a54c4b')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082916, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082916"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082916 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082916 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082916 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082916, 'BorrowDirect', 'in_progress', '2015-02-23 18:28:41')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2874  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082916, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083195 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083195) Redirected to http://example.org Completed 302 Found in 76ms (ActiveRecord: 63.7ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae93a841ac6911f41849fdddf6bd05f6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083196, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '121212', 969083196, '121212')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083196, 'ae93a841ac6911f41849fdddf6bd05f6')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082917, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969082917"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082917 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (9.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082917 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082917, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 31ms (ActiveRecord: 26.7ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '157ea340710962a04146896e11ea4dce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083197, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '121212', 969083197, '121212')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (4.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083197, '157ea340710962a04146896e11ea4dce')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082918, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082918"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082918 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (10.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082918 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082918 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082918, 'BorrowDirect', 'in_progress', '2015-02-23 18:28:41')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2875  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082918, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083197 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083197) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 77ms (Views: 0.3ms | ActiveRecord: 63.8ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebedc44a2f667b81257a0f6900c7b4ce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082918 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN  (2.4ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '121212') SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2875 SQL (2.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083198, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '121212', 969083198, '121212')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014231  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083198, 'ebedc44a2f667b81257a0f6900c7b4ce')  (16.1ms) COMMIT  (15.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082919"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082919 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (8.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082919 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082919, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083198 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083198) Redirected to http://test.host/resolve?umlaut.request_id=969082919&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 29.3ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dab237a9a162111f7da2a9d916f095c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083199, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '9789810743734', 969083199, '9789810743734')  (15.2ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083199, 'dab237a9a162111f7da2a9d916f095c0')  (14.2ms) COMMIT ServiceResponse Load (9.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082920 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082920, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082920 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082920, 'test_bd', 'failed_temporary', '2015-02-23 18:28:41')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (105.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2876  (14.8ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082920 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c505bf4617ec6be129a6c0fbe9fd9a19' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083200, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '0109836413', 969083200, '0109836413')  (15.6ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083200, 'c505bf4617ec6be129a6c0fbe9fd9a19')  (15.4ms) COMMIT ServiceResponse Load (9.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082921 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082921, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 'This item is not currently available from BorrowDirect', 969082921, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082921 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082921, 'test_bd', 'successful', '2015-02-23 18:28:41')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2877  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082921 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2439ecb2ae2d2a1c438a69cb153081a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083201, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '000000000', 969083201, '000000000')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083201, 'f2439ecb2ae2d2a1c438a69cb153081a')  (14.3ms) COMMIT ServiceResponse Load (10.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082922 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082922, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 'This item is not currently available from BorrowDirect', 969082922, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (15.6ms) COMMIT DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082922 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082922, 'test_bd', 'successful', '2015-02-23 18:28:41')  (15.1ms) COMMIT  (1.2ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2878  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082922 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ded0d4c0e99633e230ad036479748f36' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:42', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:42', 'format', 'journal', 969083202, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:42', 'isbn', 1, '9789810743734', 969083202, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083202, 'ded0d4c0e99633e230ad036479748f36')  (14.1ms) COMMIT ServiceResponse Load (10.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082923 ORDER BY id ASC  (0.8ms) BEGIN SQL (4.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082923, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:42', 'Choose your delivery location', 969082923, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082923 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:42', NULL, 969082923, 'test_bd', 'successful', '2015-02-23 18:28:42')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:42' WHERE `dispatched_services`.`id` = 2879  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082923 ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a3e40bd695bb4d5c50f9df5d57f0ccd9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:52:59', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:52:59', 'format', 'journal', 969085171, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:52:59', 'title', 1, 'title', 969085171, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:52:59', 'author', 1, 'au', 969085171, 'au')  (18.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:52:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085171, 'a3e40bd695bb4d5c50f9df5d57f0ccd9')  (35.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:00', 969084572, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (22.3ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084572 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084572, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (20.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084572 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084572, 'test_bd', 'successful', '2015-02-24 15:53:00')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4136  (17.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084572 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f41c3845470512a379036609975f6a79' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:00', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085172, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'title', 969085172, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'author', 1, 'au', 969085172, 'au')  (26.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085172, 'f41c3845470512a379036609975f6a79')  (21.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:00', 969084573, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (22.4ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084573 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084573 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084573, 'test_bd', 'successful', '2015-02-24 15:53:00')  (19.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4137  (18.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084573 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42617fabd7c5ea73739554e365216054' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:00', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085173, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'title', 969085173, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'author', 1, 'au', 969085173, 'au')  (22.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085173, '42617fabd7c5ea73739554e365216054')  (17.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:00', 969084574, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (20.4ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084574 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084574, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (24.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084574 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084574, 'test_bd', 'successful', '2015-02-24 15:53:00')  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4138  (19.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084574 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c10e0d3f54897f06e2ca4e2a1eddf62c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:00', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085174, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'title', 969085174, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'author', 1, 'au', 969085174, 'au')  (25.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085174, 'c10e0d3f54897f06e2ca4e2a1eddf62c')  (20.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:00', 969084575, '--- {}\n', 'test_holding', 'holding')  (38.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084575, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (56.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084575 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084575, 'test_bd', 'successful', '2015-02-24 15:53:00')  (36.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4139  (26.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084575 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084575 ORDER BY id ASC Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14b83a57f4ef6bb88efa98f2fc0773cb' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 15:53:00', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085175, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'auinit', 1, 'rd', 969085175, 'RD') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'aulast', 1, 'kaplan', 969085175, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'atitle', 1, 'the coming anarchy', 969085175, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'the atlantic monthly', 969085175, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'volume', 1, '273', 969085175, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'issue', 1, '2', 969085175, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'date', 1, '1994', 969085175, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'spage', 1, '44', 969085175, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'issn', 1, '1072-7825', 969085175, '1072-7825')  (21.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085175, 'info:sid/google', '14b83a57f4ef6bb88efa98f2fc0773cb')  (16.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084576 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084576, 'test_bd', 'successful', '2015-02-24 15:53:00')  (20.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4140  (18.6ms) COMMIT DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084576 ServiceResponse Exists (1.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084576 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecc72f1a37a9bbb6830bf1c69b813bf1' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:00', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085176, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085176, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'aulast', 1, 'grimes', 969085176, 'Grimes')  (22.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085176, 'ecc72f1a37a9bbb6830bf1c69b813bf1')  (42.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084577, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (32.2ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084577 ORDER BY id ASC Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4488798862d078bf400bdf1f5db07a3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 15:53:01', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'book', 969085177, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'auinit', 1, 'eh', 969085177, 'EH') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'aulast', 1, 'lenneberg', 969085177, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'title', 1, 'biological foundations of language', 969085177, 'Biological foundations of language') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'genre', 1, 'book', 969085177, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'date', 1, '1967', 969085177, '1967')  (20.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085177, 'info:sid/google', 'b4488798862d078bf400bdf1f5db07a3')  (26.9ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084578 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084578, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (19.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084578 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084578, 'test_bd', 'successful', '2015-02-24 15:53:01')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4141  (20.1ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084578 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d7a5db912c316e49c236cd81f640e19' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085178, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '9789810743734', 969085178, '9789810743734')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085178, '9d7a5db912c316e49c236cd81f640e19')  (23.2ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084579 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084579, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084579 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084579, 'test_bd', 'failed_temporary', '2015-02-24 15:53:01')  (19.3ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4142  (20.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084579 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ddce4c4373a6bd4ba12008b375a1189' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085179, 'journal') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '000000000', 969085179, '000000000')  (24.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085179, '6ddce4c4373a6bd4ba12008b375a1189')  (20.4ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084580 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084580, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:01', 'This item is not currently available from BorrowDirect', 969084580, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084580 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084580, 'test_bd', 'successful', '2015-02-24 15:53:01')  (23.0ms) COMMIT  (1.2ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4143  (32.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084580 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee9fe997fa831f9daaa9c58757e999ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085180, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '9789810743734', 969085180, '9789810743734')  (21.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085180, 'ee9fe997fa831f9daaa9c58757e999ff')  (19.2ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084581 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084581, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:01', 'Choose your delivery location', 969084581, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (20.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084581 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084581, 'test_bd', 'successful', '2015-02-24 15:53:01')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4144  (22.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084581 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbc5d522554d9835cc752be084af22fa' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085181, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '0109836413', 969085181, '0109836413')  (21.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085181, 'cbc5d522554d9835cc752be084af22fa')  (17.7ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084582 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084582, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (24.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:01', 'This item is not currently available from BorrowDirect', 969084582, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (56.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084582 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084582, 'test_bd', 'successful', '2015-02-24 15:53:01')  (24.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4145  (20.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084582  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '78cbbe4b0d62d261592f2245024490d2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085182, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '9789810743734', 969085182, '9789810743734')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085182, '78cbbe4b0d62d261592f2245024490d2')  (18.5ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084583 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084583, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084583 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084583, 'test_bd', 'successful', '2015-02-24 15:53:01')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4146  (17.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084583 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 18ms (Views: 17.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.4ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26a17da0beb2ca38ea37413e61150bca' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085183, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085183, '121212')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085183, '26a17da0beb2ca38ea37413e61150bca')  (18.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084584"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084584 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084584 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969084584  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084584, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084584\n', 'BorrowDirect', 'bd_request_status')  (19.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085183 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085183) Redirected to http://test.host/resolve?umlaut.request_id=969084584&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 43ms (ActiveRecord: 26.5ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7ec2e6afce791f20916cbf40645a41a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085184, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085184, '121212')  (18.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085184, 'e7ec2e6afce791f20916cbf40645a41a')  (21.0ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084585, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084585"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084585 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084585 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016108  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084585, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016108\n', 'BorrowDirect', 'bd_request_status')  (18.2ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085184 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085184) Redirected to http://test.host/resolve?umlaut.request_id=969084585&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 25.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (2.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b1953bc3ab8b8e358fd6a5f8ce3cd207' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085185, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085185, '121212')  (21.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085185, 'b1953bc3ab8b8e358fd6a5f8ce3cd207')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084586, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084586"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084586 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084586 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084586 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:02', NULL, 969084586, 'BorrowDirect', 'in_progress', '2015-02-24 15:53:02')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4147  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084586, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.8ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085185 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085185) Redirected to http://test.host/resolve?umlaut.request_id=969084586&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 78ms (ActiveRecord: 68.1ms) DispatchedService Load (5.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084586 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084586 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084586 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4147  (27.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016111  (17.9ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39d94a89dbfdd2a537d2aa6371d0dbe2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085186, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085186, '121212')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085186, '39d94a89dbfdd2a537d2aa6371d0dbe2')  (18.7ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084587, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084587"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084587 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084587 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084587 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:02', NULL, 969084587, 'BorrowDirect', 'in_progress', '2015-02-24 15:53:02')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4148  (22.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084587, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085186 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085186) Redirected to http://example.org Completed 302 Found in 86ms (ActiveRecord: 75.8ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d57f5e9811e670c4b9fc59be23e805c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084587 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.2ms) BEGIN  (2.4ms) BEGIN SQL (2.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085187, 'journal') SQL (2.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4148 SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085187, '121212')  (21.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016113  (27.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085187, '0d57f5e9811e670c4b9fc59be23e805c')  (20.7ms) COMMIT  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084588, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (19.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084588"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084588 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084588 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084588, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.9ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 28ms (ActiveRecord: 23.7ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31b9c446fc80acac8f29a697eec01d9e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085188, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085188, '121212')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085188, '31b9c446fc80acac8f29a697eec01d9e')  (20.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084589, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084589"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084589 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084589 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084589 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:02', NULL, 969084589, 'BorrowDirect', 'in_progress', '2015-02-24 15:53:02')  (20.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4149  (21.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084589, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (16.8ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085188 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085188) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 81ms (Views: 0.3ms | ActiveRecord: 71.0ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2921dd920ac16f70e77bcd09b5bcae7b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN DispatchedService Load (3.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084589 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (3.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:03', '121212') SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:53:03' WHERE `dispatched_services`.`id` = 4149 SQL (2.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:03', 'format', 'journal', 969085189, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:03', 'isbn', 1, '121212', 969085189, '121212')  (21.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016117  (26.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085189, '2921dd920ac16f70e77bcd09b5bcae7b')  (23.8ms) COMMIT  (23.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084590"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084590 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084590 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:03', 969084590, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (20.9ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085189 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085189) Redirected to http://test.host/resolve?umlaut.request_id=969084590&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '886875acfbd312cdb9f80f7ad67bc97e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:03', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:03', 'format', 'journal', 969085190, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:03', 'isbn', 1, '9789810743734', 969085190, '9789810743734')  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085190, '886875acfbd312cdb9f80f7ad67bc97e')  (19.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084591  (21.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:03', NULL, 969084591, 'test_bd', 'queued', '2015-02-24 15:53:03')  (20.8ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:03' WHERE `dispatched_services`.`id` = 4150  (19.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084591 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085190) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085190) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084591) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084591) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (79.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084591 AND `dispatched_services`.`id` = 4150 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084591, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (33.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.1s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:53:03' WHERE `dispatched_services`.`id` = 4150  (19.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084591 LIMIT 1 DispatchedService Load (10.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085190 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085190) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084591 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.7ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085190 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (13.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.9ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084591  (19.8ms) COMMIT Completed 200 OK in 3575ms (Views: 3025.4ms | ActiveRecord: 149.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:53:06 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8392b19cece587b16cbae8f7758e04b7' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:06', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:06', 'format', 'book', 969085191, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:06', 'genre', 1, 'book', 969085191, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:06', 'author', 1, 'smith', 969085191, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:06', 'title', 1, 'some book', 969085191, 'Some Book')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:53:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085191, '8392b19cece587b16cbae8f7758e04b7')  (26.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084592  (20.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:06', NULL, 969084592, 'BorrowDirect', 'queued', '2015-02-24 15:53:06')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:06' WHERE `dispatched_services`.`id` = 4151  (19.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084592 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085191) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085191) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084592) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084592) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084592 AND `dispatched_services`.`id` = 4151 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084592, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (25.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:06' WHERE `dispatched_services`.`id` = 4151  (18.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084592 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085191 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085191) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084592 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085191 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084592  (19.4ms) COMMIT Completed 200 OK in 283ms (Views: 19.4ms | ActiveRecord: 151.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:53:07 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3035a9d2fb56b3fd773a86e12ce291fa' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:07', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'format', 'journal', 969085192, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'genre', 1, 'article', 969085192, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'title', 1, 'foo', 969085192, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'author', 1, 'bar', 969085192, 'bar')  (23.3ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:53:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085192, '3035a9d2fb56b3fd773a86e12ce291fa')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084593  (19.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:07', NULL, 969084593, 'BorrowDirect', 'queued', '2015-02-24 15:53:07')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4152  (24.3ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084593 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085192) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085192) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084593) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084593) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084593 AND `dispatched_services`.`id` = 4152 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4152  (17.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084593 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085192 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085192) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084593 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085192 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084593  (18.4ms) COMMIT Completed 200 OK in 248ms (Views: 16.6ms | ActiveRecord: 149.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8809ce70bdf6975daa31f9b22abcb9e3' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:07', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'format', 'book', 969085193, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'genre', 1, 'book', 969085193, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'title', 1, 'foo', 969085193, 'foo')  (20.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:53:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085193, '8809ce70bdf6975daa31f9b22abcb9e3')  (18.7ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084594 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:07', NULL, 969084594, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:53:07')  (18.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4153  (24.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969084594" for 127.0.0.1 at 2015-02-24 10:53:07 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084594"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084594 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085193 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085193)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084594  (25.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084594 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084594 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084594 [["request_id", 969084594]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085193 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085193) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084594 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084594 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085193 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084594  (20.8ms) COMMIT Completed 200 OK in 87ms (Views: 17.8ms | ActiveRecord: 61.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '46f355a34d235d33384e3337998aab28' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:07', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'format', 'journal', 969085194, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'isbn', 1, '9789810743734', 969085194, '9789810743734')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085194, '46f355a34d235d33384e3337998aab28')  (18.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084595  (17.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:07', NULL, 969084595, 'BorrowDirect', 'queued', '2015-02-24 15:53:07')  (20.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4154  (20.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085194) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084595) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084595) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`id` = 4154 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084595, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (21.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:07', 'Choose your delivery location', 969084595, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4154  (18.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085194 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084595 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (44.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085194 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084595  (19.9ms) COMMIT Completed 200 OK in 341ms (Views: 68.8ms | ActiveRecord: 141.4ms) Started GET "/borrow_direct/BorrowDirect/969084595?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 10:53:07 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084595"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084595 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4154  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:07', 969084595, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.8ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085194 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194) Redirected to http://www.example.com/resolve?umlaut.request_id=969084595&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 62ms (ActiveRecord: 47.7ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4154  (19.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016123  (20.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084595&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:53:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084595", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:53:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085194 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084595  (18.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 [["request_id", 969084595]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085194 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084595 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085194 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084595  (18.6ms) COMMIT Completed 200 OK in 80ms (Views: 20.8ms | ActiveRecord: 50.3ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 10:53:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7dbfef60b529135b5761d41c134d704f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:08', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'format', 'journal', 969085195, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'isbn', 1, '0109836413', 969085195, '0109836413')  (20.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 15:53:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085195, '7dbfef60b529135b5761d41c134d704f')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084596  (22.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:08', NULL, 969084596, 'BorrowDirect', 'queued', '2015-02-24 15:53:08')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4155  (22.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084596 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085195) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085195) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084596) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084596) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084596 AND `dispatched_services`.`id` = 4155 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084596, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:08', 'This item is not currently available from BorrowDirect', 969084596, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (18.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4155  (18.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084596 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085195 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085195) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084596 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085195 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084596  (19.3ms) COMMIT Completed 200 OK in 298ms (Views: 20.4ms | ActiveRecord: 146.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81ed729cf181cab78beed37548242af4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:08', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'format', 'journal', 969085196, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'isbn', 1, '9789810743734', 969085196, '9789810743734')  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085196, '81ed729cf181cab78beed37548242af4')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084597  (20.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:08', NULL, 969084597, 'BorrowDirect', 'queued', '2015-02-24 15:53:08')  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4156  (19.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085196) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084597) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084597) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`id` = 4156 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084597, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:08', 'Choose your delivery location', 969084597, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4156  (17.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085196 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084597 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085196 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084597  (21.4ms) COMMIT Completed 200 OK in 295ms (Views: 23.4ms | ActiveRecord: 142.3ms) Started GET "/borrow_direct/BorrowDirect/969084597?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 10:53:08 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084597"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084597 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4156  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:08', 969084597, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.1ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085196 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196) Redirected to http://www.example.com/resolve?umlaut.request_id=969084597&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 58ms (ActiveRecord: 47.6ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4156  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016128  (18.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084597&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:53:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084597", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:53:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085196 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084597  (17.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 [["request_id", 969084597]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085196 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084597 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085196 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084597  (19.8ms) COMMIT Completed 200 OK in 81ms (Views: 20.0ms | ActiveRecord: 51.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6946a028d2903f4cc8974eeed0348761' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:08', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'format', 'journal', 969085197, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'isbn', 1, '9789810743734', 969085197, '9789810743734')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085197, '6946a028d2903f4cc8974eeed0348761')  (20.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084598  (17.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:09', NULL, 969084598, 'BorrowDirect', 'queued', '2015-02-24 15:53:09')  (20.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:09' WHERE `dispatched_services`.`id` = 4157  (24.0ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084598 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085197) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085197) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084598) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084598) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084598 AND `dispatched_services`.`id` = 4157 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084598, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.7ms) COMMIT  (0.6ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:09', 'Choose your delivery location', 969084598, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:09' WHERE `dispatched_services`.`id` = 4157  (20.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084598 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085197 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085197) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084598 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084598 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085197 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084598  (20.2ms) COMMIT Completed 200 OK in 307ms (Views: 22.7ms | ActiveRecord: 147.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf76532f92e3f436661ec8f94f0772c9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:09', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:09', 'format', 'journal', 969085198, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:09', 'isbn', 1, '9789810743734', 969085198, '9789810743734')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085198, 'bf76532f92e3f436661ec8f94f0772c9')  (20.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084599  (21.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:09', NULL, 969084599, 'BorrowDirect', 'queued', '2015-02-24 15:53:09')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:09' WHERE `dispatched_services`.`id` = 4158  (21.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085198) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084599) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084599) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`id` = 4158 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084599, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:09', 'Choose your delivery location', 969084599, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (25.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:09' WHERE `dispatched_services`.`id` = 4158  (19.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085198 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084599 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085198 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084599  (18.9ms) COMMIT Completed 200 OK in 297ms (Views: 20.9ms | ActiveRecord: 141.5ms) Started GET "/borrow_direct/BorrowDirect/969084599" for 127.0.0.1 at 2015-02-24 10:53:09 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084599"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084599 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:09', 969084599, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (20.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085198 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198) Redirected to http://www.example.com/resolve?umlaut.request_id=969084599&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 78ms (ActiveRecord: 26.7ms) Started GET "/resolve?umlaut.request_id=969084599&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:53:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084599", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:53:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085198 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084599  (20.1ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 [["request_id", 969084599]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085198 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084599 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085198 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084599  (18.4ms) COMMIT Completed 200 OK in 86ms (Views: 23.0ms | ActiveRecord: 54.0ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16cde4d208dc55761f8b4e2681a4856b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:34', 'title') SQL (2.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'format', 'journal', 969085199, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'title', 1, 'title', 969085199, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'author', 1, 'au', 969085199, 'au')  (19.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:56:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085199, '16cde4d208dc55761f8b4e2681a4856b')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:34', 969084600, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (19.2ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084600 ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084600 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:34', NULL, 969084600, 'test_bd', 'successful', '2015-02-24 15:56:34')  (19.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:34' WHERE `dispatched_services`.`id` = 4159  (23.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084600 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c4378b6dabc9ed099352fc8f3f7bd8b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:34', 'title') SQL (0.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'format', 'journal', 969085200, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'title', 1, 'title', 969085200, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'author', 1, 'au', 969085200, 'au')  (21.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:56:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085200, '6c4378b6dabc9ed099352fc8f3f7bd8b')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:35', 969084601, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (26.5ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084601 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084601, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (20.6ms) COMMIT DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084601 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:35', NULL, 969084601, 'test_bd', 'successful', '2015-02-24 15:56:35')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:35' WHERE `dispatched_services`.`id` = 4160  (20.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084601 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41b3cbfc4525aa3bdee10af0119a9902' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:35', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'format', 'journal', 969085201, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'title', 1, 'title', 969085201, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'author', 1, 'au', 969085201, 'au')  (19.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:56:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085201, '41b3cbfc4525aa3bdee10af0119a9902')  (20.0ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:35', 969084602, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (22.7ms) COMMIT ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084602 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084602, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (22.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084602 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:35', NULL, 969084602, 'test_bd', 'successful', '2015-02-24 15:56:35')  (22.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:35' WHERE `dispatched_services`.`id` = 4161  (18.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084602 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f52e502a52713c8395b38f84dad792dd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:35', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'format', 'journal', 969085202, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'isbn', 1, '9789810743734', 969085202, '9789810743734')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085202, 'f52e502a52713c8395b38f84dad792dd')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084603  (19.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:35', NULL, 969084603, 'test_bd', 'queued', '2015-02-24 15:56:35')  (19.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:35' WHERE `dispatched_services`.`id` = 4162  (18.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084603 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085202) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085202) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084603) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084603) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (28.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084603 AND `dispatched_services`.`id` = 4162 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084603, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:56:35' WHERE `dispatched_services`.`id` = 4162  (18.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084603 LIMIT 1 DispatchedService Load (7.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085202 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085202) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084603 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (93.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085202 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084603  (19.7ms) COMMIT Completed 200 OK in 499ms (Views: 143.3ms | ActiveRecord: 141.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:56:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63748949c2ed3c649f292640951ccecf' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:35', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'format', 'book', 969085203, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'genre', 1, 'book', 969085203, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'author', 1, 'smith', 969085203, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'title', 1, 'some book', 969085203, 'Some Book')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:56:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085203, '63748949c2ed3c649f292640951ccecf')  (18.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084604  (19.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:35', NULL, 969084604, 'BorrowDirect', 'queued', '2015-02-24 15:56:35')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (2.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4163  (18.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084604 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085203) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085203) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084604) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084604) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084604 AND `dispatched_services`.`id` = 4163 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084604, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (17.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4163  (19.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084604 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085203 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085203) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084604 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085203 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084604  (17.9ms) COMMIT Completed 200 OK in 270ms (Views: 19.7ms | ActiveRecord: 146.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:56:36 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6560b69f2a1abb3b04bcb995cc41570c' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:36', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'format', 'journal', 969085204, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'genre', 1, 'article', 969085204, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'title', 1, 'foo', 969085204, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'author', 1, 'bar', 969085204, 'bar')  (21.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:56:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085204, '6560b69f2a1abb3b04bcb995cc41570c')  (19.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084605  (20.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:36', NULL, 969084605, 'BorrowDirect', 'queued', '2015-02-24 15:56:36')  (20.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4164  (18.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084605 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085204) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085204) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084605) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084605) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084605 AND `dispatched_services`.`id` = 4164 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4164  (19.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084605 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085204 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085204) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084605 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085204 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084605  (19.0ms) COMMIT Completed 200 OK in 245ms (Views: 17.9ms | ActiveRecord: 145.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '042305a0b39926425b11f5f8f9658599' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:36', 'foo') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'format', 'book', 969085205, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'genre', 1, 'book', 969085205, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'title', 1, 'foo', 969085205, 'foo')  (17.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:56:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085205, '042305a0b39926425b11f5f8f9658599')  (19.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084606 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:36', NULL, 969084606, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:56:36')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4165  (19.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084606" for 127.0.0.1 at 2015-02-24 10:56:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084606"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084606 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085205 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085205)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084606  (21.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084606 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084606 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084606 [["request_id", 969084606]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085205 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085205) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084606 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084606 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085205 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084606  (19.0ms) COMMIT Completed 200 OK in 81ms (Views: 17.8ms | ActiveRecord: 55.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb9c5654e4770b33c72d4568de979a39' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:36', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'format', 'journal', 969085206, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'isbn', 1, '9789810743734', 969085206, '9789810743734')  (19.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085206, 'eb9c5654e4770b33c72d4568de979a39')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084607  (20.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:36', NULL, 969084607, 'BorrowDirect', 'queued', '2015-02-24 15:56:36')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4166  (17.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085206) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084607) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084607) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`id` = 4166 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084607, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:36', 'Choose your delivery location', 969084607, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4166  (19.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085206 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084607 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085206 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084607  (18.4ms) COMMIT Completed 200 OK in 297ms (Views: 25.2ms | ActiveRecord: 139.4ms) Started GET "/borrow_direct/BorrowDirect/969084607?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 10:56:36 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084607"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084607 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4166  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:37', 969084607, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085206 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206) Redirected to http://www.example.com/resolve?umlaut.request_id=969084607&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 56ms (ActiveRecord: 46.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4166  (19.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016143  (19.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084607&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:56:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084607", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:56:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085206 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084607  (18.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 [["request_id", 969084607]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085206 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084607 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085206 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084607  (19.1ms) COMMIT Completed 200 OK in 81ms (Views: 19.9ms | ActiveRecord: 51.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 10:56:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a749c87528421184c47a161fb07ed6e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:37', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:37', 'format', 'journal', 969085207, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:37', 'isbn', 1, '0109836413', 969085207, '0109836413')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 15:56:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085207, '8a749c87528421184c47a161fb07ed6e')  (20.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084608  (22.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:37', NULL, 969084608, 'BorrowDirect', 'queued', '2015-02-24 15:56:37')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4167  (19.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084608 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085207) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085207) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084608) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084608) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084608 AND `dispatched_services`.`id` = 4167 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084608, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:37', 'This item is not currently available from BorrowDirect', 969084608, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (18.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4167  (19.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084608 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085207 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085207) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084608 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085207 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084608  (19.2ms) COMMIT Completed 200 OK in 331ms (Views: 20.0ms | ActiveRecord: 141.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc5d9ad0b0aaefddb06d630e2b5d2d98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:37', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:37', 'format', 'journal', 969085208, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:37', 'isbn', 1, '9789810743734', 969085208, '9789810743734')  (17.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085208, 'fc5d9ad0b0aaefddb06d630e2b5d2d98')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084609  (20.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:37', NULL, 969084609, 'BorrowDirect', 'queued', '2015-02-24 15:56:37')  (17.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4168  (17.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085208) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084609) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084609) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`id` = 4168 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084609, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:37', 'Choose your delivery location', 969084609, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (22.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4168  (18.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085208 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084609 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085208 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084609  (20.2ms) COMMIT Completed 200 OK in 291ms (Views: 21.1ms | ActiveRecord: 136.4ms) Started GET "/borrow_direct/BorrowDirect/969084609?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 10:56:37 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084609"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084609 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4168  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:37', 969084609, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (21.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085208 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208) Redirected to http://www.example.com/resolve?umlaut.request_id=969084609&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 57ms (ActiveRecord: 48.6ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4168  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016148  (18.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084609&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:56:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084609", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:56:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085208 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084609  (18.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 [["request_id", 969084609]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085208 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084609 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085208 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084609  (21.0ms) COMMIT Completed 200 OK in 81ms (Views: 18.6ms | ActiveRecord: 53.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9387fa6b2a9b6ef29be7a8ee7f356a7f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:38', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'format', 'journal', 969085209, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'isbn', 1, '9789810743734', 969085209, '9789810743734')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085209, '9387fa6b2a9b6ef29be7a8ee7f356a7f')  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084610  (18.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:38', NULL, 969084610, 'BorrowDirect', 'queued', '2015-02-24 15:56:38')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:38' WHERE `dispatched_services`.`id` = 4169  (19.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084610 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085209) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085209) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084610) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084610) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084610 AND `dispatched_services`.`id` = 4169 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084610, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:38', 'Choose your delivery location', 969084610, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:38' WHERE `dispatched_services`.`id` = 4169  (20.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084610 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085209 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085209) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084610 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084610 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085209 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (45.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084610  (23.6ms) COMMIT Completed 200 OK in 387ms (Views: 23.6ms | ActiveRecord: 186.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53bb7512425b3d56046f66a2704549f3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:38', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'format', 'journal', 969085210, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'isbn', 1, '9789810743734', 969085210, '9789810743734')  (32.2ms) COMMIT  (0.7ms) BEGIN SQL (33.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085210, '53bb7512425b3d56046f66a2704549f3')  (38.9ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084611  (35.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:38', NULL, 969084611, 'BorrowDirect', 'queued', '2015-02-24 15:56:38')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:38' WHERE `dispatched_services`.`id` = 4170  (17.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085210) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084611) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084611) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`id` = 4170 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084611, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.7ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:38', 'Choose your delivery location', 969084611, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:38' WHERE `dispatched_services`.`id` = 4170  (20.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085210 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084611 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085210 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084611  (18.6ms) COMMIT Completed 200 OK in 376ms (Views: 21.6ms | ActiveRecord: 219.9ms) Started GET "/borrow_direct/BorrowDirect/969084611" for 127.0.0.1 at 2015-02-24 10:56:38 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084611"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084611 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:38', 969084611, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (22.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085210 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210) Redirected to http://www.example.com/resolve?umlaut.request_id=969084611&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 27.6ms) Started GET "/resolve?umlaut.request_id=969084611&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:56:38 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084611", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:56:38-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085210 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210)  (0.8ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084611  (22.5ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 [["request_id", 969084611]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085210 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084611 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085210 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084611  (19.5ms) COMMIT Completed 200 OK in 91ms (Views: 25.4ms | ActiveRecord: 55.9ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8a78770ba4601b65bec2f497585fd40' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 15:56:38', 'biological foundations of language', '1967') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'format', 'book', 969085211, 'book') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'auinit', 1, 'eh', 969085211, 'EH') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'aulast', 1, 'lenneberg', 969085211, 'Lenneberg') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'title', 1, 'biological foundations of language', 969085211, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'genre', 1, 'book', 969085211, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'date', 1, '1967', 969085211, '1967')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085211, 'info:sid/google', 'c8a78770ba4601b65bec2f497585fd40')  (18.7ms) COMMIT ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084612 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084612, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (21.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084612 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084612, 'test_bd', 'successful', '2015-02-24 15:56:39')  (20.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4171  (20.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084612 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e698f6d1941a62b3bd355fa5135c4b8' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 15:56:39', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085212, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'auinit', 1, 'rd', 969085212, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'aulast', 1, 'kaplan', 969085212, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'atitle', 1, 'the coming anarchy', 969085212, 'The coming anarchy') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'title', 1, 'the atlantic monthly', 969085212, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'volume', 1, '273', 969085212, '273') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'issue', 1, '2', 969085212, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'date', 1, '1994', 969085212, '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'spage', 1, '44', 969085212, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'issn', 1, '1072-7825', 969085212, '1072-7825')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (2.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085212, 'info:sid/google', '2e698f6d1941a62b3bd355fa5135c4b8')  (19.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084613 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084613, 'test_bd', 'successful', '2015-02-24 15:56:39')  (19.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4172  (19.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084613 ServiceResponse Exists (1.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084613 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '170a0d7507ebaf0d6d0182f67332c03f' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:39', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085213, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085213, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'aulast', 1, 'grimes', 969085213, 'Grimes')  (20.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085213, '170a0d7507ebaf0d6d0182f67332c03f')  (18.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084614, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (19.7ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084614 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7539d944f1100aa6e8943240c552d90d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:39', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085214, 'journal') SQL (2.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'title', 1, 'title', 969085214, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'author', 1, 'au', 969085214, 'au')  (22.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085214, '7539d944f1100aa6e8943240c552d90d')  (17.7ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084615, '--- {}\n', 'test_holding', 'holding')  (20.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084615, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (19.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084615 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084615, 'test_bd', 'successful', '2015-02-24 15:56:39')  (21.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4173  (19.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084615 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084615 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b74505f77acf341a2abcd2de8374dea3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:39', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085215, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'isbn', 1, '9789810743734', 969085215, '9789810743734')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085215, 'b74505f77acf341a2abcd2de8374dea3')  (19.8ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084616 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084616, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084616 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084616, 'test_bd', 'successful', '2015-02-24 15:56:39')  (20.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4174  (20.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084616 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.0ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acbcccc9b9f905bc98105b61c29a3c91' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:39', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085216, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'isbn', 1, '121212', 969085216, '121212')  (17.9ms) COMMIT  (0.6ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085216, 'acbcccc9b9f905bc98105b61c29a3c91')  (20.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084617"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084617 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084617 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969084617  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084617, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084617\n', 'BorrowDirect', 'bd_request_status')  (18.1ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085216 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085216) Redirected to http://test.host/resolve?umlaut.request_id=969084617&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 25.5ms) Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3e8228d1fef70359de81e550af8c60e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:39', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085217, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'isbn', 1, '121212', 969085217, '121212')  (19.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085217, 'b3e8228d1fef70359de81e550af8c60e')  (19.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084618, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084618"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084618 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084618 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016160  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084618, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016160\n', 'BorrowDirect', 'bd_request_status')  (19.2ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085217 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085217) Redirected to http://test.host/resolve?umlaut.request_id=969084618&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 33ms (ActiveRecord: 26.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71fad4cb52910f6cf5ca10affa427d0c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:39', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085218, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'isbn', 1, '121212', 969085218, '121212')  (19.5ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085218, '71fad4cb52910f6cf5ca10affa427d0c')  (22.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084619, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (20.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084619"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084619 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084619 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084619 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084619, 'BorrowDirect', 'in_progress', '2015-02-24 15:56:39')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4175  (20.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084619, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085218 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085218) Redirected to http://test.host/resolve?umlaut.request_id=969084619&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 80ms (ActiveRecord: 69.2ms) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084619 ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084619 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084619 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4175  (19.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016163  (20.1ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '507e6f0229b0a65eef443453725379ef' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085219, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '121212', 969085219, '121212')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085219, '507e6f0229b0a65eef443453725379ef')  (19.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084620, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084620"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084620 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084620 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084620 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:40', NULL, 969084620, 'BorrowDirect', 'in_progress', '2015-02-24 15:56:40')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4176  (21.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084620, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085219 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085219) Redirected to http://example.org Completed 302 Found in 83ms (ActiveRecord: 69.9ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '287e7faccdcea4f5c79befa9326602c4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085220, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '121212', 969085220, '121212')  (20.9ms) COMMIT  (0.6ms) BEGIN SQL (29.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085220, '287e7faccdcea4f5c79befa9326602c4')  (19.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084621, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (20.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084621"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084621 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084621 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084621, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.4ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 28ms (ActiveRecord: 23.5ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ca4c8bf78f7430fc36eb5afaa867cf7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.1ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085221, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '121212', 969085221, '121212')  (21.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085221, '0ca4c8bf78f7430fc36eb5afaa867cf7')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084622, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (20.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084622"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084622 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084622 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084622 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:40', NULL, 969084622, 'BorrowDirect', 'in_progress', '2015-02-24 15:56:40')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4177  (21.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084622, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085221 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085221) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 85ms (Views: 0.3ms | ActiveRecord: 71.7ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da7503d752f46a5c373104185c4835ac' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084622 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN  (2.3ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '121212') SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4177 SQL (2.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085222, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '121212', 969085222, '121212')  (21.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016169  (24.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085222, 'da7503d752f46a5c373104185c4835ac')  (21.2ms) COMMIT  (20.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084623"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084623 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084623 ORDER BY id ASC  (1.3ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084623, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (21.1ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085222 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085222) Redirected to http://test.host/resolve?umlaut.request_id=969084623&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 29.4ms)  (0.6ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a91d9d9648992c4c6b0cb6521b669579' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085223, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '9789810743734', 969085223, '9789810743734')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085223, 'a91d9d9648992c4c6b0cb6521b669579')  (19.5ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084624 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084624, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 'Choose your delivery location', 969084624, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (19.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084624 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.2ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:40', NULL, 969084624, 'test_bd', 'successful', '2015-02-24 15:56:40')  (20.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4178  (18.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084624 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6aa777de91a8982526fb84f7afefac73' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085224, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '0109836413', 969085224, '0109836413')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085224, '6aa777de91a8982526fb84f7afefac73')  (19.7ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084625 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084625, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 'This item is not currently available from BorrowDirect', 969084625, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (20.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084625 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:41', NULL, 969084625, 'test_bd', 'successful', '2015-02-24 15:56:41')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:41' WHERE `dispatched_services`.`id` = 4179  (18.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084625 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64780e40856a28b4bf0c3182abbb0f09' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:41', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:41', 'format', 'journal', 969085225, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:41', 'isbn', 1, '000000000', 969085225, '000000000')  (19.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 15:56:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085225, '64780e40856a28b4bf0c3182abbb0f09')  (17.6ms) COMMIT ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084626 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084626, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.8ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:41', 'This item is not currently available from BorrowDirect', 969084626, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (19.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084626 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:41', NULL, 969084626, 'test_bd', 'successful', '2015-02-24 15:56:41')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:41' WHERE `dispatched_services`.`id` = 4180  (20.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084626 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a2d74061db0169f177ed86c9486d546' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:41', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:41', 'format', 'journal', 969085226, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:41', 'isbn', 1, '9789810743734', 969085226, '9789810743734')  (24.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085226, '5a2d74061db0169f177ed86c9486d546')  (19.2ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084627 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084627, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084627 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:41', NULL, 969084627, 'test_bd', 'failed_temporary', '2015-02-24 15:56:41')  (20.5ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 15:56:41' WHERE `dispatched_services`.`id` = 4181  (19.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084627 ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e56815f34d38ce15a274caa9d0d4eb1f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:57:03', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'format', 'journal', 969085227, 'journal') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'isbn', 1, '9789810743734', 969085227, '9789810743734')  (18.5ms) COMMIT  (1.4ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:57:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085227, 'e56815f34d38ce15a274caa9d0d4eb1f')  (17.9ms) COMMIT ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084628 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:57:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084628, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (29.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084628 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:03', NULL, 969084628, 'test_bd', 'successful', '2015-02-24 15:57:03')  (19.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:03' WHERE `dispatched_services`.`id` = 4182  (21.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084628 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e4a004463f3fd9e45b6ade75834b30d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:57:03', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'format', 'journal', 969085228, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'title', 1, 'title', 969085228, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'author', 1, 'au', 969085228, 'au')  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:57:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085228, '5e4a004463f3fd9e45b6ade75834b30d')  (21.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:57:03', 969084629, '--- {}\n', 'test_holding', 'holding')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:57:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084629, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (20.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084629 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:03', NULL, 969084629, 'test_bd', 'successful', '2015-02-24 15:57:03')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:03' WHERE `dispatched_services`.`id` = 4183  (20.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084629 ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084629 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:57:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6db03f05e5ff99d3c687a0100b4b6f7f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:57:03', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'format', 'journal', 969085229, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'isbn', 1, '9789810743734', 969085229, '9789810743734')  (24.2ms) COMMIT  (1.1ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:57:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085229, '6db03f05e5ff99d3c687a0100b4b6f7f')  (56.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084630  (52.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:04', NULL, 969084630, 'test_bd', 'queued', '2015-02-24 15:57:04')  (20.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:04' WHERE `dispatched_services`.`id` = 4184  (19.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084630 LIMIT 1 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085229) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085229) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084630) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084630) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (28.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084630 AND `dispatched_services`.`id` = 4184 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:57:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084630, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (25.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:57:04' WHERE `dispatched_services`.`id` = 4184  (26.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084630 LIMIT 1 DispatchedService Load (6.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085229 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085229) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084630 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (38981.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38983.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (39044.4ms) Permalink Load (2.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085229 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (14.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (1.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084630  (26.9ms) COMMIT Completed 200 OK in 39614ms (Views: 39118.4ms | ActiveRecord: 229.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:57:43 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e78738e37a7324923843e44efb0f316c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:57:43', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'format', 'book', 969085230, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'genre', 1, 'book', 969085230, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'author', 1, 'smith', 969085230, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'title', 1, 'some book', 969085230, 'Some Book')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:57:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085230, 'e78738e37a7324923843e44efb0f316c')  (20.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084631  (19.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:43', NULL, 969084631, 'BorrowDirect', 'queued', '2015-02-24 15:57:43')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:43' WHERE `dispatched_services`.`id` = 4185  (19.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084631 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085230) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085230) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084631) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084631) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084631 AND `dispatched_services`.`id` = 4185 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:57:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084631, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (19.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:57:43' WHERE `dispatched_services`.`id` = 4185  (19.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084631 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085230 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085230) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.5ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084631 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.4ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085230 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084631  (17.8ms) COMMIT Completed 200 OK in 334ms (Views: 44.9ms | ActiveRecord: 152.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:57:43 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34dce49c60f38a42900787a4559a57f9' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:57:43', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'format', 'journal', 969085231, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'genre', 1, 'article', 969085231, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'title', 1, 'foo', 969085231, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'author', 1, 'bar', 969085231, 'bar')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:57:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085231, '34dce49c60f38a42900787a4559a57f9')  (22.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084632  (17.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:43', NULL, 969084632, 'BorrowDirect', 'queued', '2015-02-24 15:57:43')  (22.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:43' WHERE `dispatched_services`.`id` = 4186  (19.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084632 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085231) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085231) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084632) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084632) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084632 AND `dispatched_services`.`id` = 4186 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:57:44' WHERE `dispatched_services`.`id` = 4186  (19.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084632 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085231 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085231) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.5ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084632 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085231 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (45.0ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084632  (19.5ms) COMMIT Completed 200 OK in 344ms (Views: 84.9ms | ActiveRecord: 150.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2bc196f6cafe94e6aaf0b693613c93b4' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:57:44', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:44', 'format', 'book', 969085232, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:44', 'genre', 1, 'book', 969085232, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:44', 'title', 1, 'foo', 969085232, 'foo')  (20.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:57:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085232, '2bc196f6cafe94e6aaf0b693613c93b4')  (17.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084633 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:44', NULL, 969084633, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:57:44')  (20.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:44' WHERE `dispatched_services`.`id` = 4187  (20.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084633" for 127.0.0.1 at 2015-02-24 10:57:44 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084633"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084633 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085232 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085232)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084633  (23.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084633 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084633 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084633 [["request_id", 969084633]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085232 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085232) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.4ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084633 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:58:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d324095bceb6ea8f6253db7e3d98b43' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:58:25', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:25', 'format', 'journal', 969085233, 'journal') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:25', 'isbn', 1, '9789810743734', 969085233, '9789810743734')  (20.0ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:58:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085233, '4d324095bceb6ea8f6253db7e3d98b43')  (21.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084634  (18.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:58:25', NULL, 969084634, 'test_bd', 'queued', '2015-02-24 15:58:25')  (19.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4188  (21.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084634 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085233) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085233) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084634) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084634) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (32.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084634 AND `dispatched_services`.`id` = 4188 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:58:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084634, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (23.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4188  (25.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084634 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085233 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085233) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084634 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (99.6ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085233 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084634  (18.9ms) COMMIT Completed 200 OK in 705ms (Views: 140.5ms | ActiveRecord: 172.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:58:26 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '665f9fe850654206d21a0854cb59a295' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:58:26', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'format', 'book', 969085234, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'genre', 1, 'book', 969085234, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'author', 1, 'smith', 969085234, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'title', 1, 'some book', 969085234, 'Some Book')  (20.6ms) COMMIT  (0.8ms) BEGIN SQL (2.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:58:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085234, '665f9fe850654206d21a0854cb59a295')  (23.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084635  (20.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:58:26', NULL, 969084635, 'BorrowDirect', 'queued', '2015-02-24 15:58:26')  (22.8ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4189  (19.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084635 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085234) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085234) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084635) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084635) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084635 AND `dispatched_services`.`id` = 4189 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:58:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084635, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4189  (19.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084635 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085234 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085234) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084635 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085234 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084635  (22.7ms) COMMIT Completed 200 OK in 300ms (Views: 20.5ms | ActiveRecord: 169.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:58:26 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23cdb606865f0d45669b9b3a0dfaf9d0' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:58:26', 'foo') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'format', 'journal', 969085235, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'genre', 1, 'article', 969085235, 'article') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'title', 1, 'foo', 969085235, 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'author', 1, 'bar', 969085235, 'bar')  (29.7ms) COMMIT  (0.7ms) BEGIN SQL (2.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:58:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085235, '23cdb606865f0d45669b9b3a0dfaf9d0')  (20.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084636  (26.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:58:26', NULL, 969084636, 'BorrowDirect', 'queued', '2015-02-24 15:58:26')  (27.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4190  (18.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084636 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085235) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085235) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084636) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084636) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084636 AND `dispatched_services`.`id` = 4190 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4190  (19.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084636 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085235 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085235) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084636 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085235 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084636  (37.2ms) COMMIT Completed 200 OK in 293ms (Views: 18.4ms | ActiveRecord: 189.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c31b0dc146afcd3906ec530e530a782' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:58:27', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:27', 'format', 'book', 969085236, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:27', 'genre', 1, 'book', 969085236, 'book') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:27', 'title', 1, 'foo', 969085236, 'foo')  (26.9ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:58:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085236, '2c31b0dc146afcd3906ec530e530a782')  (19.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084637 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:58:27', NULL, 969084637, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:58:27')  (24.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:58:27' WHERE `dispatched_services`.`id` = 4191  (22.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084637" for 127.0.0.1 at 2015-02-24 10:58:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084637"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084637 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085236 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085236)  (0.7ms) BEGIN SQL (2.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084637  (23.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084637 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084637 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084637 [["request_id", 969084637]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085236 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085236) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084637 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084637 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085236 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084637  (16.9ms) COMMIT Completed 200 OK in 85ms (Views: 19.7ms | ActiveRecord: 58.2ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:59:47 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e53a3fac1db5ca8a138464301a44f3b4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:59:47', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:47', 'format', 'journal', 969085237, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:47', 'isbn', 1, '9789810743734', 969085237, '9789810743734')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:59:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085237, 'e53a3fac1db5ca8a138464301a44f3b4')  (22.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084638  (20.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:59:47', NULL, 969084638, 'test_bd', 'queued', '2015-02-24 15:59:47')  (21.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:59:47' WHERE `dispatched_services`.`id` = 4192  (20.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084638 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085237) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085237) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084638) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084638) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084638 AND `dispatched_services`.`id` = 4192 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:59:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084638, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:59:47' WHERE `dispatched_services`.`id` = 4192  (25.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084638 LIMIT 1 DispatchedService Load (7.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085237 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085237) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084638 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (102.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085237 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084638  (19.8ms) COMMIT Completed 200 OK in 702ms (Views: 146.9ms | ActiveRecord: 175.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:59:48 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e167ccacf4f01ee643171838ef2328e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:59:48', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'format', 'book', 969085238, 'book') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'genre', 1, 'book', 969085238, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'author', 1, 'smith', 969085238, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'title', 1, 'some book', 969085238, 'Some Book')  (20.9ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:59:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085238, '1e167ccacf4f01ee643171838ef2328e')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084639  (24.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:59:48', NULL, 969084639, 'BorrowDirect', 'queued', '2015-02-24 15:59:48')  (21.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4193  (17.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084639 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085238) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085238) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084639) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084639) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084639 AND `dispatched_services`.`id` = 4193 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:59:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084639, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (20.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4193  (18.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084639 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085238 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085238) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084639 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085238 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084639  (18.1ms) COMMIT Completed 200 OK in 291ms (Views: 21.1ms | ActiveRecord: 160.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:59:48 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c81652eddb707e67625313027ef1e20' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:59:48', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'format', 'journal', 969085239, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'genre', 1, 'article', 969085239, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'title', 1, 'foo', 969085239, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'author', 1, 'bar', 969085239, 'bar')  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:59:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085239, '1c81652eddb707e67625313027ef1e20')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084640  (21.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:59:48', NULL, 969084640, 'BorrowDirect', 'queued', '2015-02-24 15:59:48')  (20.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4194  (20.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084640 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085239) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085239) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084640) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084640) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084640 AND `dispatched_services`.`id` = 4194 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4194  (17.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084640 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085239 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085239) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084640 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085239 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084640  (20.9ms) COMMIT Completed 200 OK in 243ms (Views: 17.1ms | ActiveRecord: 146.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed29350b7f7c7b8ad67f815903d1f356' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:59:48', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'format', 'book', 969085240, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'genre', 1, 'book', 969085240, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'title', 1, 'foo', 969085240, 'foo')  (18.7ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:59:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085240, 'ed29350b7f7c7b8ad67f815903d1f356')  (20.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084641 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:59:48', NULL, 969084641, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:59:48')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4195  (17.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084641" for 127.0.0.1 at 2015-02-24 10:59:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084641"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084641 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085240 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085240)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084641  (20.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084641 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084641 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084641 [["request_id", 969084641]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085240 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085240) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084641 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084641 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085240 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084641  (21.8ms) COMMIT Completed 200 OK in 84ms (Views: 19.3ms | ActiveRecord: 57.2ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:00:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a41ac5c7533d5395a536e0042cde625b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:00:20', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:20', 'format', 'journal', 969085241, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:20', 'isbn', 1, '9789810743734', 969085241, '9789810743734')  (20.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:00:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085241, 'a41ac5c7533d5395a536e0042cde625b')  (20.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084642  (19.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:00:21', NULL, 969084642, 'test_bd', 'queued', '2015-02-24 16:00:21')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4196  (17.5ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084642 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085241) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085241) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084642) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084642) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084642 AND `dispatched_services`.`id` = 4196 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:00:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084642, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (24.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4196  (33.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084642 LIMIT 1 DispatchedService Load (7.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085241 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085241) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084642 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.0ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085241 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084642  (20.4ms) COMMIT Completed 200 OK in 698ms (Views: 138.6ms | ActiveRecord: 170.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:00:21 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f9ee42e79dc72c216f0b811918f1802' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:00:21', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'format', 'book', 969085242, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'genre', 1, 'book', 969085242, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'author', 1, 'smith', 969085242, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'title', 1, 'some book', 969085242, 'Some Book')  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:00:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085242, '0f9ee42e79dc72c216f0b811918f1802')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084643  (21.3ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:00:21', NULL, 969084643, 'BorrowDirect', 'queued', '2015-02-24 16:00:21')  (25.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4197  (32.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084643 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085242) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085242) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084643) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084643) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084643 AND `dispatched_services`.`id` = 4197 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:00:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084643, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (22.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4197  (18.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084643 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085242 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085242) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084643 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085242 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084643  (20.7ms) COMMIT Completed 200 OK in 307ms (Views: 23.0ms | ActiveRecord: 172.9ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:00:21 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '722c375646cce9a16f130878f0b3771d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:00:21', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'format', 'journal', 969085243, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'genre', 1, 'article', 969085243, 'article') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'title', 1, 'foo', 969085243, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'author', 1, 'bar', 969085243, 'bar')  (25.7ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:00:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085243, '722c375646cce9a16f130878f0b3771d')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084644  (19.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:00:21', NULL, 969084644, 'BorrowDirect', 'queued', '2015-02-24 16:00:21')  (39.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4198  (43.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084644 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085243) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085243) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084644) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084644) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (29.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084644 AND `dispatched_services`.`id` = 4198 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:00:22' WHERE `dispatched_services`.`id` = 4198  (19.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084644 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085243 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085243) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084644 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085243 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084644  (19.8ms) COMMIT Completed 200 OK in 304ms (Views: 18.4ms | ActiveRecord: 195.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc68d13f137a9cc2abe6aabca003c3d8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:00:22', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:22', 'format', 'book', 969085244, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:22', 'genre', 1, 'book', 969085244, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:22', 'title', 1, 'foo', 969085244, 'foo')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:00:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085244, 'cc68d13f137a9cc2abe6aabca003c3d8')  (19.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084645 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:00:22', NULL, 969084645, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:00:22')  (21.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:00:22' WHERE `dispatched_services`.`id` = 4199  (18.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084645" for 127.0.0.1 at 2015-02-24 11:00:22 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084645"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084645 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085244 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085244)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084645  (19.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084645 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084645 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084645 [["request_id", 969084645]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085244 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085244) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084645 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084645 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085244 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084645  (25.1ms) COMMIT Completed 200 OK in 86ms (Views: 19.1ms | ActiveRecord: 59.0ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:01:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35d0d934a6a260297a6c92c91c25ea80' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:01:21', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:21', 'format', 'journal', 969085245, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:21', 'isbn', 1, '9789810743734', 969085245, '9789810743734')  (43.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:01:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085245, '35d0d934a6a260297a6c92c91c25ea80')  (21.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084646  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:21', NULL, 969084646, 'test_bd', 'queued', '2015-02-24 16:01:21')  (20.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:21' WHERE `dispatched_services`.`id` = 4200  (16.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084646 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085245) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085245) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084646) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084646) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (24.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084646 AND `dispatched_services`.`id` = 4200 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084646, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (22.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:01:21' WHERE `dispatched_services`.`id` = 4200  (19.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084646 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085245 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085245) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084646 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (94.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085245 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084646  (17.4ms) COMMIT Completed 200 OK in 701ms (Views: 136.6ms | ActiveRecord: 190.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:01:22 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '129d8dd26329268c8508d5144339d16f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:22', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'format', 'book', 969085246, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'genre', 1, 'book', 969085246, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'author', 1, 'smith', 969085246, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'title', 1, 'some book', 969085246, 'Some Book')  (20.0ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:01:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085246, '129d8dd26329268c8508d5144339d16f')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084647  (17.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:22', NULL, 969084647, 'BorrowDirect', 'queued', '2015-02-24 16:01:22')  (21.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4201  (19.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084647 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085246) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085246) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084647) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084647) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (28.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084647 AND `dispatched_services`.`id` = 4201 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084647, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (19.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4201  (18.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084647 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085246 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085246) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084647 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085246 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084647  (18.9ms) COMMIT Completed 200 OK in 289ms (Views: 19.7ms | ActiveRecord: 154.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:01:22 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38aadd3944097d31e464ce7edebe846b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:22', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'format', 'journal', 969085247, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'genre', 1, 'article', 969085247, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'title', 1, 'foo', 969085247, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'author', 1, 'bar', 969085247, 'bar')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:01:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085247, '38aadd3944097d31e464ce7edebe846b')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084648  (20.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:22', NULL, 969084648, 'BorrowDirect', 'queued', '2015-02-24 16:01:22')  (20.5ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4202  (17.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084648 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085247) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085247) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084648) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084648) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084648 AND `dispatched_services`.`id` = 4202 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4202  (16.7ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084648 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085247 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085247) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084648 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085247 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.5ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084648  (19.2ms) COMMIT Completed 200 OK in 232ms (Views: 17.3ms | ActiveRecord: 139.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84b0293afebae13a96596580f04b4ad0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:22', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'format', 'book', 969085248, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'genre', 1, 'book', 969085248, 'book') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'title', 1, 'foo', 969085248, 'foo')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:01:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085248, '84b0293afebae13a96596580f04b4ad0')  (19.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084649 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:22', NULL, 969084649, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:01:22')  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4203  (18.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084649" for 127.0.0.1 at 2015-02-24 11:01:22 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084649"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084649 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085248 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085248)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084649  (21.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084649 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084649 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084649 [["request_id", 969084649]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085248 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085248) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084649 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084649 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085248 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084649  (21.3ms) COMMIT Completed 200 OK in 87ms (Views: 19.5ms | ActiveRecord: 58.7ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:01:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9fd9690f68614471ffefd9919435724' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (5.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:01:34', '9789810743734') SQL (5.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'format', 'journal', 969085249, 'journal') SQL (5.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'isbn', 1, '9789810743734', 969085249, '9789810743734')  (24.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:01:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085249, 'd9fd9690f68614471ffefd9919435724')  (43.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084650  (24.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:34', NULL, 969084650, 'test_bd', 'queued', '2015-02-24 16:01:34')  (76.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:34' WHERE `dispatched_services`.`id` = 4204  (30.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084650 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085249) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085249) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084650) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084650) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084650 AND `dispatched_services`.`id` = 4204 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084650, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:01:34' WHERE `dispatched_services`.`id` = 4204  (20.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084650 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085249 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085249) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084650 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (94.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085249 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084650  (17.8ms) COMMIT Completed 200 OK in 785ms (Views: 137.1ms | ActiveRecord: 284.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:01:34 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '608427c08d763f613ba2e856fbc5b6c9' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:34', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'format', 'book', 969085250, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'genre', 1, 'book', 969085250, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'author', 1, 'smith', 969085250, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'title', 1, 'some book', 969085250, 'Some Book')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:01:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085250, '608427c08d763f613ba2e856fbc5b6c9')  (23.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084651  (19.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:34', NULL, 969084651, 'BorrowDirect', 'queued', '2015-02-24 16:01:34')  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:34' WHERE `dispatched_services`.`id` = 4205  (23.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084651 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085250) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085250) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084651) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084651) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084651 AND `dispatched_services`.`id` = 4205 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084651, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (19.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:35' WHERE `dispatched_services`.`id` = 4205  (18.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084651 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085250 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085250) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084651 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085250 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084651  (19.2ms) COMMIT Completed 200 OK in 287ms (Views: 20.4ms | ActiveRecord: 160.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:01:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a00b4d41115cea72e3b3f5d00e59965a' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:35', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'format', 'journal', 969085251, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'genre', 1, 'article', 969085251, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'title', 1, 'foo', 969085251, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'author', 1, 'bar', 969085251, 'bar')  (19.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:01:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085251, 'a00b4d41115cea72e3b3f5d00e59965a')  (18.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084652  (18.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:35', NULL, 969084652, 'BorrowDirect', 'queued', '2015-02-24 16:01:35')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:35' WHERE `dispatched_services`.`id` = 4206  (17.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084652 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085251) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085251) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084652) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084652) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084652 AND `dispatched_services`.`id` = 4206 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:35' WHERE `dispatched_services`.`id` = 4206  (20.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084652 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085251 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085251) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084652 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085251 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084652  (21.3ms) COMMIT Completed 200 OK in 239ms (Views: 17.3ms | ActiveRecord: 142.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24f7d0a22c6cd1f6fc2119f720ed5027' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:35', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'format', 'book', 969085252, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'genre', 1, 'book', 969085252, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'title', 1, 'foo', 969085252, 'foo')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:01:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085252, '24f7d0a22c6cd1f6fc2119f720ed5027')  (19.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084653 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:35', NULL, 969084653, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:01:35')  (20.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:35' WHERE `dispatched_services`.`id` = 4207  (18.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969084653" for 127.0.0.1 at 2015-02-24 11:01:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084653"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084653 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085252 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085252)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084653  (18.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084653 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084653 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084653 [["request_id", 969084653]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085252 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085252) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084653 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084653 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085252 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084653  (20.7ms) COMMIT Completed 200 OK in 81ms (Views: 18.4ms | ActiveRecord: 54.6ms) ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:01:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ace9e640eebd2de9689b0856691f846c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:01:51', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'format', 'journal', 969085253, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'isbn', 1, '9789810743734', 969085253, '9789810743734')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:01:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085253, 'ace9e640eebd2de9689b0856691f846c')  (20.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084654  (21.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:51', NULL, 969084654, 'test_bd', 'queued', '2015-02-24 16:01:51')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:51' WHERE `dispatched_services`.`id` = 4208  (23.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084654 LIMIT 1 Referent Load (2.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085253) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085253) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084654) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084654) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084654 AND `dispatched_services`.`id` = 4208 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084654, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (2.1ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:01:51' WHERE `dispatched_services`.`id` = 4208  (26.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084654 LIMIT 1 DispatchedService Load (7.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085253 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085253) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084654 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (97.0ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085253 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084654  (18.7ms) COMMIT Completed 200 OK in 688ms (Views: 139.1ms | ActiveRecord: 174.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:01:51 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7c240d5ae604bd344cc48b35f98c036' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:51', 'some book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'format', 'book', 969085254, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'genre', 1, 'book', 969085254, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'author', 1, 'smith', 969085254, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'title', 1, 'some book', 969085254, 'Some Book')  (26.2ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:01:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085254, 'f7c240d5ae604bd344cc48b35f98c036')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084655  (21.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:51', NULL, 969084655, 'BorrowDirect', 'queued', '2015-02-24 16:01:51')  (24.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:51' WHERE `dispatched_services`.`id` = 4209  (23.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084655 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085254) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085254) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084655) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084655) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084655 AND `dispatched_services`.`id` = 4209 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084655, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (20.8ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:52' WHERE `dispatched_services`.`id` = 4209  (18.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084655 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085254 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085254) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084655 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085254 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084655  (17.2ms) COMMIT Completed 200 OK in 303ms (Views: 19.4ms | ActiveRecord: 172.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:01:52 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1828ad37ef765b2488d8b727b069382' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:52', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'format', 'journal', 969085255, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'genre', 1, 'article', 969085255, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'title', 1, 'foo', 969085255, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'author', 1, 'bar', 969085255, 'bar')  (19.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:01:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085255, 'c1828ad37ef765b2488d8b727b069382')  (20.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084656  (19.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:52', NULL, 969084656, 'BorrowDirect', 'queued', '2015-02-24 16:01:52')  (39.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:52' WHERE `dispatched_services`.`id` = 4210  (20.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084656 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085255) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085255) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084656) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084656) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (25.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084656 AND `dispatched_services`.`id` = 4210 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:52' WHERE `dispatched_services`.`id` = 4210  (24.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084656 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.4ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085255 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085255) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084656 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085255 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084656  (18.3ms) COMMIT Completed 200 OK in 275ms (Views: 17.7ms | ActiveRecord: 164.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76180363b1783326b090afe5dea92d5e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:52', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'format', 'book', 969085256, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'genre', 1, 'book', 969085256, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'title', 1, 'foo', 969085256, 'foo')  (25.0ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:01:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085256, '76180363b1783326b090afe5dea92d5e')  (19.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084657 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (2.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:52', NULL, 969084657, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:01:52')  (22.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:52' WHERE `dispatched_services`.`id` = 4211  (19.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084657" for 127.0.0.1 at 2015-02-24 11:01:52 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084657"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084657 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085256 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085256)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084657  (20.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084657 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084657 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084657 [["request_id", 969084657]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085256 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085256) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084657 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084657 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085256 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084657  (19.8ms) COMMIT Completed 200 OK in 83ms (Views: 19.1ms | ActiveRecord: 56.4ms) ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:02:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c29fe19564d4de025af6536fd92ac05d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:02:21', '9789810743734') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:21', 'format', 'journal', 969085257, 'journal') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:21', 'isbn', 1, '9789810743734', 969085257, '9789810743734')  (21.0ms) COMMIT  (1.1ms) BEGIN SQL (2.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:02:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085257, 'c29fe19564d4de025af6536fd92ac05d')  (19.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084658  (20.9ms) COMMIT DispatchedService Load (2.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:02:21', NULL, 969084658, 'test_bd', 'queued', '2015-02-24 16:02:21')  (22.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:02:21' WHERE `dispatched_services`.`id` = 4212  (18.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084658 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085257) ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085257) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084658) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084658) DispatchedService Load (6.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (30.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084658 AND `dispatched_services`.`id` = 4212 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:02:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084658, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (2.0ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:02:21' WHERE `dispatched_services`.`id` = 4212  (18.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084658 LIMIT 1 DispatchedService Load (7.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085257 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085257) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084658 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (100.2ms) Permalink Load (2.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085257 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (11.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084658  (22.9ms) COMMIT Completed 200 OK in 719ms (Views: 140.5ms | ActiveRecord: 186.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:02:22 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ae11cbc66928596fcfcc4d87acdb225' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:02:22', 'some book') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'format', 'book', 969085258, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'genre', 1, 'book', 969085258, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'author', 1, 'smith', 969085258, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'title', 1, 'some book', 969085258, 'Some Book')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (6.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:02:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085258, '2ae11cbc66928596fcfcc4d87acdb225')  (19.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084659  (18.1ms) COMMIT DispatchedService Load (6.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:02:22', NULL, 969084659, 'BorrowDirect', 'queued', '2015-02-24 16:02:22')  (21.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4213  (21.3ms) COMMIT Request Load (2.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084659 LIMIT 1 Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085258) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085258) ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084659) ORDER BY id ASC DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084659) DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084659 AND `dispatched_services`.`id` = 4213 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:02:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084659, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.4ms) COMMIT DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (7.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4213  (23.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084659 LIMIT 1 DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.3ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659 Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085258 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085258) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084659 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085258 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084659  (21.4ms) COMMIT Completed 200 OK in 333ms (Views: 19.8ms | ActiveRecord: 177.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:02:22 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (2.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59b2606a23cf227403f5c6001884c774' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:02:22', 'foo') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'format', 'journal', 969085259, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'genre', 1, 'article', 969085259, 'article') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'title', 1, 'foo', 969085259, 'foo') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'author', 1, 'bar', 969085259, 'bar')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:02:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085259, '59b2606a23cf227403f5c6001884c774')  (19.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084660  (21.3ms) COMMIT DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:02:22', NULL, 969084660, 'BorrowDirect', 'queued', '2015-02-24 16:02:22')  (20.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4214  (21.7ms) COMMIT Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084660 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085259) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085259) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084660) ORDER BY id ASC DispatchedService Load (3.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084660) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084660 AND `dispatched_services`.`id` = 4214 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4214  (21.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084660 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660 DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms) Referent Load (2.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085259 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085259) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084660 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085259 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084660  (22.6ms) COMMIT Completed 200 OK in 265ms (Views: 17.1ms | ActiveRecord: 160.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '707ccd640a9224e6c0605029ace2cb39' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:02:22', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'format', 'book', 969085260, 'book') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'genre', 1, 'book', 969085260, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'title', 1, 'foo', 969085260, 'foo')  (17.2ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:02:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085260, '707ccd640a9224e6c0605029ace2cb39')  (20.0ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084661 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:02:22', NULL, 969084661, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:02:22')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4215  (17.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084661" for 127.0.0.1 at 2015-02-24 11:02:22 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084661"} Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084661 LIMIT 1 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085260 LIMIT 1 ReferentValue Load (3.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085260)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084661  (20.2ms) COMMIT DispatchedService Load (2.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084661 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084661 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084661 [["request_id", 969084661]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085260 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085260) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084661 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084661 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085260 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084661  (20.1ms) COMMIT Completed 200 OK in 90ms (Views: 19.2ms | ActiveRecord: 62.6ms) ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c918d34609397fc20b0dc1418c47940' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:06', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'format', 'journal', 969085261, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'isbn', 1, '9789810743734', 969085261, '9789810743734')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085261, '9c918d34609397fc20b0dc1418c47940')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084662  (18.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:06', NULL, 969084662, 'test_bd', 'queued', '2015-02-24 16:10:06')  (20.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:06' WHERE `dispatched_services`.`id` = 4216  (18.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084662 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085261) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085261) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084662) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084662) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (28.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084662 AND `dispatched_services`.`id` = 4216 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084662, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:10:06' WHERE `dispatched_services`.`id` = 4216  (22.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084662 LIMIT 1 DispatchedService Load (7.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085261 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085261) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084662 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (96.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085261 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084662  (20.4ms) COMMIT Completed 200 OK in 688ms (Views: 139.4ms | ActiveRecord: 166.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:10:06 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f93bce82e05eb023f97a6c308ead7452' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:10:06', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'format', 'book', 969085262, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'genre', 1, 'book', 969085262, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'author', 1, 'smith', 969085262, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'title', 1, 'some book', 969085262, 'Some Book')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:10:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085262, 'f93bce82e05eb023f97a6c308ead7452')  (20.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084663  (21.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:07', NULL, 969084663, 'BorrowDirect', 'queued', '2015-02-24 16:10:07')  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4217  (21.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084663 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085262) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085262) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084663) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084663) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084663 AND `dispatched_services`.`id` = 4217 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084663, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (17.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4217  (19.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084663 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085262 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085262) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084663 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085262 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084663  (21.3ms) COMMIT Completed 200 OK in 281ms (Views: 19.8ms | ActiveRecord: 157.2ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:10:07 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '081a611f9c3c3d140862a680b0b550d2' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:10:07', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'format', 'journal', 969085263, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'genre', 1, 'article', 969085263, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'title', 1, 'foo', 969085263, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'author', 1, 'bar', 969085263, 'bar')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:10:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085263, '081a611f9c3c3d140862a680b0b550d2')  (20.8ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084664  (18.0ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:07', NULL, 969084664, 'BorrowDirect', 'queued', '2015-02-24 16:10:07')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4218  (20.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084664 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085263) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085263) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084664) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084664) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084664 AND `dispatched_services`.`id` = 4218 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4218  (18.8ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084664 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085263 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085263) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084664 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085263 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084664  (19.2ms) COMMIT Completed 200 OK in 238ms (Views: 18.2ms | ActiveRecord: 141.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '67b27f9a76a51b9f0615518554e8c458' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:10:07', 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'format', 'book', 969085264, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'genre', 1, 'book', 969085264, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'title', 1, 'foo', 969085264, 'foo')  (19.6ms) COMMIT  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:10:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085264, '67b27f9a76a51b9f0615518554e8c458')  (21.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084665 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:07', NULL, 969084665, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:10:07')  (20.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4219  (18.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084665" for 127.0.0.1 at 2015-02-24 11:10:07 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084665"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084665 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085264 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085264)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084665  (21.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084665 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084665 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084665 [["request_id", 969084665]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085264 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085264) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084665 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084665 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085264 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084665  (17.2ms) COMMIT Completed 200 OK in 83ms (Views: 18.6ms | ActiveRecord: 56.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a9c94d152a9965806bc52e1dbb12c98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:07', '9789810743734') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'format', 'journal', 969085265, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'isbn', 1, '9789810743734', 969085265, '9789810743734')  (30.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085265, '6a9c94d152a9965806bc52e1dbb12c98')  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084666  (19.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:07', NULL, 969084666, 'BorrowDirect', 'queued', '2015-02-24 16:10:07')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4220  (17.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085265) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084666) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084666) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`id` = 4220 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084666, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (21.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:07', 'Choose your delivery location', 969084666, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4220  (20.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085265 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084666 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085265 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084666  (20.3ms) COMMIT Completed 200 OK in 312ms (Views: 24.7ms | ActiveRecord: 152.9ms) Started GET "/borrow_direct/BorrowDirect/969084666?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:10:08 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084666"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084666 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4220  (17.3ms) COMMIT  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:08', 969084666, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (62.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085265 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265) Redirected to http://www.example.com/resolve?umlaut.request_id=969084666&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 100ms (ActiveRecord: 89.7ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4220  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016201  (18.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969084666&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:10:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084666", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:10:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085265 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084666  (22.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 [["request_id", 969084666]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085265 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084666 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085265 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084666  (16.5ms) COMMIT Completed 200 OK in 84ms (Views: 21.3ms | ActiveRecord: 53.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:10:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63e2bca65318a0fe57a6a4c828e6f6f0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:08', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:08', 'format', 'journal', 969085266, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:08', 'isbn', 1, '0109836413', 969085266, '0109836413')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:10:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085266, '63e2bca65318a0fe57a6a4c828e6f6f0')  (19.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084667  (19.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:08', NULL, 969084667, 'BorrowDirect', 'queued', '2015-02-24 16:10:08')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4221  (18.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084667 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085266) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085266) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084667) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084667) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084667 AND `dispatched_services`.`id` = 4221 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084667, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (22.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:08', 'This item is not currently available from BorrowDirect', 969084667, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (18.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4221  (19.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084667 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085266 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085266) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084667 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085266 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084667  (18.3ms) COMMIT Completed 200 OK in 334ms (Views: 20.3ms | ActiveRecord: 139.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '200bb386c6d93b54754aae4b6e7603ea' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:08', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:08', 'format', 'journal', 969085267, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:08', 'isbn', 1, '9789810743734', 969085267, '9789810743734')  (20.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085267, '200bb386c6d93b54754aae4b6e7603ea')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084668  (19.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:08', NULL, 969084668, 'BorrowDirect', 'queued', '2015-02-24 16:10:08')  (20.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4222  (18.6ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085267) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084668) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084668) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`id` = 4222 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084668, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:08', 'Choose your delivery location', 969084668, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4222  (19.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085267 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084668 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085267 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084668  (21.7ms) COMMIT Completed 200 OK in 305ms (Views: 22.9ms | ActiveRecord: 148.2ms) Started GET "/borrow_direct/BorrowDirect/969084668?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:10:08 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084668"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084668 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4222  (18.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:08', 969084668, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085267 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267) Redirected to http://www.example.com/resolve?umlaut.request_id=969084668&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 64ms (ActiveRecord: 48.5ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4222  (22.0ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016206  (22.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084668&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:10:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084668", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:10:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085267 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084668  (21.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 [["request_id", 969084668]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085267 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084668 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085267 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084668  (25.6ms) COMMIT Completed 200 OK in 91ms (Views: 17.9ms | ActiveRecord: 64.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d4b69f0ad39ed92352bda1eb0f74655' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:09', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:09', 'format', 'journal', 969085268, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:09', 'isbn', 1, '9789810743734', 969085268, '9789810743734')  (22.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085268, '5d4b69f0ad39ed92352bda1eb0f74655')  (23.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084669  (22.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:09', NULL, 969084669, 'BorrowDirect', 'queued', '2015-02-24 16:10:09')  (25.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4223  (34.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084669 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085268) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085268) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084669) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084669) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084669 AND `dispatched_services`.`id` = 4223 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084669, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (23.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:09', 'Choose your delivery location', 969084669, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (27.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4223  (18.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084669 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085268 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085268) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084669 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084669 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085268 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084669  (21.3ms) COMMIT Completed 200 OK in 391ms (Views: 23.0ms | ActiveRecord: 178.5ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b61eeab57b9b72c0c84579ba57ae9836' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:09', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:09', 'format', 'journal', 969085269, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:09', 'isbn', 1, '9789810743734', 969085269, '9789810743734')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085269, 'b61eeab57b9b72c0c84579ba57ae9836')  (20.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084670  (19.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670  (0.9ms) BEGIN SQL (3.7ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:09', NULL, 969084670, 'BorrowDirect', 'queued', '2015-02-24 16:10:09')  (24.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4224  (19.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085269) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084670) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084670) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`id` = 4224 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084670, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:09', 'Choose your delivery location', 969084670, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (24.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4224  (25.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085269 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084670 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085269 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084670  (20.8ms) COMMIT Completed 200 OK in 322ms (Views: 21.3ms | ActiveRecord: 153.1ms) Started GET "/borrow_direct/BorrowDirect/969084670" for 127.0.0.1 at 2015-02-24 11:10:09 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084670"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084670 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:09', 969084670, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (27.1ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085269 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269) Redirected to http://www.example.com/resolve?umlaut.request_id=969084670&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 39ms (ActiveRecord: 32.5ms) Started GET "/resolve?umlaut.request_id=969084670&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:10:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084670", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:10:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085269 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084670  (19.4ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 [["request_id", 969084670]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085269 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084670 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085269 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084670  (17.3ms) COMMIT Completed 200 OK in 82ms (Views: 21.6ms | ActiveRecord: 50.7ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfb1c1058781a611fa06be01457306cc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:31', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:31', 'format', 'journal', 969085270, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:31', 'isbn', 1, '9789810743734', 969085270, '9789810743734')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085270, 'bfb1c1058781a611fa06be01457306cc')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084671  (20.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:31', NULL, 969084671, 'test_bd', 'queued', '2015-02-24 16:10:31')  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:31' WHERE `dispatched_services`.`id` = 4225  (21.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084671 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085270) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085270) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084671) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084671) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084671 AND `dispatched_services`.`id` = 4225 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084671, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:10:32' WHERE `dispatched_services`.`id` = 4225  (18.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084671 LIMIT 1 DispatchedService Load (7.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085270 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085270) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084671 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:14 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa3f3f2f758fb250ad7f595530a1f43d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:15', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'format', 'journal', 969085271, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'isbn', 1, '9789810743734', 969085271, '9789810743734')  (27.2ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085271, 'fa3f3f2f758fb250ad7f595530a1f43d')  (18.8ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084672  (17.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:15', NULL, 969084672, 'test_bd', 'queued', '2015-02-24 16:11:15')  (18.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:15' WHERE `dispatched_services`.`id` = 4226  (18.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084672 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085271) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085271) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084672) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084672) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084672 AND `dispatched_services`.`id` = 4226 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084672, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:11:15' WHERE `dispatched_services`.`id` = 4226  (20.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084672 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085271 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085271) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084672 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (32.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.9ms) Permalink Load (1.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085271 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (1.0ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084672  (17.2ms) COMMIT Completed 200 OK in 685ms (Views: 142.9ms | ActiveRecord: 171.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:11:15 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95889422058408e98c6236f55844ca14' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:11:15', 'some book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'format', 'book', 969085272, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'genre', 1, 'book', 969085272, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'author', 1, 'smith', 969085272, 'Smith') SQL (2.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'title', 1, 'some book', 969085272, 'Some Book')  (21.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:11:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085272, '95889422058408e98c6236f55844ca14')  (17.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084673  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:15', NULL, 969084673, 'BorrowDirect', 'queued', '2015-02-24 16:11:15')  (20.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:15' WHERE `dispatched_services`.`id` = 4227  (17.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084673 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085272) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085272) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084673) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084673) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084673 AND `dispatched_services`.`id` = 4227 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084673, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (19.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4227  (17.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084673 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085272 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085272) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084673 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085272 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084673  (17.8ms) COMMIT Completed 200 OK in 278ms (Views: 20.7ms | ActiveRecord: 151.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:11:16 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c187571dc90c54e9334b3e2a5b1fcd1b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:11:16', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'format', 'journal', 969085273, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'genre', 1, 'article', 969085273, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'title', 1, 'foo', 969085273, 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'author', 1, 'bar', 969085273, 'bar')  (21.2ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:11:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085273, 'c187571dc90c54e9334b3e2a5b1fcd1b')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084674  (17.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:16', NULL, 969084674, 'BorrowDirect', 'queued', '2015-02-24 16:11:16')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4228  (18.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084674 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085273) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085273) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084674) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084674) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084674 AND `dispatched_services`.`id` = 4228 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4228  (19.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084674 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085273 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085273) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084674 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085273 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084674  (20.6ms) COMMIT Completed 200 OK in 241ms (Views: 16.9ms | ActiveRecord: 142.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6f5b630047424df03885196dbe827c6' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:11:16', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'format', 'book', 969085274, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'genre', 1, 'book', 969085274, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'title', 1, 'foo', 969085274, 'foo')  (21.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:11:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085274, 'b6f5b630047424df03885196dbe827c6')  (20.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084675 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:16', NULL, 969084675, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:11:16')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4229  (22.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084675" for 127.0.0.1 at 2015-02-24 11:11:16 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084675"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084675 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085274 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085274)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084675  (19.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084675 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084675 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084675 [["request_id", 969084675]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085274 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085274) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084675 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084675 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085274 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084675  (19.6ms) COMMIT Completed 200 OK in 82ms (Views: 19.3ms | ActiveRecord: 53.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:16 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '194a6e4b62d6d2efaa3a53570a9d322d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:16', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'format', 'journal', 969085275, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'isbn', 1, '9789810743734', 969085275, '9789810743734')  (25.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085275, '194a6e4b62d6d2efaa3a53570a9d322d')  (77.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084676  (55.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:16', NULL, 969084676, 'BorrowDirect', 'queued', '2015-02-24 16:11:16')  (34.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4230  (19.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085275) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084676) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084676) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (24.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`id` = 4230 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084676, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:16', 'Choose your delivery location', 969084676, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (26.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4230  (21.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085275 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084676 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085275 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084676  (20.1ms) COMMIT Completed 200 OK in 432ms (Views: 25.7ms | ActiveRecord: 259.6ms) Started GET "/borrow_direct/BorrowDirect/969084676?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:11:17 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084676"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084676 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4230  (19.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:17', 969084676, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (23.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085275 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275) Redirected to http://www.example.com/resolve?umlaut.request_id=969084676&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 64ms (ActiveRecord: 53.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4230  (21.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016217  (20.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084676&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:11:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084676", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:11:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085275 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084676  (21.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 [["request_id", 969084676]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085275 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084676 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085275 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084676  (52.5ms) COMMIT Completed 200 OK in 126ms (Views: 23.7ms | ActiveRecord: 93.4ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:11:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f84a1376fdde4f3983200740f4ffaf3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:17', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:17', 'format', 'journal', 969085276, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:17', 'isbn', 1, '0109836413', 969085276, '0109836413')  (33.6ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:11:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085276, '9f84a1376fdde4f3983200740f4ffaf3')  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084677  (21.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:17', NULL, 969084677, 'BorrowDirect', 'queued', '2015-02-24 16:11:17')  (19.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4231  (19.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084677 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085276) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085276) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084677) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084677) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084677 AND `dispatched_services`.`id` = 4231 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084677, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:17', 'This item is not currently available from BorrowDirect', 969084677, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (21.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4231  (33.8ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084677 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085276 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085276) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084677 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085276 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084677  (19.7ms) COMMIT Completed 200 OK in 364ms (Views: 21.1ms | ActiveRecord: 159.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '033cbf094f71b75005f9de5081749399' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:17', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:17', 'format', 'journal', 969085277, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:17', 'isbn', 1, '9789810743734', 969085277, '9789810743734')  (21.4ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085277, '033cbf094f71b75005f9de5081749399')  (26.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084678  (18.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:17', NULL, 969084678, 'BorrowDirect', 'queued', '2015-02-24 16:11:17')  (19.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4232  (19.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085277) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084678) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084678) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`id` = 4232 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084678, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (25.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:17', 'Choose your delivery location', 969084678, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4232  (19.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085277 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084678 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085277 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084678  (21.8ms) COMMIT Completed 200 OK in 315ms (Views: 22.0ms | ActiveRecord: 152.8ms) Started GET "/borrow_direct/BorrowDirect/969084678?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:11:18 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084678"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084678 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4232  (16.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:18', 969084678, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085277 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277) Redirected to http://www.example.com/resolve?umlaut.request_id=969084678&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 46.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4232  (19.4ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016222  (23.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084678&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:11:18 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084678", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:11:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085277 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084678  (30.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 [["request_id", 969084678]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085277 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084678 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085277 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084678  (21.6ms) COMMIT Completed 200 OK in 95ms (Views: 19.2ms | ActiveRecord: 66.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d3244a56ff9c67bf3d246136e142eff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (2.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:18', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:18', 'format', 'journal', 969085278, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:18', 'isbn', 1, '9789810743734', 969085278, '9789810743734')  (28.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085278, '9d3244a56ff9c67bf3d246136e142eff')  (24.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084679  (55.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:18', NULL, 969084679, 'BorrowDirect', 'queued', '2015-02-24 16:11:18')  (35.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4233  (44.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084679 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085278) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085278) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084679) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084679) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084679 AND `dispatched_services`.`id` = 4233 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084679, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:18', 'Choose your delivery location', 969084679, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4233  (19.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084679 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085278 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085278) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084679 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084679 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085278 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084679  (20.3ms) COMMIT Completed 200 OK in 436ms (Views: 22.2ms | ActiveRecord: 236.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '892f535bae9f4e8e48ca24a222595c7f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:18', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:18', 'format', 'journal', 969085279, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:18', 'isbn', 1, '9789810743734', 969085279, '9789810743734')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085279, '892f535bae9f4e8e48ca24a222595c7f')  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084680  (17.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:18', NULL, 969084680, 'BorrowDirect', 'queued', '2015-02-24 16:11:18')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4234  (23.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085279) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084680) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084680) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`id` = 4234 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084680, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (25.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:18', 'Choose your delivery location', 969084680, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4234  (17.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085279 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084680 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085279 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084680  (19.3ms) COMMIT Completed 200 OK in 300ms (Views: 21.2ms | ActiveRecord: 142.2ms) Started GET "/borrow_direct/BorrowDirect/969084680" for 127.0.0.1 at 2015-02-24 11:11:18 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084680"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084680 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:18', 969084680, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (19.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085279 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279) Redirected to http://www.example.com/resolve?umlaut.request_id=969084680&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.3ms) Started GET "/resolve?umlaut.request_id=969084680&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:11:19 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084680", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:11:19-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085279 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084680  (17.2ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 [["request_id", 969084680]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085279 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084680 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085279 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084680  (19.6ms) COMMIT Completed 200 OK in 83ms (Views: 22.7ms | ActiveRecord: 51.3ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53f68eaa4ca1ecda99c9beb3dce4f85f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:31', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:31', 'format', 'journal', 969085280, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:31', 'isbn', 1, '9789810743734', 969085280, '9789810743734')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085280, '53f68eaa4ca1ecda99c9beb3dce4f85f')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084681  (26.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:32', NULL, 969084681, 'test_bd', 'queued', '2015-02-24 16:11:32')  (20.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:32' WHERE `dispatched_services`.`id` = 4235  (19.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084681 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085280) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085280) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084681) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084681) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084681 AND `dispatched_services`.`id` = 4235 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084681, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:11:32' WHERE `dispatched_services`.`id` = 4235  (21.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084681 LIMIT 1 DispatchedService Load (6.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085280 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085280) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084681 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms) ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:12:59 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (4.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '709b55c4b4f5f9c66083f2cfa7151e38' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:00', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'format', 'journal', 969085281, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'isbn', 1, '9789810743734', 969085281, '9789810743734')  (19.6ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085281, '709b55c4b4f5f9c66083f2cfa7151e38')  (19.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084682  (19.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:00', NULL, 969084682, 'test_bd', 'queued', '2015-02-24 16:13:00')  (19.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:00' WHERE `dispatched_services`.`id` = 4236  (19.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084682 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085281) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085281) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084682) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084682) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (25.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084682 AND `dispatched_services`.`id` = 4236 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084682, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (19.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:13:00' WHERE `dispatched_services`.`id` = 4236  (22.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084682 LIMIT 1 DispatchedService Load (6.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.3ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085281 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085281) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084682 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.9ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085281 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.9ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084682  (19.8ms) COMMIT Completed 200 OK in 693ms (Views: 140.3ms | ActiveRecord: 174.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:13:00 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '609e86fa5ecd92dd0e44af66f2c727da' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:13:00', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'format', 'book', 969085282, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'genre', 1, 'book', 969085282, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'author', 1, 'smith', 969085282, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'title', 1, 'some book', 969085282, 'Some Book')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:13:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085282, '609e86fa5ecd92dd0e44af66f2c727da')  (18.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084683  (18.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:00', NULL, 969084683, 'BorrowDirect', 'queued', '2015-02-24 16:13:00')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:00' WHERE `dispatched_services`.`id` = 4237  (19.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084683 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085282) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085282) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084683) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084683) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084683 AND `dispatched_services`.`id` = 4237 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084683, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:00' WHERE `dispatched_services`.`id` = 4237  (18.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084683 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085282 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085282) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084683 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085282 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084683  (16.2ms) COMMIT Completed 200 OK in 273ms (Views: 19.6ms | ActiveRecord: 147.0ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:13:01 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6c5e5f0e37d530d9c6a954bdf70a0fc' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:13:01', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'format', 'journal', 969085283, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'genre', 1, 'article', 969085283, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'title', 1, 'foo', 969085283, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'author', 1, 'bar', 969085283, 'bar')  (20.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:13:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085283, 'b6c5e5f0e37d530d9c6a954bdf70a0fc')  (19.1ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084684  (20.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:01', NULL, 969084684, 'BorrowDirect', 'queued', '2015-02-24 16:13:01')  (17.7ms) COMMIT  (1.1ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:01' WHERE `dispatched_services`.`id` = 4238  (17.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084684 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085283) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085283) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084684) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084684) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084684 AND `dispatched_services`.`id` = 4238 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:01' WHERE `dispatched_services`.`id` = 4238  (18.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084684 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085283 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085283) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084684 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085283 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084684  (19.9ms) COMMIT Completed 200 OK in 238ms (Views: 16.4ms | ActiveRecord: 142.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9191a20a67e2dbb1025e000f3a6acf8b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:13:01', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'format', 'book', 969085284, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'genre', 1, 'book', 969085284, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'title', 1, 'foo', 969085284, 'foo')  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (2.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:13:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085284, '9191a20a67e2dbb1025e000f3a6acf8b')  (20.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084685 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:01', NULL, 969084685, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:13:01')  (16.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:01' WHERE `dispatched_services`.`id` = 4239  (17.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084685" for 127.0.0.1 at 2015-02-24 11:13:01 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084685"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084685 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085284 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085284)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084685  (19.0ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084685 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084685 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084685 [["request_id", 969084685]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085284 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085284) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084685 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084685 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085284 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084685  (20.9ms) COMMIT Completed 200 OK in 81ms (Views: 18.2ms | ActiveRecord: 55.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:13:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee08db06fe1ab5e7051bfd908af6f4f2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:03', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:03', 'format', 'journal', 969085285, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:03', 'isbn', 1, '9789810743734', 969085285, '9789810743734')  (20.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085285, 'ee08db06fe1ab5e7051bfd908af6f4f2')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084686  (18.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:03', NULL, 969084686, 'BorrowDirect', 'queued', '2015-02-24 16:13:03')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:03' WHERE `dispatched_services`.`id` = 4240  (20.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085285) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084686) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084686) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`id` = 4240 AND `dispatched_services`.`status` IN ('queued')  (1.2ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084686, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:03', 'Choose your delivery location', 969084686, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:03' WHERE `dispatched_services`.`id` = 4240  (17.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085285 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084686 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (14.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (16.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085285 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084686  (16.8ms) COMMIT Completed 200 OK in 368ms (Views: 56.1ms | ActiveRecord: 141.4ms) Started GET "/borrow_direct/BorrowDirect/969084686?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:13:03 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084686"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084686 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.4ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:13:03' WHERE `dispatched_services`.`id` = 4240  (17.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:03', 969084686, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.7ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085285 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285) Redirected to http://www.example.com/resolve?umlaut.request_id=969084686&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 66ms (ActiveRecord: 46.0ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:13:03' WHERE `dispatched_services`.`id` = 4240  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016233  (19.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084686&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:13:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084686", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:13:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085285 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084686  (19.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 [["request_id", 969084686]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085285 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084686 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.4ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085285 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084686  (19.2ms) COMMIT Completed 200 OK in 164ms (Views: 48.0ms | ActiveRecord: 54.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:13:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '876afa8a81a1fb6b6f9b027b326ab568' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:04', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:04', 'format', 'journal', 969085286, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:04', 'isbn', 1, '0109836413', 969085286, '0109836413')  (20.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:13:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085286, '876afa8a81a1fb6b6f9b027b326ab568')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084687  (19.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:04', NULL, 969084687, 'BorrowDirect', 'queued', '2015-02-24 16:13:04')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4241  (19.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084687 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085286) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085286) ServiceResponse Load (2.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084687) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084687) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084687 AND `dispatched_services`.`id` = 4241 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084687, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:04', 'This item is not currently available from BorrowDirect', 969084687, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (19.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4241  (21.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084687 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085286 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085286) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084687 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085286 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084687  (17.0ms) COMMIT Completed 200 OK in 357ms (Views: 47.0ms | ActiveRecord: 142.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:13:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8bbbd0ba5b45ee7d8ee60d766e3e12b6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:04', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:04', 'format', 'journal', 969085287, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:04', 'isbn', 1, '9789810743734', 969085287, '9789810743734')  (20.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085287, '8bbbd0ba5b45ee7d8ee60d766e3e12b6')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084688  (19.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:04', NULL, 969084688, 'BorrowDirect', 'queued', '2015-02-24 16:13:04')  (18.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4242  (18.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085287) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084688) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084688) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`id` = 4242 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084688, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:04', 'Choose your delivery location', 969084688, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4242  (21.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085287 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084688 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085287 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084688  (18.4ms) COMMIT Completed 200 OK in 414ms (Views: 54.3ms | ActiveRecord: 139.3ms) Started GET "/borrow_direct/BorrowDirect/969084688?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:13:04 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084688"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084688 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4242  (19.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:04', 969084688, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085287 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287) Redirected to http://www.example.com/resolve?umlaut.request_id=969084688&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 65ms (ActiveRecord: 46.0ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4242  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016238  (16.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084688&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:13:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084688", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:13:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085287 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084688  (23.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 [["request_id", 969084688]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085287 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084688 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085287 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084688  (18.8ms) COMMIT Completed 200 OK in 120ms (Views: 43.2ms | ActiveRecord: 57.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:13:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23ffbccaed90d745013f7aa371381e24' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:05', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:05', 'format', 'journal', 969085288, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:05', 'isbn', 1, '9789810743734', 969085288, '9789810743734')  (20.1ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085288, '23ffbccaed90d745013f7aa371381e24')  (17.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084689  (19.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:05', NULL, 969084689, 'BorrowDirect', 'queued', '2015-02-24 16:13:05')  (20.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:05' WHERE `dispatched_services`.`id` = 4243  (18.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084689 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085288) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085288) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084689) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084689) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084689 AND `dispatched_services`.`id` = 4243 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084689, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:05', 'Choose your delivery location', 969084689, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:05' WHERE `dispatched_services`.`id` = 4243  (21.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084689 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085288 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085288) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084689 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084689 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085288 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084689  (18.5ms) COMMIT Completed 200 OK in 412ms (Views: 51.6ms | ActiveRecord: 143.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:13:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b55067d914c69391c76bdecb83d34b5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:05', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:05', 'format', 'journal', 969085289, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:05', 'isbn', 1, '9789810743734', 969085289, '9789810743734')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085289, '5b55067d914c69391c76bdecb83d34b5')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084690  (20.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:05', NULL, 969084690, 'BorrowDirect', 'queued', '2015-02-24 16:13:05')  (18.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:05' WHERE `dispatched_services`.`id` = 4244  (20.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085289) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084690) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084690) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`id` = 4244 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084690, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:05', 'Choose your delivery location', 969084690, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:05' WHERE `dispatched_services`.`id` = 4244  (18.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1 DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (4.1ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085289 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084690 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085289 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084690  (19.2ms) COMMIT Completed 200 OK in 367ms (Views: 52.1ms | ActiveRecord: 144.2ms) Started GET "/borrow_direct/BorrowDirect/969084690" for 127.0.0.1 at 2015-02-24 11:13:06 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084690"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084690 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:06', 969084690, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (21.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085289 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289) Redirected to http://www.example.com/resolve?umlaut.request_id=969084690&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 41ms (ActiveRecord: 26.9ms) Started GET "/resolve?umlaut.request_id=969084690&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:13:06 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084690", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:13:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085289 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084690  (18.3ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 [["request_id", 969084690]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085289 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084690 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.4ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (11.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085289 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084690  (20.5ms) COMMIT Completed 200 OK in 123ms (Views: 51.3ms | ActiveRecord: 53.7ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fc2e734f1d938f278a422bb33132ccf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:03', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:03', 'format', 'journal', 969085290, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:03', 'isbn', 1, '9789810743734', 969085290, '9789810743734')  (26.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085290, '3fc2e734f1d938f278a422bb33132ccf')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084691  (20.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:04', NULL, 969084691, 'test_bd', 'queued', '2015-02-24 16:14:04')  (17.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4245  (18.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084691 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085290) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085290) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084691) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084691) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084691 AND `dispatched_services`.`id` = 4245 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084691, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4245  (19.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084691 LIMIT 1 DispatchedService Load (8.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085290 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085290) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084691 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (32.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085290 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084691  (19.5ms) COMMIT Completed 200 OK in 681ms (Views: 140.8ms | ActiveRecord: 171.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:14:04 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8784deeeeff8b40348aefd7bf2d4556' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:04', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'format', 'book', 969085291, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'genre', 1, 'book', 969085291, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'author', 1, 'smith', 969085291, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'title', 1, 'some book', 969085291, 'Some Book')  (20.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:14:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085291, 'd8784deeeeff8b40348aefd7bf2d4556')  (20.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084692  (21.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:04', NULL, 969084692, 'BorrowDirect', 'queued', '2015-02-24 16:14:04')  (20.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4246  (17.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084692 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085291) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085291) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084692) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084692) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084692 AND `dispatched_services`.`id` = 4246 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084692, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4246  (20.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084692 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085291 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085291) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084692 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085291 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084692  (22.2ms) COMMIT Completed 200 OK in 286ms (Views: 20.0ms | ActiveRecord: 160.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:14:04 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84ba1653b9d35143349121604a20ff59' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:04', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'format', 'journal', 969085292, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'genre', 1, 'article', 969085292, 'article') SQL (2.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'title', 1, 'foo', 969085292, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'author', 1, 'bar', 969085292, 'bar')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:14:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085292, '84ba1653b9d35143349121604a20ff59')  (20.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084693  (19.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:04', NULL, 969084693, 'BorrowDirect', 'queued', '2015-02-24 16:14:04')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4247  (20.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084693 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085292) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085292) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084693) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084693) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084693 AND `dispatched_services`.`id` = 4247 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4247  (17.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084693 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085292 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085292) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084693 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085292 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084693  (22.3ms) COMMIT Completed 200 OK in 245ms (Views: 16.9ms | ActiveRecord: 150.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc4771622e7a8aa69678fc2d7393afdf' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:05', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'format', 'book', 969085293, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'genre', 1, 'book', 969085293, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'title', 1, 'foo', 969085293, 'foo')  (22.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:14:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085293, 'bc4771622e7a8aa69678fc2d7393afdf')  (19.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084694 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:05', NULL, 969084694, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:14:05')  (21.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4248  (25.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084694" for 127.0.0.1 at 2015-02-24 11:14:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084694"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084694 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085293 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085293)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084694  (18.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084694 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084694 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084694 [["request_id", 969084694]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085293 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085293) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084694 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084694 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085293 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084694  (20.3ms) COMMIT Completed 200 OK in 80ms (Views: 18.6ms | ActiveRecord: 54.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ef9b144a89e628d297975540c0da8ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:05', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'format', 'journal', 969085294, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'isbn', 1, '9789810743734', 969085294, '9789810743734')  (21.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085294, '8ef9b144a89e628d297975540c0da8ad')  (20.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084695  (25.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:05', NULL, 969084695, 'BorrowDirect', 'queued', '2015-02-24 16:14:05')  (22.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4249  (21.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085294) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084695) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084695) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`id` = 4249 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084695, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.1ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:05', 'Choose your delivery location', 969084695, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4249  (18.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085294 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084695 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085294 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084695  (24.4ms) COMMIT Completed 200 OK in 320ms (Views: 24.7ms | ActiveRecord: 162.7ms) Started GET "/borrow_direct/BorrowDirect/969084695?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:14:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084695"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084695 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4249  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:05', 969084695, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (21.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085294 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294) Redirected to http://www.example.com/resolve?umlaut.request_id=969084695&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 65ms (ActiveRecord: 49.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4249  (20.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016248  (18.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084695&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084695", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085294 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084695  (21.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 [["request_id", 969084695]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085294 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084695 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085294 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084695  (19.5ms) COMMIT Completed 200 OK in 86ms (Views: 21.0ms | ActiveRecord: 55.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:14:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '698f950f91f687d7d7473a40d8fabee9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:05', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'format', 'journal', 969085295, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'isbn', 1, '0109836413', 969085295, '0109836413')  (19.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:14:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085295, '698f950f91f687d7d7473a40d8fabee9')  (19.1ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084696  (19.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:05', NULL, 969084696, 'BorrowDirect', 'queued', '2015-02-24 16:14:05')  (18.2ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4250  (19.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084696 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085295) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085295) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084696) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084696) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084696 AND `dispatched_services`.`id` = 4250 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084696, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (22.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:06', 'This item is not currently available from BorrowDirect', 969084696, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (21.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4250  (28.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084696 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085295 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085295) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084696 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085295 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084696  (18.9ms) COMMIT Completed 200 OK in 347ms (Views: 20.0ms | ActiveRecord: 140.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f5cf46ce911e64a34cabeb866e22dacd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:06', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:06', 'format', 'journal', 969085296, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:06', 'isbn', 1, '9789810743734', 969085296, '9789810743734')  (30.9ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085296, 'f5cf46ce911e64a34cabeb866e22dacd')  (26.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084697  (21.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:06', NULL, 969084697, 'BorrowDirect', 'queued', '2015-02-24 16:14:06')  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4251  (19.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085296) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084697) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084697) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`id` = 4251 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084697, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.8ms) COMMIT  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:06', 'Choose your delivery location', 969084697, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4251  (22.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085296 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084697 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085296 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084697  (26.0ms) COMMIT Completed 200 OK in 329ms (Views: 22.4ms | ActiveRecord: 170.4ms) Started GET "/borrow_direct/BorrowDirect/969084697?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:14:06 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084697"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084697 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4251  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:06', 969084697, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (21.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085296 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296) Redirected to http://www.example.com/resolve?umlaut.request_id=969084697&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 64ms (ActiveRecord: 49.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4251  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016253  (18.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084697&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:06 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084697", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085296 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296)  (1.0ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084697  (25.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 [["request_id", 969084697]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085296 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084697 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085296 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084697  (21.2ms) COMMIT Completed 200 OK in 90ms (Views: 18.3ms | ActiveRecord: 62.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5862050b99bac20e6c75b69fbf55bae9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:06', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:06', 'format', 'journal', 969085297, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:06', 'isbn', 1, '9789810743734', 969085297, '9789810743734')  (26.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085297, '5862050b99bac20e6c75b69fbf55bae9')  (22.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084698  (18.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:06', NULL, 969084698, 'BorrowDirect', 'queued', '2015-02-24 16:14:06')  (20.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4252  (18.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084698 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085297) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085297) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084698) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084698) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084698 AND `dispatched_services`.`id` = 4252 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084698, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.4ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:07', 'Choose your delivery location', 969084698, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:07' WHERE `dispatched_services`.`id` = 4252  (18.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084698 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085297 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085297) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084698 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084698 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085297 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084698  (19.2ms) COMMIT Completed 200 OK in 350ms (Views: 22.5ms | ActiveRecord: 151.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85d7fcc6d731fc9088ec37ed55f3515a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:07', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:07', 'format', 'journal', 969085298, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:07', 'isbn', 1, '9789810743734', 969085298, '9789810743734')  (21.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085298, '85d7fcc6d731fc9088ec37ed55f3515a')  (26.7ms) COMMIT  (1.1ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084699  (25.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:07', NULL, 969084699, 'BorrowDirect', 'queued', '2015-02-24 16:14:07')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:07' WHERE `dispatched_services`.`id` = 4253  (26.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085298) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084699) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084699) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`id` = 4253 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084699, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (22.9ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:07', 'Choose your delivery location', 969084699, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:07' WHERE `dispatched_services`.`id` = 4253  (16.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085298 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084699 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085298 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084699  (23.9ms) COMMIT Completed 200 OK in 327ms (Views: 22.0ms | ActiveRecord: 170.6ms) Started GET "/borrow_direct/BorrowDirect/969084699" for 127.0.0.1 at 2015-02-24 11:14:07 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084699"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084699 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:07', 969084699, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085298 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298) Redirected to http://www.example.com/resolve?umlaut.request_id=969084699&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.0ms) Started GET "/resolve?umlaut.request_id=969084699&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:07 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084699", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085298 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298)  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084699  (17.7ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 [["request_id", 969084699]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085298 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084699 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085298 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084699  (23.1ms) COMMIT Completed 200 OK in 88ms (Views: 22.7ms | ActiveRecord: 56.3ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:23 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23258db5ae301b8ff3b49fc36768602f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:23', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:23', 'format', 'journal', 969085299, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:23', 'isbn', 1, '9789810743734', 969085299, '9789810743734')  (19.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085299, '23258db5ae301b8ff3b49fc36768602f')  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084700  (20.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:23', NULL, 969084700, 'test_bd', 'queued', '2015-02-24 16:14:23')  (20.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:23' WHERE `dispatched_services`.`id` = 4254  (18.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084700 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085299) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085299) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084700) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084700) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084700 AND `dispatched_services`.`id` = 4254 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084700, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:14:23' WHERE `dispatched_services`.`id` = 4254  (18.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084700 LIMIT 1 DispatchedService Load (7.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085299 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085299) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084700 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (32.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (96.4ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085299 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084700  (19.2ms) COMMIT Completed 200 OK in 679ms (Views: 138.1ms | ActiveRecord: 171.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:14:24 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a378566d1f4eebdf3aa80052393d6efc' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:24', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'format', 'book', 969085300, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'genre', 1, 'book', 969085300, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'author', 1, 'smith', 969085300, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'title', 1, 'some book', 969085300, 'Some Book')  (21.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:14:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085300, 'a378566d1f4eebdf3aa80052393d6efc')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084701  (17.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:24', NULL, 969084701, 'BorrowDirect', 'queued', '2015-02-24 16:14:24')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4255  (20.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084701 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085300) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085300) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084701) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084701) DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084701 AND `dispatched_services`.`id` = 4255 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084701, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (21.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4255  (18.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084701 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085300 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085300) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (28.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084701 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085300 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084701  (20.4ms) COMMIT Completed 200 OK in 301ms (Views: 17.3ms | ActiveRecord: 174.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:14:24 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '991fbe5465819ea643f593b6e29e6c2f' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:24', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'format', 'journal', 969085301, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'genre', 1, 'article', 969085301, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'title', 1, 'foo', 969085301, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'author', 1, 'bar', 969085301, 'bar')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:14:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085301, '991fbe5465819ea643f593b6e29e6c2f')  (20.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084702  (20.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:24', NULL, 969084702, 'BorrowDirect', 'queued', '2015-02-24 16:14:24')  (21.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4256  (21.3ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084702 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085301) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085301) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084702) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084702) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084702 AND `dispatched_services`.`id` = 4256 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4256  (21.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084702 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085301 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085301) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084702 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085301 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084702  (18.7ms) COMMIT Completed 200 OK in 246ms (Views: 17.6ms | ActiveRecord: 147.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd6f76c1b955a6dd7d4e1c4dc373bdf6' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:24', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'format', 'book', 969085302, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'genre', 1, 'book', 969085302, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'title', 1, 'foo', 969085302, 'foo')  (20.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:14:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085302, 'bd6f76c1b955a6dd7d4e1c4dc373bdf6')  (17.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084703 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:24', NULL, 969084703, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:14:24')  (22.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4257  (17.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084703" for 127.0.0.1 at 2015-02-24 11:14:24 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084703"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084703 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085302 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085302)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084703  (20.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084703 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084703 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084703 [["request_id", 969084703]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085302 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085302) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084703 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084703 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085302 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084703  (19.7ms) COMMIT Completed 200 OK in 83ms (Views: 19.8ms | ActiveRecord: 55.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd422f01f6f93c264f9cd8a4c6d4ed9b2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:25', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'format', 'journal', 969085303, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'isbn', 1, '9789810743734', 969085303, '9789810743734')  (20.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085303, 'd422f01f6f93c264f9cd8a4c6d4ed9b2')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084704  (19.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:25', NULL, 969084704, 'BorrowDirect', 'queued', '2015-02-24 16:14:25')  (20.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4258  (18.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085303) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084704) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084704) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`id` = 4258 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084704, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:25', 'Choose your delivery location', 969084704, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4258  (18.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085303 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084704 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085303 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084704  (20.1ms) COMMIT Completed 200 OK in 302ms (Views: 25.2ms | ActiveRecord: 144.4ms) Started GET "/borrow_direct/BorrowDirect/969084704?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:14:25 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084704"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084704 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4258  (20.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:25', 969084704, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085303 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303) Redirected to http://www.example.com/resolve?umlaut.request_id=969084704&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 65ms (ActiveRecord: 49.5ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4258  (26.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016263  (22.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084704&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:25 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084704", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:25-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085303 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084704  (20.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 [["request_id", 969084704]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085303 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084704 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085303 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084704  (20.7ms) COMMIT Completed 200 OK in 92ms (Views: 25.8ms | ActiveRecord: 56.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:14:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cc22279439408214b46ef4298091579' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:25', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'format', 'journal', 969085304, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'isbn', 1, '0109836413', 969085304, '0109836413')  (20.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:14:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085304, '8cc22279439408214b46ef4298091579')  (21.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084705  (19.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:25', NULL, 969084705, 'BorrowDirect', 'queued', '2015-02-24 16:14:25')  (19.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4259  (21.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084705 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085304) ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085304) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084705) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084705) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084705 AND `dispatched_services`.`id` = 4259 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084705, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (21.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:25', 'This item is not currently available from BorrowDirect', 969084705, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (25.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4259  (17.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084705 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085304 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085304) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084705 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085304 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084705  (20.8ms) COMMIT Completed 200 OK in 348ms (Views: 20.5ms | ActiveRecord: 149.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8207b972bf63034ab3f643cc21997dca' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:25', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'format', 'journal', 969085305, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'isbn', 1, '9789810743734', 969085305, '9789810743734')  (23.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085305, '8207b972bf63034ab3f643cc21997dca')  (21.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084706  (22.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:26', NULL, 969084706, 'BorrowDirect', 'queued', '2015-02-24 16:14:26')  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4260  (17.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085305) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084706) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084706) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`id` = 4260 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084706, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:26', 'Choose your delivery location', 969084706, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4260  (24.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085305 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084706 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085305 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084706  (18.9ms) COMMIT Completed 200 OK in 313ms (Views: 21.9ms | ActiveRecord: 150.2ms) Started GET "/borrow_direct/BorrowDirect/969084706?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:14:26 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084706"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084706 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4260  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:26', 969084706, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (17.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085305 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305) Redirected to http://www.example.com/resolve?umlaut.request_id=969084706&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 59ms (ActiveRecord: 43.8ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4260  (20.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016268  (19.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084706&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:26 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084706", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:26-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085305 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084706  (23.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 [["request_id", 969084706]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085305 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084706 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085305 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084706  (20.4ms) COMMIT Completed 200 OK in 88ms (Views: 18.6ms | ActiveRecord: 59.4ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17e68d58c458639cd335a5ee754f0b29' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:26', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:26', 'format', 'journal', 969085306, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:26', 'isbn', 1, '9789810743734', 969085306, '9789810743734')  (25.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085306, '17e68d58c458639cd335a5ee754f0b29')  (20.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084707  (20.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:26', NULL, 969084707, 'BorrowDirect', 'queued', '2015-02-24 16:14:26')  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4261  (18.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084707 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085306) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085306) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084707) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084707) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084707 AND `dispatched_services`.`id` = 4261 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084707, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:26', 'Choose your delivery location', 969084707, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4261  (19.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084707 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085306 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085306) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084707 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084707 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085306 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084707  (18.1ms) COMMIT Completed 200 OK in 341ms (Views: 21.6ms | ActiveRecord: 149.6ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebd5a013c7dfde1cb46c7a65460f681f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:26', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:26', 'format', 'journal', 969085307, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:26', 'isbn', 1, '9789810743734', 969085307, '9789810743734')  (21.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085307, 'ebd5a013c7dfde1cb46c7a65460f681f')  (19.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084708  (20.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:26', NULL, 969084708, 'BorrowDirect', 'queued', '2015-02-24 16:14:26')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4262  (17.1ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085307) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084708) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084708) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`id` = 4262 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084708, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:27', 'Choose your delivery location', 969084708, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:27' WHERE `dispatched_services`.`id` = 4262  (16.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085307 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084708 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085307 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084708  (18.7ms) COMMIT Completed 200 OK in 296ms (Views: 21.5ms | ActiveRecord: 142.5ms) Started GET "/borrow_direct/BorrowDirect/969084708" for 127.0.0.1 at 2015-02-24 11:14:27 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084708"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084708 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:27', 969084708, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085307 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307) Redirected to http://www.example.com/resolve?umlaut.request_id=969084708&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.6ms) Started GET "/resolve?umlaut.request_id=969084708&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084708", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085307 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084708  (18.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 [["request_id", 969084708]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085307 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084708 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085307 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084708  (19.4ms) COMMIT Completed 200 OK in 85ms (Views: 22.3ms | ActiveRecord: 53.7ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '061e340bc0048a56cc171f06e44761c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:40', '9789810743734') SQL (2.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:40', 'format', 'journal', 969085308, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:40', 'isbn', 1, '9789810743734', 969085308, '9789810743734')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:40', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085308, '061e340bc0048a56cc171f06e44761c0')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084709  (18.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:40', NULL, 969084709, 'test_bd', 'queued', '2015-02-24 16:14:40')  (20.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:40' WHERE `dispatched_services`.`id` = 4263  (18.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084709 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085308) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085308) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084709) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084709) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084709 AND `dispatched_services`.`id` = 4263 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084709, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:14:40' WHERE `dispatched_services`.`id` = 4263  (20.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084709 LIMIT 1 DispatchedService Load (7.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085308 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085308) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084709 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:14 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '755fcf37966e4e89986d316f541ed2e7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:15', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'format', 'journal', 969085309, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'isbn', 1, '9789810743734', 969085309, '9789810743734')  (51.8ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085309, '755fcf37966e4e89986d316f541ed2e7')  (27.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084710  (21.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:15', NULL, 969084710, 'test_bd', 'queued', '2015-02-24 16:15:15')  (22.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:15' WHERE `dispatched_services`.`id` = 4264  (20.1ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084710 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085309) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085309) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084710) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084710) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084710 AND `dispatched_services`.`id` = 4264 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084710, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (21.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:15:15' WHERE `dispatched_services`.`id` = 4264  (44.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084710 LIMIT 1 DispatchedService Load (7.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085309 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085309) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084710 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.5ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085309 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084710  (27.5ms) COMMIT Completed 200 OK in 761ms (Views: 141.7ms | ActiveRecord: 224.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:15:15 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de5219c00e19d277a9fcc35b1114bdbf' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:15', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'format', 'book', 969085310, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'genre', 1, 'book', 969085310, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'author', 1, 'smith', 969085310, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'title', 1, 'some book', 969085310, 'Some Book')  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:15:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085310, 'de5219c00e19d277a9fcc35b1114bdbf')  (20.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084711  (20.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:15', NULL, 969084711, 'BorrowDirect', 'queued', '2015-02-24 16:15:15')  (20.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4265  (21.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084711 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085310) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085310) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084711) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084711) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084711 AND `dispatched_services`.`id` = 4265 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084711, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (19.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4265  (19.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084711 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085310 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085310) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084711 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (6.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085310 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084711  (20.1ms) COMMIT Completed 200 OK in 296ms (Views: 20.1ms | ActiveRecord: 166.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:15:16 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71ea49d165479a5a2d96d8272e11a6c8' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:16', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'format', 'journal', 969085311, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'genre', 1, 'article', 969085311, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'title', 1, 'foo', 969085311, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'author', 1, 'bar', 969085311, 'bar')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:15:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085311, '71ea49d165479a5a2d96d8272e11a6c8')  (21.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084712  (20.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:16', NULL, 969084712, 'BorrowDirect', 'queued', '2015-02-24 16:15:16')  (20.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4266  (19.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084712 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085311) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085311) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084712) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084712) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (25.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084712 AND `dispatched_services`.`id` = 4266 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4266  (19.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084712 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085311 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085311) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084712 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085311 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084712  (23.1ms) COMMIT Completed 200 OK in 255ms (Views: 16.6ms | ActiveRecord: 150.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '296ed4463c43b57964df4ed605ba7409' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:16', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'format', 'book', 969085312, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'genre', 1, 'book', 969085312, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'title', 1, 'foo', 969085312, 'foo')  (20.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:15:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085312, '296ed4463c43b57964df4ed605ba7409')  (18.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084713 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:16', NULL, 969084713, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:15:16')  (18.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4267  (72.4ms) COMMIT Started GET "/resolve?umlaut.request_id=969084713" for 127.0.0.1 at 2015-02-24 11:15:16 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084713"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084713 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085312 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085312)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084713  (21.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084713 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084713 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084713 [["request_id", 969084713]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085312 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085312) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084713 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084713 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085312 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084713  (18.2ms) COMMIT Completed 200 OK in 87ms (Views: 19.6ms | ActiveRecord: 59.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:16 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'deef1716d098645ab8df3450669b3880' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:16', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'format', 'journal', 969085313, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'isbn', 1, '9789810743734', 969085313, '9789810743734')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (2.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085313, 'deef1716d098645ab8df3450669b3880')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084714  (23.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:16', NULL, 969084714, 'BorrowDirect', 'queued', '2015-02-24 16:15:16')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4268  (32.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085313) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084714) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084714) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (31.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`id` = 4268 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084714, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (65.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:17', 'Choose your delivery location', 969084714, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.9ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4268  (19.4ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085313 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084714 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085313 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084714  (19.1ms) COMMIT Completed 200 OK in 382ms (Views: 25.8ms | ActiveRecord: 160.8ms) Started GET "/borrow_direct/BorrowDirect/969084714?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:17 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084714"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084714 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4268  (19.1ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:17', 969084714, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085313 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313) Redirected to http://www.example.com/resolve?umlaut.request_id=969084714&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 60ms (ActiveRecord: 50.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4268  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016279  (20.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084714&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084714", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085313 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084714  (18.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 [["request_id", 969084714]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085313 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084714 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085313 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084714  (18.8ms) COMMIT Completed 200 OK in 82ms (Views: 20.4ms | ActiveRecord: 51.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:15:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a36dd5cf5734e403035b2671bb07ffbc' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:17', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:17', 'format', 'journal', 969085314, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:17', 'isbn', 1, '0109836413', 969085314, '0109836413')  (16.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:15:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085314, 'a36dd5cf5734e403035b2671bb07ffbc')  (20.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084715  (18.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:17', NULL, 969084715, 'BorrowDirect', 'queued', '2015-02-24 16:15:17')  (19.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4269  (24.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084715 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085314) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085314) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084715) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084715) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084715 AND `dispatched_services`.`id` = 4269 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084715, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:17', 'This item is not currently available from BorrowDirect', 969084715, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (19.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4269  (19.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084715 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085314 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085314) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084715 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085314 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084715  (20.9ms) COMMIT Completed 200 OK in 342ms (Views: 19.8ms | ActiveRecord: 147.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '337e6267ce360ff65c2ec4621db83b8c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:17', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:17', 'format', 'journal', 969085315, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:17', 'isbn', 1, '9789810743734', 969085315, '9789810743734')  (20.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085315, '337e6267ce360ff65c2ec4621db83b8c')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084716  (17.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:17', NULL, 969084716, 'BorrowDirect', 'queued', '2015-02-24 16:15:17')  (20.8ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4270  (19.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085315) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084716) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084716) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`id` = 4270 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084716, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:17', 'Choose your delivery location', 969084716, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4270  (18.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085315 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084716 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085315 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084716  (19.3ms) COMMIT Completed 200 OK in 304ms (Views: 23.1ms | ActiveRecord: 143.8ms) Started GET "/borrow_direct/BorrowDirect/969084716?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:18 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084716"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084716 ORDER BY id ASC DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4270  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:18', 969084716, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.5ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085315 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315) Redirected to http://www.example.com/resolve?umlaut.request_id=969084716&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 65ms (ActiveRecord: 49.3ms) DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4270  (27.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016284  (21.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969084716&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:18 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084716", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085315 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084716  (22.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 [["request_id", 969084716]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085315 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084716 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085315 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084716  (19.3ms) COMMIT Completed 200 OK in 84ms (Views: 18.2ms | ActiveRecord: 56.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77ec687cab1cd71b11fdf23f189aed5b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:18', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:18', 'format', 'journal', 969085316, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:18', 'isbn', 1, '9789810743734', 969085316, '9789810743734')  (19.1ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085316, '77ec687cab1cd71b11fdf23f189aed5b')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084717  (18.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:18', NULL, 969084717, 'BorrowDirect', 'queued', '2015-02-24 16:15:18')  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4271  (19.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084717 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085316) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085316) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084717) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084717) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084717 AND `dispatched_services`.`id` = 4271 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084717, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:18', 'Choose your delivery location', 969084717, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4271  (20.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084717 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085316 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085316) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084717 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084717 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085316 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084717  (20.3ms) COMMIT Completed 200 OK in 338ms (Views: 22.0ms | ActiveRecord: 142.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'edf72dbedec866ecbb14f9e90e96b0e7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:18', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:18', 'format', 'journal', 969085317, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:18', 'isbn', 1, '9789810743734', 969085317, '9789810743734')  (19.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085317, 'edf72dbedec866ecbb14f9e90e96b0e7')  (20.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084718  (18.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:18', NULL, 969084718, 'BorrowDirect', 'queued', '2015-02-24 16:15:18')  (19.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4272  (18.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085317) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084718) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084718) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`id` = 4272 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084718, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:18', 'Choose your delivery location', 969084718, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4272  (17.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085317 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084718 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085317 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084718  (20.7ms) COMMIT Completed 200 OK in 294ms (Views: 22.3ms | ActiveRecord: 143.3ms) Started GET "/borrow_direct/BorrowDirect/969084718" for 127.0.0.1 at 2015-02-24 11:15:18 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084718"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084718 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:18', 969084718, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.8ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085317 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317) Redirected to http://www.example.com/resolve?umlaut.request_id=969084718&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 22.7ms) Started GET "/resolve?umlaut.request_id=969084718&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:18 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084718", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085317 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084718  (19.3ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 [["request_id", 969084718]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085317 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084718 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085317 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084718  (19.8ms) COMMIT Completed 200 OK in 84ms (Views: 21.7ms | ActiveRecord: 53.9ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd850eb76e68c7b5aee14786e4ac0eba' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:32', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:32', 'format', 'journal', 969085318, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:32', 'isbn', 1, '9789810743734', 969085318, '9789810743734')  (42.9ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085318, 'dd850eb76e68c7b5aee14786e4ac0eba')  (23.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084719  (18.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:32', NULL, 969084719, 'test_bd', 'queued', '2015-02-24 16:15:32')  (45.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:32' WHERE `dispatched_services`.`id` = 4273  (23.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084719 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085318) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085318) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084719) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084719) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (26.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084719 AND `dispatched_services`.`id` = 4273 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084719, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4273  (18.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084719 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085318 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085318) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084719 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.8ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085318 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084719  (20.0ms) COMMIT Completed 200 OK in 742ms (Views: 139.3ms | ActiveRecord: 229.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:15:33 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c4f91c9b50a56c4cef550ca7c2ce3340' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:33', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'format', 'book', 969085319, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'genre', 1, 'book', 969085319, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'author', 1, 'smith', 969085319, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'title', 1, 'some book', 969085319, 'Some Book')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:15:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085319, 'c4f91c9b50a56c4cef550ca7c2ce3340')  (20.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084720  (18.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:33', NULL, 969084720, 'BorrowDirect', 'queued', '2015-02-24 16:15:33')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4274  (22.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084720 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085319) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085319) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084720) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084720) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084720 AND `dispatched_services`.`id` = 4274 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084720, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (20.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4274  (17.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084720 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085319 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085319) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084720 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085319 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084720  (18.3ms) COMMIT Completed 200 OK in 284ms (Views: 19.7ms | ActiveRecord: 154.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:15:33 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d5457de7d99ffd6e103d35a7fabd2fd' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:33', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'format', 'journal', 969085320, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'genre', 1, 'article', 969085320, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'title', 1, 'foo', 969085320, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'author', 1, 'bar', 969085320, 'bar')  (18.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:15:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085320, '0d5457de7d99ffd6e103d35a7fabd2fd')  (18.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084721  (18.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:33', NULL, 969084721, 'BorrowDirect', 'queued', '2015-02-24 16:15:33')  (20.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4275  (17.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084721 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085320) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085320) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084721) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084721) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084721 AND `dispatched_services`.`id` = 4275 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4275  (18.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084721 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085320 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085320) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084721 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085320 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084721  (19.6ms) COMMIT Completed 200 OK in 238ms (Views: 18.1ms | ActiveRecord: 138.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65e4ee3a9d135d967e4a5f772826d8d9' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:33', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'format', 'book', 969085321, 'book') SQL (1.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'genre', 1, 'book', 969085321, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'title', 1, 'foo', 969085321, 'foo')  (21.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:15:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085321, '65e4ee3a9d135d967e4a5f772826d8d9')  (21.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084722 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:33', NULL, 969084722, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:15:33')  (20.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4276  (17.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084722" for 127.0.0.1 at 2015-02-24 11:15:34 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084722"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084722 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085321 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085321)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084722  (18.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084722 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084722 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084722 [["request_id", 969084722]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085321 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085321) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084722 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084722 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085321 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084722  (19.9ms) COMMIT Completed 200 OK in 81ms (Views: 19.1ms | ActiveRecord: 54.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39852ff517cbcc65a0c57c19d21fb2d2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:34', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:34', 'format', 'journal', 969085322, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:34', 'isbn', 1, '9789810743734', 969085322, '9789810743734')  (18.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085322, '39852ff517cbcc65a0c57c19d21fb2d2')  (21.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084723  (19.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:34', NULL, 969084723, 'BorrowDirect', 'queued', '2015-02-24 16:15:34')  (19.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4277  (19.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085322) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084723) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084723) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`id` = 4277 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084723, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:34', 'Choose your delivery location', 969084723, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4277  (17.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085322 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084723 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085322 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084723  (18.6ms) COMMIT Completed 200 OK in 296ms (Views: 24.3ms | ActiveRecord: 143.5ms) Started GET "/borrow_direct/BorrowDirect/969084723?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:34 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084723"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084723 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4277  (20.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:34', 969084723, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085322 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322) Redirected to http://www.example.com/resolve?umlaut.request_id=969084723&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 58ms (ActiveRecord: 48.3ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4277  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016294  (19.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084723&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:34 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084723", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085322 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084723  (17.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 [["request_id", 969084723]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085322 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084723 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085322 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084723  (19.8ms) COMMIT Completed 200 OK in 82ms (Views: 20.9ms | ActiveRecord: 51.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:15:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8ac72b653962854ad0b5f5243af1105' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:34', '0109836413') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:34', 'format', 'journal', 969085323, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:34', 'isbn', 1, '0109836413', 969085323, '0109836413')  (19.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:15:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085323, 'b8ac72b653962854ad0b5f5243af1105')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084724  (16.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:34', NULL, 969084724, 'BorrowDirect', 'queued', '2015-02-24 16:15:34')  (16.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4278  (18.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084724 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085323) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085323) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084724) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084724) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084724 AND `dispatched_services`.`id` = 4278 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084724, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:34', 'This item is not currently available from BorrowDirect', 969084724, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (23.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4278  (19.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084724 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085323 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085323) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084724 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085323 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084724  (19.6ms) COMMIT Completed 200 OK in 331ms (Views: 20.0ms | ActiveRecord: 136.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a929ac668124fad7fb514e0cb7126c44' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:35', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'format', 'journal', 969085324, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'isbn', 1, '9789810743734', 969085324, '9789810743734')  (28.2ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085324, 'a929ac668124fad7fb514e0cb7126c44')  (17.7ms) COMMIT  (1.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084725  (20.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:35', NULL, 969084725, 'BorrowDirect', 'queued', '2015-02-24 16:15:35')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4279  (20.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085324) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084725) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084725) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`id` = 4279 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084725, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:35', 'Choose your delivery location', 969084725, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4279  (19.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085324 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084725 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085324 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084725  (19.2ms) COMMIT Completed 200 OK in 310ms (Views: 21.5ms | ActiveRecord: 155.0ms) Started GET "/borrow_direct/BorrowDirect/969084725?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:35 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084725"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084725 ORDER BY id ASC DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4279  (19.5ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:35', 969084725, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (22.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085324 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324) Redirected to http://www.example.com/resolve?umlaut.request_id=969084725&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 61ms (ActiveRecord: 52.2ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4279  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016299  (19.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969084725&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084725", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085324 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084725  (18.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 [["request_id", 969084725]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085324 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084725 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085324 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084725  (19.0ms) COMMIT Completed 200 OK in 81ms (Views: 18.9ms | ActiveRecord: 53.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c59c8580aa6e84706c617373d9c1158e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:35', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'format', 'journal', 969085325, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'isbn', 1, '9789810743734', 969085325, '9789810743734')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085325, 'c59c8580aa6e84706c617373d9c1158e')  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084726  (19.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:35', NULL, 969084726, 'BorrowDirect', 'queued', '2015-02-24 16:15:35')  (18.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4280  (18.4ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084726 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085325) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085325) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084726) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084726) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084726 AND `dispatched_services`.`id` = 4280 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084726, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:35', 'Choose your delivery location', 969084726, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4280  (20.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084726 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085325 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085325) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084726 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084726 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085325 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084726  (20.7ms) COMMIT Completed 200 OK in 339ms (Views: 21.9ms | ActiveRecord: 140.6ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45d8336a7715c4a43d577393402895bc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:35', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'format', 'journal', 969085326, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'isbn', 1, '9789810743734', 969085326, '9789810743734')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085326, '45d8336a7715c4a43d577393402895bc')  (19.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084727  (18.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:36', NULL, 969084727, 'BorrowDirect', 'queued', '2015-02-24 16:15:36')  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:36' WHERE `dispatched_services`.`id` = 4281  (21.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085326) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084727) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084727) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`id` = 4281 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084727, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:36', 'Choose your delivery location', 969084727, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:36' WHERE `dispatched_services`.`id` = 4281  (15.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085326 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084727 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085326 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084727  (19.5ms) COMMIT Completed 200 OK in 294ms (Views: 22.6ms | ActiveRecord: 143.4ms) Started GET "/borrow_direct/BorrowDirect/969084727" for 127.0.0.1 at 2015-02-24 11:15:36 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084727"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084727 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:36', 969084727, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (20.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085326 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326) Redirected to http://www.example.com/resolve?umlaut.request_id=969084727&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 26.0ms) Started GET "/resolve?umlaut.request_id=969084727&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084727", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085326 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084727  (18.1ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 [["request_id", 969084727]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085326 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084727 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085326 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084727  (18.4ms) COMMIT Completed 200 OK in 84ms (Views: 22.8ms | ActiveRecord: 51.9ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:46 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a44e08bead6b7f1375f1cbf87bf1dff0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:46', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:46', 'format', 'journal', 969085327, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:46', 'isbn', 1, '9789810743734', 969085327, '9789810743734')  (20.5ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085327, 'a44e08bead6b7f1375f1cbf87bf1dff0')  (18.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084728  (18.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728  (1.3ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:47', NULL, 969084728, 'test_bd', 'queued', '2015-02-24 16:15:47')  (21.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4282  (22.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084728 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085327) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085327) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084728) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084728) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (47.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084728 AND `dispatched_services`.`id` = 4282 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084728, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (27.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4282  (18.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084728 LIMIT 1 DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085327 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085327) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084728 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (99.5ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085327 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084728  (18.9ms) COMMIT Completed 200 OK in 727ms (Views: 142.7ms | ActiveRecord: 173.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:15:47 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7527e901003c8bd04b5d935352405c73' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:47', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'format', 'book', 969085328, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'genre', 1, 'book', 969085328, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'author', 1, 'smith', 969085328, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'title', 1, 'some book', 969085328, 'Some Book')  (22.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:15:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085328, '7527e901003c8bd04b5d935352405c73')  (16.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084729  (18.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:47', NULL, 969084729, 'BorrowDirect', 'queued', '2015-02-24 16:15:47')  (20.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4283  (19.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084729 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085328) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085328) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084729) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084729) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084729 AND `dispatched_services`.`id` = 4283 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084729, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (18.5ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4283  (16.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084729 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085328 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085328) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084729 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085328 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084729  (18.0ms) COMMIT Completed 200 OK in 283ms (Views: 20.4ms | ActiveRecord: 155.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:15:47 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4b6fabd6f6759082e7f4a50e43eb9a7' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:47', 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'format', 'journal', 969085329, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'genre', 1, 'article', 969085329, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'title', 1, 'foo', 969085329, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'author', 1, 'bar', 969085329, 'bar')  (19.8ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:15:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085329, 'e4b6fabd6f6759082e7f4a50e43eb9a7')  (19.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084730  (19.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:47', NULL, 969084730, 'BorrowDirect', 'queued', '2015-02-24 16:15:47')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4284  (18.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084730 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085329) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085329) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084730) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084730) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084730 AND `dispatched_services`.`id` = 4284 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4284  (19.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084730 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085329 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085329) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084730 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085329 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084730  (22.2ms) COMMIT Completed 200 OK in 246ms (Views: 16.9ms | ActiveRecord: 147.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd277d83259b08b1fc00f6ec4019d354' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:48', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'format', 'book', 969085330, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'genre', 1, 'book', 969085330, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'title', 1, 'foo', 969085330, 'foo')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:15:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085330, 'dd277d83259b08b1fc00f6ec4019d354')  (19.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084731 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:48', NULL, 969084731, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:15:48')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4285  (21.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084731" for 127.0.0.1 at 2015-02-24 11:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084731"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084731 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085330 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085330)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084731  (24.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084731 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084731 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084731 [["request_id", 969084731]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085330 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085330) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084731 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084731 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085330 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084731  (17.1ms) COMMIT Completed 200 OK in 83ms (Views: 18.5ms | ActiveRecord: 56.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bda42ecd6a2d0ab0f60285a1e08cad1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:48', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'format', 'journal', 969085331, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'isbn', 1, '9789810743734', 969085331, '9789810743734')  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085331, '1bda42ecd6a2d0ab0f60285a1e08cad1')  (19.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084732  (18.9ms) COMMIT DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:48', NULL, 969084732, 'BorrowDirect', 'queued', '2015-02-24 16:15:48')  (19.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4286  (20.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085331) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084732) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084732) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`id` = 4286 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084732, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (20.0ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:48', 'Choose your delivery location', 969084732, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4286  (19.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085331 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084732 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085331 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084732  (18.2ms) COMMIT Completed 200 OK in 304ms (Views: 25.5ms | ActiveRecord: 143.3ms) Started GET "/borrow_direct/BorrowDirect/969084732?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084732"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084732 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4286  (18.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:48', 969084732, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085331 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331) Redirected to http://www.example.com/resolve?umlaut.request_id=969084732&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 44.9ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4286  (20.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016309  (20.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084732&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084732", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085331 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084732  (21.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 [["request_id", 969084732]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085331 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084732 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085331 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (1.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084732  (20.6ms) COMMIT Completed 200 OK in 89ms (Views: 21.2ms | ActiveRecord: 58.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6dc638681234314190f9e2a8510358b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (2.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:48', '0109836413') SQL (2.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'format', 'journal', 969085332, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'isbn', 1, '0109836413', 969085332, '0109836413')  (23.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:15:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085332, 'e6dc638681234314190f9e2a8510358b')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084733  (23.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:48', NULL, 969084733, 'BorrowDirect', 'queued', '2015-02-24 16:15:48')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4287  (18.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084733 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085332) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085332) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084733) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084733) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084733 AND `dispatched_services`.`id` = 4287 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084733, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (21.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:49', 'This item is not currently available from BorrowDirect', 969084733, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (19.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4287  (20.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084733 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085332 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085332) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084733 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085332 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084733  (19.2ms) COMMIT Completed 200 OK in 347ms (Views: 20.1ms | ActiveRecord: 150.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b982e54757165f4b2bf9e63f33b309d0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:49', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:49', 'format', 'journal', 969085333, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:49', 'isbn', 1, '9789810743734', 969085333, '9789810743734')  (29.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085333, 'b982e54757165f4b2bf9e63f33b309d0')  (21.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084734  (15.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:49', NULL, 969084734, 'BorrowDirect', 'queued', '2015-02-24 16:15:49')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4288  (19.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085333) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084734) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084734) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`id` = 4288 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084734, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:49', 'Choose your delivery location', 969084734, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4288  (19.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085333 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084734 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085333 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084734  (21.6ms) COMMIT Completed 200 OK in 308ms (Views: 24.0ms | ActiveRecord: 152.6ms) Started GET "/borrow_direct/BorrowDirect/969084734?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:49 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084734"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084734 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4288  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:49', 969084734, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.0ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085333 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333) Redirected to http://www.example.com/resolve?umlaut.request_id=969084734&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 62ms (ActiveRecord: 46.8ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4288  (19.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016314  (19.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084734&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084734", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085333 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084734  (18.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 [["request_id", 969084734]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085333 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084734 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085333 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084734  (18.4ms) COMMIT Completed 200 OK in 80ms (Views: 18.7ms | ActiveRecord: 52.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '267026e26cba6f902ee7d41e50b455c1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:49', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:49', 'format', 'journal', 969085334, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:49', 'isbn', 1, '9789810743734', 969085334, '9789810743734')  (19.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085334, '267026e26cba6f902ee7d41e50b455c1')  (20.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084735  (25.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:49', NULL, 969084735, 'BorrowDirect', 'queued', '2015-02-24 16:15:49')  (24.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4289  (22.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084735 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085334) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085334) ServiceResponse Load (2.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084735) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084735) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084735 AND `dispatched_services`.`id` = 4289 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084735, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (28.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:50', 'Choose your delivery location', 969084735, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:50' WHERE `dispatched_services`.`id` = 4289  (25.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084735 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085334 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085334) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084735 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084735 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085334 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084735  (19.2ms) COMMIT Completed 200 OK in 372ms (Views: 22.1ms | ActiveRecord: 158.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f0e57bb2e4e0df22832c1d0785ad5328' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:50', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:50', 'format', 'journal', 969085335, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:50', 'isbn', 1, '9789810743734', 969085335, '9789810743734')  (24.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085335, 'f0e57bb2e4e0df22832c1d0785ad5328')  (23.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084736  (22.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:50', NULL, 969084736, 'BorrowDirect', 'queued', '2015-02-24 16:15:50')  (25.6ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:50' WHERE `dispatched_services`.`id` = 4290  (20.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085335) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084736) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084736) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`id` = 4290 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084736, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (21.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:50', 'Choose your delivery location', 969084736, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (24.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:50' WHERE `dispatched_services`.`id` = 4290  (54.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085335 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084736 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085335 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084736  (19.2ms) COMMIT Completed 200 OK in 360ms (Views: 20.5ms | ActiveRecord: 162.4ms) Started GET "/borrow_direct/BorrowDirect/969084736" for 127.0.0.1 at 2015-02-24 11:15:50 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084736"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084736 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:50', 969084736, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (17.6ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085335 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335) Redirected to http://www.example.com/resolve?umlaut.request_id=969084736&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 23.4ms) Started GET "/resolve?umlaut.request_id=969084736&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:50 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084736", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:50-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1 Referent Load (0.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085335 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084736  (18.1ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 [["request_id", 969084736]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085335 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084736 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085335 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084736  (27.8ms) COMMIT Completed 200 OK in 92ms (Views: 22.3ms | ActiveRecord: 61.0ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b5259f747fe78f5b66e30043dd9eaa7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:27', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:27', 'format', 'journal', 969085336, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:27', 'isbn', 1, '9789810743734', 969085336, '9789810743734')  (19.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085336, '9b5259f747fe78f5b66e30043dd9eaa7')  (62.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084737  (21.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:27', NULL, 969084737, 'test_bd', 'queued', '2015-02-24 16:17:27')  (27.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:27' WHERE `dispatched_services`.`id` = 4291  (19.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084737 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085336) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085336) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084737) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084737) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (31.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084737 AND `dispatched_services`.`id` = 4291 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084737, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (20.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:17:28' WHERE `dispatched_services`.`id` = 4291  (24.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084737 LIMIT 1 DispatchedService Load (7.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085336 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085336) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084737 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9535.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9536.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (9637.9ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085336 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (13.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (1.2ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084737  (18.9ms) COMMIT Completed 200 OK in 10319ms (Views: 9708.5ms | ActiveRecord: 223.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:17:38 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da80795c29a3603f085036e58a745722' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:17:38', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'format', 'book', 969085337, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'genre', 1, 'book', 969085337, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'author', 1, 'smith', 969085337, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'title', 1, 'some book', 969085337, 'Some Book')  (20.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:17:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085337, 'da80795c29a3603f085036e58a745722')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084738  (17.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:38', NULL, 969084738, 'BorrowDirect', 'queued', '2015-02-24 16:17:38')  (19.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4292  (16.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084738 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085337) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085337) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084738) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084738) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084738 AND `dispatched_services`.`id` = 4292 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084738, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (16.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4292  (18.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084738 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.1ms) Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085337 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085337) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (11.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.6ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084738 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085337 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084738  (19.0ms) COMMIT Completed 200 OK in 336ms (Views: 46.0ms | ActiveRecord: 150.0ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:17:38 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (2.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6cb0aa43dcadd1b41cc88e08ab9a403b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:17:38', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'format', 'journal', 969085338, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'genre', 1, 'article', 969085338, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'title', 1, 'foo', 969085338, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'author', 1, 'bar', 969085338, 'bar')  (21.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:17:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085338, '6cb0aa43dcadd1b41cc88e08ab9a403b')  (18.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084739  (17.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:38', NULL, 969084739, 'BorrowDirect', 'queued', '2015-02-24 16:17:38')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4293  (18.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084739 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085338) ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085338) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084739) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084739) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084739 AND `dispatched_services`.`id` = 4293 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4293  (19.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084739 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085338 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085338) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.5ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084739 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085338 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084739  (19.0ms) COMMIT Completed 200 OK in 337ms (Views: 41.2ms | ActiveRecord: 145.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6948613a2c2486888ad5e5af033e5c7' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:17:38', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'format', 'book', 969085339, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'genre', 1, 'book', 969085339, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'title', 1, 'foo', 969085339, 'foo')  (18.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:17:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085339, 'c6948613a2c2486888ad5e5af033e5c7')  (18.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084740 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:38', NULL, 969084740, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:17:38')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4294  (19.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084740" for 127.0.0.1 at 2015-02-24 11:17:38 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084740"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084740 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085339 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085339)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084740  (18.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084740 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084740 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084740 [["request_id", 969084740]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085339 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085339) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.4ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084740 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084740 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085339 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084740  (21.0ms) COMMIT Completed 200 OK in 117ms (Views: 44.2ms | ActiveRecord: 57.4ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d78f6637f6c8f56cd229309b840e1d8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:39', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:39', 'format', 'journal', 969085340, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:39', 'isbn', 1, '9789810743734', 969085340, '9789810743734')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (3.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085340, '8d78f6637f6c8f56cd229309b840e1d8')  (25.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084741  (18.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:39', NULL, 969084741, 'BorrowDirect', 'queued', '2015-02-24 16:17:39')  (16.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:39' WHERE `dispatched_services`.`id` = 4295  (24.3ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085340) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084741) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084741) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`id` = 4295 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084741, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.1ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:39', 'Choose your delivery location', 969084741, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:39' WHERE `dispatched_services`.`id` = 4295  (19.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085340 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084741 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (13.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (16.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085340 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084741  (19.6ms) COMMIT Completed 200 OK in 424ms (Views: 54.9ms | ActiveRecord: 153.2ms) Started GET "/borrow_direct/BorrowDirect/969084741?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:17:39 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084741"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084741 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:17:39' WHERE `dispatched_services`.`id` = 4295  (21.6ms) COMMIT  (0.9ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:39', 969084741, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.8ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085340 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340) Redirected to http://www.example.com/resolve?umlaut.request_id=969084741&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 71ms (ActiveRecord: 51.5ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:17:39' WHERE `dispatched_services`.`id` = 4295  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016324  (18.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084741&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:17:39 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084741", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:17:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085340 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084741  (20.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 [["request_id", 969084741]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085340 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084741 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2121.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2123.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085340 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084741  (17.7ms) COMMIT Completed 200 OK in 2238ms (Views: 2165.3ms | ActiveRecord: 54.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:17:41 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26af2a3be6a9d06c45075e4a078698bf' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:41', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:41', 'format', 'journal', 969085341, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:41', 'isbn', 1, '0109836413', 969085341, '0109836413')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:17:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085341, '26af2a3be6a9d06c45075e4a078698bf')  (20.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084742  (19.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:41', NULL, 969084742, 'BorrowDirect', 'queued', '2015-02-24 16:17:41')  (16.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:41' WHERE `dispatched_services`.`id` = 4296  (20.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084742 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085341) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085341) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084742) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084742) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084742 AND `dispatched_services`.`id` = 4296 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084742, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:42', 'This item is not currently available from BorrowDirect', 969084742, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (20.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4296  (17.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084742 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085341 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085341) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084742 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085341 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084742  (19.7ms) COMMIT Completed 200 OK in 408ms (Views: 47.2ms | ActiveRecord: 143.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:42 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb0f8fe841acb6c3a1d1229a44e95e30' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:42', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:42', 'format', 'journal', 969085342, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:42', 'isbn', 1, '9789810743734', 969085342, '9789810743734')  (17.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085342, 'bb0f8fe841acb6c3a1d1229a44e95e30')  (20.9ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084743  (19.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:42', NULL, 969084743, 'BorrowDirect', 'queued', '2015-02-24 16:17:42')  (20.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4297  (21.4ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085342) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084743) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084743) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`id` = 4297 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084743, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:42', 'Choose your delivery location', 969084743, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4297  (19.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085342 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084743 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (11.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085342 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084743  (20.3ms) COMMIT Completed 200 OK in 368ms (Views: 51.5ms | ActiveRecord: 148.4ms) Started GET "/borrow_direct/BorrowDirect/969084743?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:17:42 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084743"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084743 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4297  (17.8ms) COMMIT  (46.1ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:42', 969084743, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (21.3ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085342 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342) Redirected to http://www.example.com/resolve?umlaut.request_id=969084743&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 113ms (ActiveRecord: 94.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4297  (19.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016329  (21.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084743&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:17:42 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084743", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:17:42-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085342 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342)  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084743  (25.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 [["request_id", 969084743]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085342 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084743 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085342 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084743  (19.0ms) COMMIT Completed 200 OK in 123ms (Views: 43.4ms | ActiveRecord: 60.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:43 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'faca34fd0da0c0cf4b867762099a9a2e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:43', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:43', 'format', 'journal', 969085343, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:43', 'isbn', 1, '9789810743734', 969085343, '9789810743734')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085343, 'faca34fd0da0c0cf4b867762099a9a2e')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084744  (19.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:43', NULL, 969084744, 'BorrowDirect', 'queued', '2015-02-24 16:17:43')  (18.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:43' WHERE `dispatched_services`.`id` = 4298  (20.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084744 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085343) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085343) ServiceResponse Load (2.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084744) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084744) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084744 AND `dispatched_services`.`id` = 4298 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084744, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:43', 'Choose your delivery location', 969084744, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:43' WHERE `dispatched_services`.`id` = 4298  (19.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084744 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms) DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085343 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085343) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084744 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084744 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (11.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085343 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084744  (22.3ms) COMMIT Completed 200 OK in 369ms (Views: 49.8ms | ActiveRecord: 147.6ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:43 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7394aa49df250c708e87e0d6a1791568' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:43', '9789810743734') SQL (1.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:43', 'format', 'journal', 969085344, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:43', 'isbn', 1, '9789810743734', 969085344, '9789810743734')  (25.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085344, '7394aa49df250c708e87e0d6a1791568')  (19.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084745  (19.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:43', NULL, 969084745, 'BorrowDirect', 'queued', '2015-02-24 16:17:43')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:43' WHERE `dispatched_services`.`id` = 4299  (21.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085344) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084745) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084745) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`id` = 4299 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084745, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.7ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:43', 'Choose your delivery location', 969084745, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:43' WHERE `dispatched_services`.`id` = 4299  (21.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085344 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084745 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.4ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (11.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085344 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084745  (19.5ms) COMMIT Completed 200 OK in 372ms (Views: 49.2ms | ActiveRecord: 152.5ms) Started GET "/borrow_direct/BorrowDirect/969084745" for 127.0.0.1 at 2015-02-24 11:17:43 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084745"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084745 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:43', 969084745, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.1ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085344 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344) Redirected to http://www.example.com/resolve?umlaut.request_id=969084745&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 24.5ms) Started GET "/resolve?umlaut.request_id=969084745&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:17:43 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084745", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:17:43-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085344 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084745  (16.9ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 [["request_id", 969084745]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085344 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084745 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.3ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085344 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)  (1.2ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084745  (17.6ms) COMMIT Completed 200 OK in 122ms (Views: 52.4ms | ActiveRecord: 51.8ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '821411e770df65355a9064521c1be9be' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:17:57', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:57', 'format', 'book', 969085345, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:57', 'genre', 1, 'book', 969085345, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:57', 'title', 1, 'foo', 969085345, 'foo')  (19.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:17:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085345, '821411e770df65355a9064521c1be9be')  (16.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084746 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:58', NULL, 969084746, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:17:58')  (19.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:58' WHERE `dispatched_services`.`id` = 4300  (18.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969084746" for 127.0.0.1 at 2015-02-24 11:17:58 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084746"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084746 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085345 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085345)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084746  (19.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084746 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084746 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084746 [["request_id", 969084746]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085345 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085345) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084746 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084746 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (63.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085345 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.9ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084746  (17.9ms) COMMIT Completed 200 OK in 245ms (Views: 134.2ms | ActiveRecord: 60.2ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e6fa5830a659a4a6035d5f69da4423e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:18:18', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:18:18', 'format', 'book', 969085346, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:18:18', 'genre', 1, 'book', 969085346, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:18:18', 'title', 1, 'foo', 969085346, 'foo')  (25.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:18:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085346, '7e6fa5830a659a4a6035d5f69da4423e')  (17.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084747 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:18:19', NULL, 969084747, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:18:19')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:18:19' WHERE `dispatched_services`.`id` = 4301  (18.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084747" for 127.0.0.1 at 2015-02-24 11:18:19 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084747"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084747 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085346 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085346)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084747  (20.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084747 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084747 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084747 [["request_id", 969084747]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085346 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085346) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084747 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (35.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8716b1b2f7653826951d53759f3cd806' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:52', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:52', 'format', 'journal', 969085347, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:52', 'isbn', 1, '9789810743734', 969085347, '9789810743734')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085347, '8716b1b2f7653826951d53759f3cd806')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084748  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:52', NULL, 969084748, 'test_bd', 'queued', '2015-02-24 16:47:52')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:52' WHERE `dispatched_services`.`id` = 4302  (13.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084748 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085347) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085347) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084748) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084748) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084748 AND `dispatched_services`.`id` = 4302 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084748, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.8ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4302  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084748 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085347 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085347) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084748 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (96.3ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085347 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)  (1.0ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084748  (15.9ms) COMMIT Completed 200 OK in 689ms (Views: 159.4ms | ActiveRecord: 143.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:47:53 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc039beda4db6edca1144d4b9e1e7699' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:47:53', 'some book') SQL (2.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'format', 'book', 969085348, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'genre', 1, 'book', 969085348, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'author', 1, 'smith', 969085348, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'title', 1, 'some book', 969085348, 'Some Book')  (16.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:47:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085348, 'fc039beda4db6edca1144d4b9e1e7699')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084749  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:53', NULL, 969084749, 'BorrowDirect', 'queued', '2015-02-24 16:47:53')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4303  (14.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084749 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085348) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085348) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084749) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084749) DispatchedService Load (3.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084749 AND `dispatched_services`.`id` = 4303 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084749, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.5ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4303  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084749 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085348 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085348) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084749 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085348 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084749  (15.1ms) COMMIT Completed 200 OK in 246ms (Views: 22.3ms | ActiveRecord: 128.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:47:53 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2dc5de6d9005bfaca5bef679c996e8b4' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:47:53', 'foo') SQL (2.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'format', 'journal', 969085349, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'genre', 1, 'article', 969085349, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'title', 1, 'foo', 969085349, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'author', 1, 'bar', 969085349, 'bar')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:47:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085349, '2dc5de6d9005bfaca5bef679c996e8b4')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084750  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:53', NULL, 969084750, 'BorrowDirect', 'queued', '2015-02-24 16:47:53')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4304  (13.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084750 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085349) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085349) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084750) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084750) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084750 AND `dispatched_services`.`id` = 4304 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4304  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084750 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085349 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085349) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084750 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085349 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084750  (14.3ms) COMMIT Completed 200 OK in 207ms (Views: 17.2ms | ActiveRecord: 115.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80b963fb931144d5cdee7ea2f8cdc97f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:47:53', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'format', 'book', 969085350, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'genre', 1, 'book', 969085350, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'title', 1, 'foo', 969085350, 'foo')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:47:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085350, '80b963fb931144d5cdee7ea2f8cdc97f')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084751 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:53', NULL, 969084751, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:47:53')  (22.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4305  (17.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084751" for 127.0.0.1 at 2015-02-24 11:47:53 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084751"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084751 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085350 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085350)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084751  (15.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084751 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084751 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084751 [["request_id", 969084751]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085350 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085350) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084751 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084751 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085350 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084751  (14.4ms) COMMIT Completed 200 OK in 74ms (Views: 18.5ms | ActiveRecord: 46.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:54 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '818bdd8aac50c475394c3e34c9efa461' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:54', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'format', 'journal', 969085351, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'isbn', 1, '9789810743734', 969085351, '9789810743734')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085351, '818bdd8aac50c475394c3e34c9efa461')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084752  (16.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:54', NULL, 969084752, 'BorrowDirect', 'queued', '2015-02-24 16:47:54')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4306  (18.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085351) ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084752) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084752) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`id` = 4306 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084752, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:54', 'Choose your delivery location', 969084752, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4306  (14.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085351 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084752 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085351 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084752  (14.2ms) COMMIT Completed 200 OK in 265ms (Views: 25.1ms | ActiveRecord: 121.8ms) Started GET "/borrow_direct/BorrowDirect/969084752?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:47:54 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084752"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084752 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4306  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:54', 969084752, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085351 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351) Redirected to http://www.example.com/resolve?umlaut.request_id=969084752&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A54-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 54ms (ActiveRecord: 39.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4306  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016339  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084752&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A54-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:47:54 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084752", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:47:54-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085351 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084752  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 [["request_id", 969084752]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085351 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084752 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085351 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084752  (14.6ms) COMMIT Completed 200 OK in 77ms (Views: 21.6ms | ActiveRecord: 45.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:47:54 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09df911dc3f55e2b17f4fcefa4e539aa' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:54', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'format', 'journal', 969085352, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'isbn', 1, '0109836413', 969085352, '0109836413')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:47:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085352, '09df911dc3f55e2b17f4fcefa4e539aa')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084753  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:54', NULL, 969084753, 'BorrowDirect', 'queued', '2015-02-24 16:47:54')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4307  (15.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084753 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085352) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085352) ServiceResponse Load (2.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084753) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084753) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084753 AND `dispatched_services`.`id` = 4307 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084753, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:54', 'This item is not currently available from BorrowDirect', 969084753, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4307  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084753 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085352 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085352) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084753 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085352 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084753  (15.7ms) COMMIT Completed 200 OK in 289ms (Views: 21.0ms | ActiveRecord: 114.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:54 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '545359c4f8120104aa03d3d8af64a2f6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:54', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'format', 'journal', 969085353, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'isbn', 1, '9789810743734', 969085353, '9789810743734')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085353, '545359c4f8120104aa03d3d8af64a2f6')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084754  (16.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:54', NULL, 969084754, 'BorrowDirect', 'queued', '2015-02-24 16:47:54')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4308  (14.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085353) ReferentValue Load (2.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084754) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084754) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`id` = 4308 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084754, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (1.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 'Choose your delivery location', 969084754, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4308  (15.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085353 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084754 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085353 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084754  (14.3ms) COMMIT Completed 200 OK in 264ms (Views: 22.6ms | ActiveRecord: 120.1ms) Started GET "/borrow_direct/BorrowDirect/969084754?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:47:55 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084754"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084754 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4308  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 969084754, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085353 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353) Redirected to http://www.example.com/resolve?umlaut.request_id=969084754&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 37.7ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4308  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016344  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084754&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:47:55 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084754", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:47:55-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085353 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353)  (1.1ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084754  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 [["request_id", 969084754]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085353 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084754 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085353 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084754  (18.5ms) COMMIT Completed 200 OK in 78ms (Views: 18.8ms | ActiveRecord: 49.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17f53845fd614b036ac9ff30a2dda430' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:55', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:55', 'format', 'journal', 969085354, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:55', 'isbn', 1, '9789810743734', 969085354, '9789810743734')  (20.1ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085354, '17f53845fd614b036ac9ff30a2dda430')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084755  (15.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:55', NULL, 969084755, 'BorrowDirect', 'queued', '2015-02-24 16:47:55')  (15.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4309  (17.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084755 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085354) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085354) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084755) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084755) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084755 AND `dispatched_services`.`id` = 4309 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084755, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 'Choose your delivery location', 969084755, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.4ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4309  (16.5ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084755 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085354 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085354) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084755 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084755 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085354 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084755  (14.9ms) COMMIT Completed 200 OK in 310ms (Views: 22.2ms | ActiveRecord: 126.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f3f99223c470f8e74c7b2005037eb8f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:55', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:55', 'format', 'journal', 969085355, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:55', 'isbn', 1, '9789810743734', 969085355, '9789810743734')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085355, '2f3f99223c470f8e74c7b2005037eb8f')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084756  (15.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:55', NULL, 969084756, 'BorrowDirect', 'queued', '2015-02-24 16:47:55')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4310  (16.0ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085355) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084756) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084756) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`id` = 4310 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084756, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 'Choose your delivery location', 969084756, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (21.4ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4310  (15.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085355 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084756 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085355 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084756  (17.7ms) COMMIT Completed 200 OK in 279ms (Views: 22.5ms | ActiveRecord: 128.2ms) Started GET "/borrow_direct/BorrowDirect/969084756" for 127.0.0.1 at 2015-02-24 11:47:55 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084756"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084756 ORDER BY id ASC  (1.1ms) BEGIN SQL (3.6ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 969084756, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (16.6ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085355 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355) Redirected to http://www.example.com/resolve?umlaut.request_id=969084756&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 26.0ms) Started GET "/resolve?umlaut.request_id=969084756&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:47:55 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084756", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:47:55-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085355 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084756  (15.6ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 [["request_id", 969084756]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085355 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084756 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085355 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084756  (21.8ms) COMMIT Completed 200 OK in 86ms (Views: 23.3ms | ActiveRecord: 53.9ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b5679cb967ab21d309f5c48b4a8d42c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:48', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:48', 'format', 'journal', 969085356, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:48', 'isbn', 1, '9789810743734', 969085356, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085356, '3b5679cb967ab21d309f5c48b4a8d42c')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084757  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757  (1.1ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:48', NULL, 969084757, 'test_bd', 'queued', '2015-02-24 16:51:48')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:48' WHERE `dispatched_services`.`id` = 4311  (15.0ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084757 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085356) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085356) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084757) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084757) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084757 AND `dispatched_services`.`id` = 4311 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084757, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:51:48' WHERE `dispatched_services`.`id` = 4311  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084757 LIMIT 1 DispatchedService Load (8.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085356 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085356) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084757 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (36.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (40.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (103.0ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085356 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.9ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084757  (14.7ms) COMMIT Completed 200 OK in 2413ms (Views: 1916.3ms | ActiveRecord: 141.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:51:50 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f2af80eb94f9cb404203ab55240d434' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:51:50', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'format', 'book', 969085357, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'genre', 1, 'book', 969085357, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'author', 1, 'smith', 969085357, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'title', 1, 'some book', 969085357, 'Some Book')  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:51:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085357, '7f2af80eb94f9cb404203ab55240d434')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084758  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:50', NULL, 969084758, 'BorrowDirect', 'queued', '2015-02-24 16:51:50')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:50' WHERE `dispatched_services`.`id` = 4312  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084758 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085357) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085357) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084758) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084758) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084758 AND `dispatched_services`.`id` = 4312 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084758, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:50' WHERE `dispatched_services`.`id` = 4312  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084758 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085357 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085357) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084758 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085357 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084758  (14.7ms) COMMIT Completed 200 OK in 238ms (Views: 20.3ms | ActiveRecord: 125.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:51:50 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf01dbb246733f59b3d32a1f807a1bb9' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:51:50', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'format', 'journal', 969085358, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'genre', 1, 'article', 969085358, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'title', 1, 'foo', 969085358, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'author', 1, 'bar', 969085358, 'bar')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:51:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085358, 'bf01dbb246733f59b3d32a1f807a1bb9')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084759  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:51', NULL, 969084759, 'BorrowDirect', 'queued', '2015-02-24 16:51:51')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4313  (14.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084759 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085358) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085358) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084759) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084759) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084759 AND `dispatched_services`.`id` = 4313 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4313  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084759 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085358 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085358) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084759 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085358 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084759  (14.7ms) COMMIT Completed 200 OK in 206ms (Views: 19.1ms | ActiveRecord: 115.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71d426a1da8360572ebe786898d7d49f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:51:51', 'foo') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'format', 'book', 969085359, 'book') SQL (2.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'genre', 1, 'book', 969085359, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'title', 1, 'foo', 969085359, 'foo')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:51:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085359, '71d426a1da8360572ebe786898d7d49f')  (15.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084760 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:51', NULL, 969084760, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:51:51')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4314  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084760" for 127.0.0.1 at 2015-02-24 11:51:51 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084760"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084760 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085359 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085359)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084760  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084760 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084760 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084760 [["request_id", 969084760]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085359 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085359) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084760 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084760 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085359 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084760  (14.3ms) COMMIT Completed 200 OK in 71ms (Views: 17.5ms | ActiveRecord: 46.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2856a3a411c670f3baad648978179149' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:51', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'format', 'journal', 969085360, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'isbn', 1, '9789810743734', 969085360, '9789810743734')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085360, '2856a3a411c670f3baad648978179149')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084761  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:51', NULL, 969084761, 'BorrowDirect', 'queued', '2015-02-24 16:51:51')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4315  (14.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085360) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084761) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084761) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`id` = 4315 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084761, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:51', 'Choose your delivery location', 969084761, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4315  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085360 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084761 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085360 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084761  (15.2ms) COMMIT Completed 200 OK in 252ms (Views: 24.0ms | ActiveRecord: 114.8ms) Started GET "/borrow_direct/BorrowDirect/969084761?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:51:51 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084761"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084761 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4315  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:51', 969084761, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085360 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360) Redirected to http://www.example.com/resolve?umlaut.request_id=969084761&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 38.4ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4315  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016354  (15.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084761&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:51:51 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084761", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:51:51-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085360 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084761  (19.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 [["request_id", 969084761]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085360 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084761 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085360 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084761  (14.5ms) COMMIT Completed 200 OK in 81ms (Views: 21.1ms | ActiveRecord: 50.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:51:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e12724360722278b71f1c52de0f683ec' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:51', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'format', 'journal', 969085361, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'isbn', 1, '0109836413', 969085361, '0109836413')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:51:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085361, 'e12724360722278b71f1c52de0f683ec')  (16.0ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084762  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:51', NULL, 969084762, 'BorrowDirect', 'queued', '2015-02-24 16:51:51')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4316  (22.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084762 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085361) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085361) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084762) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084762) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084762 AND `dispatched_services`.`id` = 4316 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084762, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:52', 'This item is not currently available from BorrowDirect', 969084762, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4316  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084762 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085361 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085361) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084762 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085361 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084762  (15.1ms) COMMIT Completed 200 OK in 256ms (Views: 19.1ms | ActiveRecord: 124.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e40560a24e6932d24d6eb8ef69a2e63' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (2.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:52', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'format', 'journal', 969085362, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'isbn', 1, '9789810743734', 969085362, '9789810743734')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085362, '9e40560a24e6932d24d6eb8ef69a2e63')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084763  (15.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:52', NULL, 969084763, 'BorrowDirect', 'queued', '2015-02-24 16:51:52')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (4.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4317  (15.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085362) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084763) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084763) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`id` = 4317 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084763, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:52', 'Choose your delivery location', 969084763, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4317  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085362 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084763 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085362 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084763  (15.1ms) COMMIT Completed 200 OK in 309ms (Views: 22.1ms | ActiveRecord: 121.7ms) Started GET "/borrow_direct/BorrowDirect/969084763?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:51:52 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084763"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084763 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4317  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (2.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:52', 969084763, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085362 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362) Redirected to http://www.example.com/resolve?umlaut.request_id=969084763&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.5ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4317  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016359  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084763&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:51:52 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084763", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:51:52-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085362 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084763  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 [["request_id", 969084763]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085362 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084763 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085362 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084763  (19.2ms) COMMIT Completed 200 OK in 76ms (Views: 18.0ms | ActiveRecord: 49.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc3642138ca789387d2412b9f4969c34' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:52', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'format', 'journal', 969085363, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'isbn', 1, '9789810743734', 969085363, '9789810743734')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085363, 'dc3642138ca789387d2412b9f4969c34')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084764  (15.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:52', NULL, 969084764, 'BorrowDirect', 'queued', '2015-02-24 16:51:52')  (15.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4318  (15.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084764 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085363) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085363) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084764) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084764) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084764 AND `dispatched_services`.`id` = 4318 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084764, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (17.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:52', 'Choose your delivery location', 969084764, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4318  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084764 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085363 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085363) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084764 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084764 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085363 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084764  (15.5ms) COMMIT Completed 200 OK in 264ms (Views: 22.7ms | ActiveRecord: 119.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b966de39632e11bbe5fd52f22fe2ee3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:52', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'format', 'journal', 969085364, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'isbn', 1, '9789810743734', 969085364, '9789810743734')  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085364, '7b966de39632e11bbe5fd52f22fe2ee3')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084765  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:52', NULL, 969084765, 'BorrowDirect', 'queued', '2015-02-24 16:51:52')  (13.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:53' WHERE `dispatched_services`.`id` = 4319  (19.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085364) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084765) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084765) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`id` = 4319 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084765, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:53', 'Choose your delivery location', 969084765, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:53' WHERE `dispatched_services`.`id` = 4319  (59.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085364 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084765 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085364 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (17.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084765  (32.1ms) COMMIT Completed 200 OK in 388ms (Views: 22.4ms | ActiveRecord: 159.4ms) Started GET "/borrow_direct/BorrowDirect/969084765" for 127.0.0.1 at 2015-02-24 11:51:53 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084765"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084765 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:53', 969084765, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (51.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085364 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364) Redirected to http://www.example.com/resolve?umlaut.request_id=969084765&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 63ms (ActiveRecord: 56.4ms) Started GET "/resolve?umlaut.request_id=969084765&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:51:53 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084765", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:51:53-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085364 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084765  (20.8ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 [["request_id", 969084765]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085364 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084765 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085364 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084765  (14.4ms) COMMIT Completed 200 OK in 87ms (Views: 23.4ms | ActiveRecord: 54.4ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:52:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a709262efc3923f0a2f3ae0f1709cabb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:52:21', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:52:21', 'format', 'journal', 969085365, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:52:21', 'isbn', 1, '9789810743734', 969085365, '9789810743734')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:52:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085365, 'a709262efc3923f0a2f3ae0f1709cabb')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084766  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:52:21', NULL, 969084766, 'test_bd', 'queued', '2015-02-24 16:52:21')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:52:21' WHERE `dispatched_services`.`id` = 4320  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084766 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085365) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085365) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084766) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084766) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084766 AND `dispatched_services`.`id` = 4320 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084766, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:52:21' WHERE `dispatched_services`.`id` = 4320  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084766 LIMIT 1 DispatchedService Load (7.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085365 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085365) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (34.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084766 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (40.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (98.9ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085365 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084766  (14.6ms) COMMIT Completed 200 OK in 643ms (Views: 111.3ms | ActiveRecord: 171.4ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:46 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49dd039c9cb395cc789dada4055d50a1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:47', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'format', 'journal', 969085366, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'isbn', 1, '9789810743734', 969085366, '9789810743734')  (22.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085366, '49dd039c9cb395cc789dada4055d50a1')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084767  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:47', NULL, 969084767, 'test_bd', 'queued', '2015-02-24 16:53:47')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:47' WHERE `dispatched_services`.`id` = 4321  (14.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084767 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085366) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085366) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084767) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084767) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084767 AND `dispatched_services`.`id` = 4321 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084767, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:53:47' WHERE `dispatched_services`.`id` = 4321  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084767 LIMIT 1 DispatchedService Load (7.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085366 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085366) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084767 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (95.9ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085366 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084767  (15.6ms) COMMIT Completed 200 OK in 666ms (Views: 136.9ms | ActiveRecord: 173.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:53:47 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e89116be031a323c13b9ab62458ff5c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:53:47', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'format', 'book', 969085367, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'genre', 1, 'book', 969085367, 'book') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'author', 1, 'smith', 969085367, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'title', 1, 'some book', 969085367, 'Some Book')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:53:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085367, '6e89116be031a323c13b9ab62458ff5c')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084768  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:47', NULL, 969084768, 'BorrowDirect', 'queued', '2015-02-24 16:53:47')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:47' WHERE `dispatched_services`.`id` = 4322  (14.1ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084768 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085367) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085367) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084768) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084768) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084768 AND `dispatched_services`.`id` = 4322 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084768, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:47' WHERE `dispatched_services`.`id` = 4322  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084768 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085367 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085367) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084768 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085367 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084768  (14.5ms) COMMIT Completed 200 OK in 240ms (Views: 18.9ms | ActiveRecord: 125.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:53:48 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b6f41bf7a5f7b1cd82b3691041ec4e8' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:53:48', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'format', 'journal', 969085368, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'genre', 1, 'article', 969085368, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'title', 1, 'foo', 969085368, 'foo') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'author', 1, 'bar', 969085368, 'bar')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:53:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085368, '9b6f41bf7a5f7b1cd82b3691041ec4e8')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084769  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:48', NULL, 969084769, 'BorrowDirect', 'queued', '2015-02-24 16:53:48')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4323  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084769 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085368) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085368) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084769) ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084769) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084769 AND `dispatched_services`.`id` = 4323 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.4ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4323  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084769 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085368 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085368) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084769 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085368 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084769  (15.2ms) COMMIT Completed 200 OK in 208ms (Views: 17.2ms | ActiveRecord: 117.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '839c3b0cf81c563d5f3995cd6a614014' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:53:48', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'format', 'book', 969085369, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'genre', 1, 'book', 969085369, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'title', 1, 'foo', 969085369, 'foo')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085369, '839c3b0cf81c563d5f3995cd6a614014')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084770 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:48', NULL, 969084770, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:53:48')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4324  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084770" for 127.0.0.1 at 2015-02-24 11:53:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084770"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084770 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085369 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085369)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084770  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084770 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084770 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084770 [["request_id", 969084770]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085369 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085369) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084770 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084770 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085369 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084770  (14.2ms) COMMIT Completed 200 OK in 70ms (Views: 18.4ms | ActiveRecord: 44.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '221b9589a27a54cb0d670e3c51e66da5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:48', '9789810743734') SQL (2.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'format', 'journal', 969085370, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'isbn', 1, '9789810743734', 969085370, '9789810743734')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085370, '221b9589a27a54cb0d670e3c51e66da5')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084771  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:48', NULL, 969084771, 'BorrowDirect', 'queued', '2015-02-24 16:53:48')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4325  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085370) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084771) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084771) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`id` = 4325 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084771, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:48', 'Choose your delivery location', 969084771, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4325  (14.2ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085370 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084771 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085370 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084771  (14.5ms) COMMIT Completed 200 OK in 253ms (Views: 24.5ms | ActiveRecord: 114.5ms) Started GET "/borrow_direct/BorrowDirect/969084771?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:53:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084771"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084771 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4325  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:48', 969084771, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085370 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370) Redirected to http://www.example.com/resolve?umlaut.request_id=969084771&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 37.7ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4325  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016370  (18.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084771&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:53:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084771", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:53:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085370 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084771  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 [["request_id", 969084771]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085370 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084771 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085370 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084771  (14.4ms) COMMIT Completed 200 OK in 76ms (Views: 21.5ms | ActiveRecord: 45.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:53:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7a1ab5d978fc512e4a00b0f816f25b72' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:48', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'format', 'journal', 969085371, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'isbn', 1, '0109836413', 969085371, '0109836413')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (2.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:53:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085371, '7a1ab5d978fc512e4a00b0f816f25b72')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084772  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:49', NULL, 969084772, 'BorrowDirect', 'queued', '2015-02-24 16:53:49')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4326  (14.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084772 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085371) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085371) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084772) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084772) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084772 AND `dispatched_services`.`id` = 4326 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084772, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:49', 'This item is not currently available from BorrowDirect', 969084772, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4326  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084772 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085371 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085371) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084772 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085371 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084772  (16.2ms) COMMIT Completed 200 OK in 294ms (Views: 20.9ms | ActiveRecord: 120.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e19e2bfcdbbac0ed3bbdb7bb302b4730' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:49', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:49', 'format', 'journal', 969085372, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:49', 'isbn', 1, '9789810743734', 969085372, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085372, 'e19e2bfcdbbac0ed3bbdb7bb302b4730')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084773  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:49', NULL, 969084773, 'BorrowDirect', 'queued', '2015-02-24 16:53:49')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4327  (14.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085372) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084773) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084773) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`id` = 4327 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084773, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:49', 'Choose your delivery location', 969084773, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4327  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 Referent Load (2.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085372 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084773 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085372 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084773  (14.2ms) COMMIT Completed 200 OK in 252ms (Views: 21.9ms | ActiveRecord: 115.5ms) Started GET "/borrow_direct/BorrowDirect/969084773?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:53:49 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084773"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084773 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4327  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:49', 969084773, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085372 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372) Redirected to http://www.example.com/resolve?umlaut.request_id=969084773&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 46ms (ActiveRecord: 37.6ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4327  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016375  (15.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084773&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:53:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084773", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:53:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085372 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084773  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 [["request_id", 969084773]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085372 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084773 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085372 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084773  (14.9ms) COMMIT Completed 200 OK in 73ms (Views: 20.0ms | ActiveRecord: 44.4ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f6fc5c3dbe240edcc2378179f19c3087' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:49', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:49', 'format', 'journal', 969085373, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:49', 'isbn', 1, '9789810743734', 969085373, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085373, 'f6fc5c3dbe240edcc2378179f19c3087')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084774  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:49', NULL, 969084774, 'BorrowDirect', 'queued', '2015-02-24 16:53:49')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4328  (15.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084774 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085373) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085373) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084774) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084774) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084774 AND `dispatched_services`.`id` = 4328 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084774, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:49', 'Choose your delivery location', 969084774, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4328  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084774 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085373 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085373) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084774 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084774 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085373 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084774  (15.2ms) COMMIT Completed 200 OK in 296ms (Views: 22.4ms | ActiveRecord: 116.5ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ac41730b8d2b6f0bed5d5a6fe57a363' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.3ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:50', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:50', 'format', 'journal', 969085374, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:50', 'isbn', 1, '9789810743734', 969085374, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085374, '8ac41730b8d2b6f0bed5d5a6fe57a363')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084775  (14.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:50', NULL, 969084775, 'BorrowDirect', 'queued', '2015-02-24 16:53:50')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:50' WHERE `dispatched_services`.`id` = 4329  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085374) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084775) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084775) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`id` = 4329 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084775, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:50', 'Choose your delivery location', 969084775, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:50' WHERE `dispatched_services`.`id` = 4329  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085374 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084775 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085374 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084775  (14.7ms) COMMIT Completed 200 OK in 251ms (Views: 21.7ms | ActiveRecord: 115.2ms) Started GET "/borrow_direct/BorrowDirect/969084775" for 127.0.0.1 at 2015-02-24 11:53:50 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084775"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084775 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:50', 969084775, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085374 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374) Redirected to http://www.example.com/resolve?umlaut.request_id=969084775&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.5ms) Started GET "/resolve?umlaut.request_id=969084775&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:53:50 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084775", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:53:50-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085374 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084775  (14.8ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 [["request_id", 969084775]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085374 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084775 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085374 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084775  (15.4ms) COMMIT Completed 200 OK in 78ms (Views: 21.9ms | ActiveRecord: 47.3ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:54:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c7d2780e3589daf18fec762497671cbf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:54:24', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:54:24', 'format', 'journal', 969085375, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:54:24', 'isbn', 1, '9789810743734', 969085375, '9789810743734')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:54:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085375, 'c7d2780e3589daf18fec762497671cbf')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084776  (14.3ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:54:24', NULL, 969084776, 'test_bd', 'queued', '2015-02-24 16:54:24')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:54:24' WHERE `dispatched_services`.`id` = 4330  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084776 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085375) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085375) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084776) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084776) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084776 AND `dispatched_services`.`id` = 4330 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:54:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084776, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:54:24' WHERE `dispatched_services`.`id` = 4330  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084776 LIMIT 1 DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085375 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085375) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084776 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (32.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (36.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (122.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085375 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084776  (14.6ms) COMMIT Completed 200 OK in 668ms (Views: 142.7ms | ActiveRecord: 161.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:55:22 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d2a685207a6cc7a16916290120f997f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:55:22', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'format', 'book', 969085376, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'genre', 1, 'book', 969085376, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'author', 1, 'smith', 969085376, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'title', 1, 'some book', 969085376, 'Some Book')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:55:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085376, '8d2a685207a6cc7a16916290120f997f')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084777  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:22', NULL, 969084777, 'BorrowDirect', 'queued', '2015-02-24 16:55:22')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:22' WHERE `dispatched_services`.`id` = 4331  (15.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084777 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085376) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085376) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084777) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084777) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084777 AND `dispatched_services`.`id` = 4331 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084777, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.1ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:22' WHERE `dispatched_services`.`id` = 4331  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084777 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.7ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085376 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085376) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.6ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084777 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085376 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084777  (14.2ms) COMMIT Completed 200 OK in 302ms (Views: 47.7ms | ActiveRecord: 128.2ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:55:22 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b656583e9cfda0429f10bb1ca1bea124' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:55:22', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'format', 'journal', 969085377, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'genre', 1, 'article', 969085377, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'title', 1, 'foo', 969085377, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'author', 1, 'bar', 969085377, 'bar')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:55:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085377, 'b656583e9cfda0429f10bb1ca1bea124')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084778  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:22', NULL, 969084778, 'BorrowDirect', 'queued', '2015-02-24 16:55:22')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:22' WHERE `dispatched_services`.`id` = 4332  (13.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084778 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085377) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085377) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084778) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084778) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084778 AND `dispatched_services`.`id` = 4332 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:22' WHERE `dispatched_services`.`id` = 4332  (14.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084778 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.5ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085377 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085377) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (47.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.4ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084778 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085377 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084778  (14.7ms) COMMIT Completed 200 OK in 298ms (Views: 80.9ms | ActiveRecord: 116.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c2fef29bcec5aec85b3da32444d644c0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:55:23', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'format', 'book', 969085378, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'genre', 1, 'book', 969085378, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'title', 1, 'foo', 969085378, 'foo')  (15.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:55:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085378, 'c2fef29bcec5aec85b3da32444d644c0')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084779 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:23', NULL, 969084779, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:55:23')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4333  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084779" for 127.0.0.1 at 2015-02-24 11:55:23 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084779"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084779 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085378 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085378)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084779  (14.4ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084779 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084779 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084779 [["request_id", 969084779]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085378 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085378) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.4ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084779 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084779 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.4ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085378 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084779  (15.6ms) COMMIT Completed 200 OK in 105ms (Views: 43.4ms | ActiveRecord: 47.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:23 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8f14390562b212e5614f56b2751089a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:23', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'format', 'journal', 969085379, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'isbn', 1, '9789810743734', 969085379, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085379, 'b8f14390562b212e5614f56b2751089a')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084780  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:23', NULL, 969084780, 'BorrowDirect', 'queued', '2015-02-24 16:55:23')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4334  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085379) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084780) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084780) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`id` = 4334 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084780, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:23', 'Choose your delivery location', 969084780, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4334  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085379 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084780 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (48.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (49.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (14.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (16.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085379 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084780  (15.1ms) COMMIT Completed 200 OK in 371ms (Views: 101.8ms | ActiveRecord: 116.1ms) Started GET "/borrow_direct/BorrowDirect/969084780?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:55:23 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084780"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084780 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4334  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:23', 969084780, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085379 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379) Redirected to http://www.example.com/resolve?umlaut.request_id=969084780&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 68ms (ActiveRecord: 37.6ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4334  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016385  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084780&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:55:23 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084780", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:55:23-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085379 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084780  (15.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 [["request_id", 969084780]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085379 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084780 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085379 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084780  (14.7ms) COMMIT Completed 200 OK in 115ms (Views: 50.5ms | ActiveRecord: 46.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:55:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07a2bc222d3f1dd4d1fa7c5006face4b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:24', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:24', 'format', 'journal', 969085380, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:24', 'isbn', 1, '0109836413', 969085380, '0109836413')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:55:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085380, '07a2bc222d3f1dd4d1fa7c5006face4b')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084781  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:24', NULL, 969084781, 'BorrowDirect', 'queued', '2015-02-24 16:55:24')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4335  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084781 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085380) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085380) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084781) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084781) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084781 AND `dispatched_services`.`id` = 4335 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084781, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:24', 'This item is not currently available from BorrowDirect', 969084781, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4335  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084781 LIMIT 1 DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (4.3ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085380 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085380) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084781 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085380 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)  (1.0ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084781  (14.8ms) COMMIT Completed 200 OK in 364ms (Views: 49.6ms | ActiveRecord: 115.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e7167a85af449b7af0206e49e96008f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:24', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:24', 'format', 'journal', 969085381, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:24', 'isbn', 1, '9789810743734', 969085381, '9789810743734')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085381, '1e7167a85af449b7af0206e49e96008f')  (15.2ms) COMMIT  (1.1ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084782  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:24', NULL, 969084782, 'BorrowDirect', 'queued', '2015-02-24 16:55:24')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4336  (14.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085381) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381) ServiceResponse Load (3.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084782) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084782) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`id` = 4336 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084782, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:24', 'Choose your delivery location', 969084782, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4336  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.8ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085381 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084782 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085381 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084782  (14.4ms) COMMIT Completed 200 OK in 325ms (Views: 52.8ms | ActiveRecord: 117.8ms) Started GET "/borrow_direct/BorrowDirect/969084782?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:55:24 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084782"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084782 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4336  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:24', 969084782, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (18.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085381 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381) Redirected to http://www.example.com/resolve?umlaut.request_id=969084782&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 61ms (ActiveRecord: 42.5ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4336  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016390  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084782&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:55:24 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084782", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:55:24-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085381 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084782  (17.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 [["request_id", 969084782]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085381 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084782 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085381 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084782  (14.1ms) COMMIT Completed 200 OK in 110ms (Views: 43.7ms | ActiveRecord: 47.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c8e03f58c527348dcb4980ab16a43aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:25', '9789810743734') SQL (2.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:25', 'format', 'journal', 969085382, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:25', 'isbn', 1, '9789810743734', 969085382, '9789810743734')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085382, '1c8e03f58c527348dcb4980ab16a43aa')  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084783  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:25', NULL, 969084783, 'BorrowDirect', 'queued', '2015-02-24 16:55:25')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:25' WHERE `dispatched_services`.`id` = 4337  (14.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084783 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085382) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085382) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084783) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084783) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084783 AND `dispatched_services`.`id` = 4337 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084783, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:25', 'Choose your delivery location', 969084783, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:25' WHERE `dispatched_services`.`id` = 4337  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084783 LIMIT 1 DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (4.0ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085382 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085382) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084783 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084783 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (12.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085382 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084783  (15.9ms) COMMIT Completed 200 OK in 333ms (Views: 52.4ms | ActiveRecord: 126.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc1182c035aa6c035e406150a88355ac' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:25', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:25', 'format', 'journal', 969085383, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:25', 'isbn', 1, '9789810743734', 969085383, '9789810743734')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085383, 'dc1182c035aa6c035e406150a88355ac')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084784  (18.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:25', NULL, 969084784, 'BorrowDirect', 'queued', '2015-02-24 16:55:25')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:25' WHERE `dispatched_services`.`id` = 4338  (17.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085383) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084784) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084784) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`id` = 4338 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084784, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:25', 'Choose your delivery location', 969084784, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:25' WHERE `dispatched_services`.`id` = 4338  (19.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.7ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085383 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084784 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.4ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085383 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084784  (14.8ms) COMMIT Completed 200 OK in 390ms (Views: 53.0ms | ActiveRecord: 123.5ms) Started GET "/borrow_direct/BorrowDirect/969084784" for 127.0.0.1 at 2015-02-24 11:55:25 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084784"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084784 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:25', 969084784, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085383 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383) Redirected to http://www.example.com/resolve?umlaut.request_id=969084784&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 34ms (ActiveRecord: 20.3ms) Started GET "/resolve?umlaut.request_id=969084784&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:55:25 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084784", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:55:25-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085383 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084784  (16.6ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 [["request_id", 969084784]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085383 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084784 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085383 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084784  (19.3ms) COMMIT Completed 200 OK in 123ms (Views: 52.6ms | ActiveRecord: 52.3ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08e2e0f14c04d1ce364b16963ab9da72' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:50', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:50', 'format', 'journal', 969085384, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:50', 'isbn', 1, '9789810743734', 969085384, '9789810743734')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085384, '08e2e0f14c04d1ce364b16963ab9da72')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084785  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:50', NULL, 969084785, 'test_bd', 'queued', '2015-02-24 16:55:50')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:50' WHERE `dispatched_services`.`id` = 4339  (14.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084785 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085384) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085384) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084785) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084785) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084785 AND `dispatched_services`.`id` = 4339 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (2.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084785, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:55:51' WHERE `dispatched_services`.`id` = 4339  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084785 LIMIT 1 DispatchedService Load (7.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.8ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085384 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085384) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084785 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (31.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (101.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085384 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (2.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084785  (15.0ms) COMMIT Completed 200 OK in 659ms (Views: 140.6ms | ActiveRecord: 148.2ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b58ab1cedaf39a1984ea046576ea0f27' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:31', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'format', 'journal', 969085385, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'isbn', 1, '9789810743734', 969085385, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085385, 'b58ab1cedaf39a1984ea046576ea0f27')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084786  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:31', NULL, 969084786, 'test_bd', 'queued', '2015-02-24 16:59:31')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4340  (14.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084786 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085385) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085385) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084786) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084786) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084786 AND `dispatched_services`.`id` = 4340 AND `dispatched_services`.`status` IN ('queued')  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084786, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4340  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084786 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085385 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085385) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084786 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (100.0ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085385 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084786  (14.8ms) COMMIT Completed 200 OK in 636ms (Views: 141.1ms | ActiveRecord: 140.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:59:31 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ebb73b6b32c34be25a1852048b8be6f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:59:31', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'format', 'book', 969085386, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'genre', 1, 'book', 969085386, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'author', 1, 'smith', 969085386, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'title', 1, 'some book', 969085386, 'Some Book')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:59:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085386, '2ebb73b6b32c34be25a1852048b8be6f')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084787  (16.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:31', NULL, 969084787, 'BorrowDirect', 'queued', '2015-02-24 16:59:31')  (15.3ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4341  (14.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084787 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085386) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085386) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084787) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084787) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084787 AND `dispatched_services`.`id` = 4341 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084787, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4341  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084787 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085386 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085386) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084787 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085386 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084787  (15.0ms) COMMIT Completed 200 OK in 247ms (Views: 20.7ms | ActiveRecord: 130.7ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:59:31 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af7d09ccbcd1d77cd6f664cc5798ea69' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:59:31', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'format', 'journal', 969085387, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'genre', 1, 'article', 969085387, 'article') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'title', 1, 'foo', 969085387, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'author', 1, 'bar', 969085387, 'bar')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:59:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085387, 'af7d09ccbcd1d77cd6f664cc5798ea69')  (13.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084788  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:31', NULL, 969084788, 'BorrowDirect', 'queued', '2015-02-24 16:59:31')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4342  (16.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084788 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085387) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085387) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084788) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084788) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084788 AND `dispatched_services`.`id` = 4342 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4342  (15.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084788 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085387 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085387) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084788 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085387 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084788  (14.6ms) COMMIT Completed 200 OK in 214ms (Views: 18.7ms | ActiveRecord: 121.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '691af0070fa8efd8e25b7e521219256d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:59:32', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'format', 'book', 969085388, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'genre', 1, 'book', 969085388, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'title', 1, 'foo', 969085388, 'foo')  (34.4ms) COMMIT  (1.5ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:59:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085388, '691af0070fa8efd8e25b7e521219256d')  (46.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084789 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:32', NULL, 969084789, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:59:32')  (17.1ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4343  (14.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084789" for 127.0.0.1 at 2015-02-24 11:59:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084789"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084789 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085388 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085388)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084789  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084789 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084789 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084789 [["request_id", 969084789]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085388 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085388) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084789 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084789 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085388 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084789  (14.4ms) COMMIT Completed 200 OK in 73ms (Views: 19.2ms | ActiveRecord: 45.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '546d32fcdce8871ca53c65048d3709ee' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:32', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'format', 'journal', 969085389, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'isbn', 1, '9789810743734', 969085389, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085389, '546d32fcdce8871ca53c65048d3709ee')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084790  (15.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:32', NULL, 969084790, 'BorrowDirect', 'queued', '2015-02-24 16:59:32')  (32.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4344  (20.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085389) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084790) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084790) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`id` = 4344 AND `dispatched_services`.`status` IN ('queued')  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084790, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:32', 'Choose your delivery location', 969084790, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4344  (17.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085389 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084790 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085389 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084790  (16.4ms) COMMIT Completed 200 OK in 288ms (Views: 24.0ms | ActiveRecord: 145.6ms) Started GET "/borrow_direct/BorrowDirect/969084790?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:59:32 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084790"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084790 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4344  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:32', 969084790, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085389 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389) Redirected to http://www.example.com/resolve?umlaut.request_id=969084790&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 37.8ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4344  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016401  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084790&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:59:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084790", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:59:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085389 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084790  (15.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 [["request_id", 969084790]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085389 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084790 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085389 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084790  (14.4ms) COMMIT Completed 200 OK in 76ms (Views: 20.4ms | ActiveRecord: 46.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:59:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63c1b62b573d6d96cc6b8dda4c755203' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:32', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'format', 'journal', 969085390, 'journal') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'isbn', 1, '0109836413', 969085390, '0109836413')  (18.3ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:59:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085390, '63c1b62b573d6d96cc6b8dda4c755203')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084791  (16.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791  (0.9ms) BEGIN SQL (1.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:32', NULL, 969084791, 'BorrowDirect', 'queued', '2015-02-24 16:59:32')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4345  (17.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084791 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085390) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085390) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084791) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084791) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084791 AND `dispatched_services`.`id` = 4345 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084791, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:33', 'This item is not currently available from BorrowDirect', 969084791, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4345  (15.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084791 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085390 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085390) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084791 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085390 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084791  (15.7ms) COMMIT Completed 200 OK in 308ms (Views: 22.4ms | ActiveRecord: 129.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '02fc739faed8e464540b7e377ea91fbc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:33', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'format', 'journal', 969085391, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'isbn', 1, '9789810743734', 969085391, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085391, '02fc739faed8e464540b7e377ea91fbc')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084792  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:33', NULL, 969084792, 'BorrowDirect', 'queued', '2015-02-24 16:59:33')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4346  (14.4ms) COMMIT Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085391) ReferentValue Load (2.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084792) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084792) DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`id` = 4346 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084792, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (38.0ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:33', 'Choose your delivery location', 969084792, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4346  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085391 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084792 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085391 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084792  (14.5ms) COMMIT Completed 200 OK in 288ms (Views: 21.4ms | ActiveRecord: 114.4ms) Started GET "/borrow_direct/BorrowDirect/969084792?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:59:33 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084792"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084792 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4346  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:33', 969084792, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085391 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391) Redirected to http://www.example.com/resolve?umlaut.request_id=969084792&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.8ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4346  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016406  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084792&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:59:33 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084792", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:59:33-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085391 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084792  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 [["request_id", 969084792]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085391 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084792 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085391 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084792  (14.4ms) COMMIT Completed 200 OK in 73ms (Views: 18.8ms | ActiveRecord: 45.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ebb13af1a450e7d7bba6e146a462bf5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:33', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'format', 'journal', 969085392, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'isbn', 1, '9789810743734', 969085392, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085392, '3ebb13af1a450e7d7bba6e146a462bf5')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084793  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:33', NULL, 969084793, 'BorrowDirect', 'queued', '2015-02-24 16:59:33')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4347  (14.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084793 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085392) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085392) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084793) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084793) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084793 AND `dispatched_services`.`id` = 4347 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084793, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:33', 'Choose your delivery location', 969084793, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4347  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084793 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085392 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085392) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084793 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084793 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085392 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084793  (15.0ms) COMMIT Completed 200 OK in 295ms (Views: 22.5ms | ActiveRecord: 115.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44149face6a3e4e50685f5bcee03b446' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:33', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'format', 'journal', 969085393, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'isbn', 1, '9789810743734', 969085393, '9789810743734')  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085393, '44149face6a3e4e50685f5bcee03b446')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084794  (13.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:34', NULL, 969084794, 'BorrowDirect', 'queued', '2015-02-24 16:59:34')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:34' WHERE `dispatched_services`.`id` = 4348  (14.0ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085393) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084794) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084794) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`id` = 4348 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084794, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:34', 'Choose your delivery location', 969084794, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:34' WHERE `dispatched_services`.`id` = 4348  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085393 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084794 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085393 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084794  (17.9ms) COMMIT Completed 200 OK in 256ms (Views: 22.6ms | ActiveRecord: 118.8ms) Started GET "/borrow_direct/BorrowDirect/969084794" for 127.0.0.1 at 2015-02-24 11:59:34 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084794"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084794 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:34', 969084794, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085393 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393) Redirected to http://www.example.com/resolve?umlaut.request_id=969084794&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.5ms) Started GET "/resolve?umlaut.request_id=969084794&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:59:34 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084794", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:59:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085393 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084794  (14.0ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 [["request_id", 969084794]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085393 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084794 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085393 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084794  (15.1ms) COMMIT Completed 200 OK in 76ms (Views: 22.7ms | ActiveRecord: 44.9ms) ActiveRecord::SchemaMigration Load (0.6ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:15 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd27ba032cb1a55066218885dbf39963e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (2.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:15', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:15', 'format', 'journal', 969085394, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:15', 'isbn', 1, '9789810743734', 969085394, '9789810743734')  (26.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085394, 'd27ba032cb1a55066218885dbf39963e')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084795  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:15', NULL, 969084795, 'test_bd', 'queued', '2015-02-24 17:00:15')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:15' WHERE `dispatched_services`.`id` = 4349  (14.4ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084795 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085394) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085394) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084795) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084795) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084795 AND `dispatched_services`.`id` = 4349 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084795, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:00:15' WHERE `dispatched_services`.`id` = 4349  (14.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084795 LIMIT 1 DispatchedService Load (7.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085394 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085394) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084795 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (41.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (100.9ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085394 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (1.1ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084795  (20.5ms) COMMIT Completed 200 OK in 669ms (Views: 142.5ms | ActiveRecord: 162.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:00:16 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81753f513ff3c14a273ba9ca6194bf2a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:00:16', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'format', 'book', 969085395, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'genre', 1, 'book', 969085395, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'author', 1, 'smith', 969085395, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'title', 1, 'some book', 969085395, 'Some Book')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:00:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085395, '81753f513ff3c14a273ba9ca6194bf2a')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084796  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:16', NULL, 969084796, 'BorrowDirect', 'queued', '2015-02-24 17:00:16')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4350  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084796 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085395) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085395) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084796) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084796) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084796 AND `dispatched_services`.`id` = 4350 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084796, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4350  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084796 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085395 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085395) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084796 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085395 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084796  (14.9ms) COMMIT Completed 200 OK in 243ms (Views: 19.8ms | ActiveRecord: 128.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:00:16 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39008cba89dc4ad510d4fb54cfa7b617' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:00:16', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'format', 'journal', 969085396, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'genre', 1, 'article', 969085396, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'title', 1, 'foo', 969085396, 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'author', 1, 'bar', 969085396, 'bar')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:00:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085396, '39008cba89dc4ad510d4fb54cfa7b617')  (15.1ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084797  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:16', NULL, 969084797, 'BorrowDirect', 'queued', '2015-02-24 17:00:16')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4351  (14.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084797 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085396) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085396) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084797) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084797) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084797 AND `dispatched_services`.`id` = 4351 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4351  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084797 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085396 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085396) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084797 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085396 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084797  (65.7ms) COMMIT Completed 200 OK in 261ms (Views: 18.1ms | ActiveRecord: 169.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a17cb1fe2e6cf75f8a335c093aeee5e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:00:16', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'format', 'book', 969085397, 'book') SQL (4.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'genre', 1, 'book', 969085397, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'title', 1, 'foo', 969085397, 'foo')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:00:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085397, '2a17cb1fe2e6cf75f8a335c093aeee5e')  (19.3ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084798 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:16', NULL, 969084798, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:00:16')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4352  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084798" for 127.0.0.1 at 2015-02-24 12:00:16 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084798"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084798 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085397 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085397)  (0.9ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084798  (14.4ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084798 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084798 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084798 [["request_id", 969084798]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085397 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085397) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084798 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084798 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (2.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085397 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084798  (15.0ms) COMMIT Completed 200 OK in 79ms (Views: 19.8ms | ActiveRecord: 51.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:16 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8070a6cf61bd88831cdac396512c9e1f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:16', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'format', 'journal', 969085398, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'isbn', 1, '9789810743734', 969085398, '9789810743734')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085398, '8070a6cf61bd88831cdac396512c9e1f')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084799  (14.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:16', NULL, 969084799, 'BorrowDirect', 'queued', '2015-02-24 17:00:16')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4353  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085398) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398) ServiceResponse Load (3.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084799) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084799) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`id` = 4353 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084799, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:16', 'Choose your delivery location', 969084799, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4353  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085398 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084799 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085398 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084799  (14.3ms) COMMIT Completed 200 OK in 253ms (Views: 24.8ms | ActiveRecord: 114.0ms) Started GET "/borrow_direct/BorrowDirect/969084799?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:00:17 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084799"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084799 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4353  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:17', 969084799, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085398 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398) Redirected to http://www.example.com/resolve?umlaut.request_id=969084799&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 37.9ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4353  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016416  (13.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084799&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:00:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084799", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:00:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085398 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084799  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 [["request_id", 969084799]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085398 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084799 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085398 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084799  (14.5ms) COMMIT Completed 200 OK in 77ms (Views: 22.6ms | ActiveRecord: 45.4ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:00:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ffe93cfc1ba9e3b724020c588619d868' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:17', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'format', 'journal', 969085399, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'isbn', 1, '0109836413', 969085399, '0109836413')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:00:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085399, 'ffe93cfc1ba9e3b724020c588619d868')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084800  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:17', NULL, 969084800, 'BorrowDirect', 'queued', '2015-02-24 17:00:17')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4354  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084800 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085399) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085399) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084800) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084800) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084800 AND `dispatched_services`.`id` = 4354 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084800, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (0.7ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:17', 'This item is not currently available from BorrowDirect', 969084800, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4354  (15.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084800 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085399 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085399) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084800 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085399 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084800  (14.3ms) COMMIT Completed 200 OK in 291ms (Views: 19.8ms | ActiveRecord: 114.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d8d47c1a0faf0d0401d194a4ce8332c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:17', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'format', 'journal', 969085400, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'isbn', 1, '9789810743734', 969085400, '9789810743734')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085400, '9d8d47c1a0faf0d0401d194a4ce8332c')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084801  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:17', NULL, 969084801, 'BorrowDirect', 'queued', '2015-02-24 17:00:17')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4355  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085400) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084801) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084801) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`id` = 4355 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084801, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:17', 'Choose your delivery location', 969084801, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4355  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085400 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084801 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085400 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084801  (14.3ms) COMMIT Completed 200 OK in 253ms (Views: 23.9ms | ActiveRecord: 113.2ms) Started GET "/borrow_direct/BorrowDirect/969084801?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:00:17 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084801"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084801 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4355  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:17', 969084801, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085400 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400) Redirected to http://www.example.com/resolve?umlaut.request_id=969084801&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4355  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016421  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084801&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:00:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084801", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:00:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085400 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084801  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 [["request_id", 969084801]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085400 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084801 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085400 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084801  (14.2ms) COMMIT Completed 200 OK in 73ms (Views: 18.3ms | ActiveRecord: 44.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9dfc3103b947dfec6bc16d8b88721f8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:17', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'format', 'journal', 969085401, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'isbn', 1, '9789810743734', 969085401, '9789810743734')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (3.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085401, 'e9dfc3103b947dfec6bc16d8b88721f8')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084802  (13.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:18', NULL, 969084802, 'BorrowDirect', 'queued', '2015-02-24 17:00:18')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:18' WHERE `dispatched_services`.`id` = 4356  (15.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084802 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085401) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085401) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084802) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084802) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084802 AND `dispatched_services`.`id` = 4356 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084802, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:18', 'Choose your delivery location', 969084802, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:18' WHERE `dispatched_services`.`id` = 4356  (13.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084802 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085401 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085401) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084802 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084802 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085401 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084802  (16.8ms) COMMIT Completed 200 OK in 296ms (Views: 21.7ms | ActiveRecord: 117.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a5e6ee8299b71983e9ba29c0f6175cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:18', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:18', 'format', 'journal', 969085402, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:18', 'isbn', 1, '9789810743734', 969085402, '9789810743734')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085402, '1a5e6ee8299b71983e9ba29c0f6175cd')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084803  (13.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:18', NULL, 969084803, 'BorrowDirect', 'queued', '2015-02-24 17:00:18')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:18' WHERE `dispatched_services`.`id` = 4357  (13.9ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085402) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402) ServiceResponse Load (2.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084803) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084803) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`id` = 4357 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084803, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.7ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:18', 'Choose your delivery location', 969084803, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:18' WHERE `dispatched_services`.`id` = 4357  (14.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085402 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084803 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085402 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084803  (14.4ms) COMMIT Completed 200 OK in 246ms (Views: 22.6ms | ActiveRecord: 114.4ms) Started GET "/borrow_direct/BorrowDirect/969084803" for 127.0.0.1 at 2015-02-24 12:00:18 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084803"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084803 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:18', 969084803, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085402 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402) Redirected to http://www.example.com/resolve?umlaut.request_id=969084803&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.3ms) Started GET "/resolve?umlaut.request_id=969084803&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:00:18 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084803", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:00:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085402 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084803  (13.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 [["request_id", 969084803]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085402 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084803 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085402 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084803  (14.1ms) COMMIT Completed 200 OK in 73ms (Views: 21.9ms | ActiveRecord: 41.4ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '142745dbafcf6eba19132f375094f255' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:18', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:18', 'format', 'journal', 969085403, 'journal') SQL (1.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:18', 'isbn', 1, '9789810743734', 969085403, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085403, '142745dbafcf6eba19132f375094f255')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084804  (15.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:18', NULL, 969084804, 'test_bd', 'queued', '2015-02-24 17:01:18')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:18' WHERE `dispatched_services`.`id` = 4358  (14.5ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084804 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085403) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085403) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084804) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084804) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084804 AND `dispatched_services`.`id` = 4358 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:19', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084804, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4358  (15.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084804 LIMIT 1 DispatchedService Load (7.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085403 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085403) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084804 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (97.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085403 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084804  (14.6ms) COMMIT Completed 200 OK in 657ms (Views: 139.1ms | ActiveRecord: 152.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:01:19 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '647811b949744a37de62012c2af69ef0' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:01:19', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'format', 'book', 969085404, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'genre', 1, 'book', 969085404, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'author', 1, 'smith', 969085404, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'title', 1, 'some book', 969085404, 'Some Book')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:01:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085404, '647811b949744a37de62012c2af69ef0')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084805  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:19', NULL, 969084805, 'BorrowDirect', 'queued', '2015-02-24 17:01:19')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4359  (14.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084805 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085404) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085404) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084805) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084805) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084805 AND `dispatched_services`.`id` = 4359 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:19', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084805, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4359  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084805 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085404 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085404) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084805 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085404 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084805  (14.7ms) COMMIT Completed 200 OK in 240ms (Views: 20.2ms | ActiveRecord: 125.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:01:19 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69c6430f41054252cc3a08b7a330cc70' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:01:19', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'format', 'journal', 969085405, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'genre', 1, 'article', 969085405, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'title', 1, 'foo', 969085405, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'author', 1, 'bar', 969085405, 'bar')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:01:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085405, '69c6430f41054252cc3a08b7a330cc70')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084806  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:19', NULL, 969084806, 'BorrowDirect', 'queued', '2015-02-24 17:01:19')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4360  (15.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084806 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085405) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085405) ServiceResponse Load (3.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084806) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084806) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084806 AND `dispatched_services`.`id` = 4360 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4360  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084806 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085405 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085405) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084806 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085405 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084806  (14.5ms) COMMIT Completed 200 OK in 207ms (Views: 16.8ms | ActiveRecord: 116.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a300d67bf1fc541ab7442259727b87cf' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:01:19', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'format', 'book', 969085406, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'genre', 1, 'book', 969085406, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'title', 1, 'foo', 969085406, 'foo')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:01:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085406, 'a300d67bf1fc541ab7442259727b87cf')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084807 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:19', NULL, 969084807, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:01:19')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4361  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084807" for 127.0.0.1 at 2015-02-24 12:01:19 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084807"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084807 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085406 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085406)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084807  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084807 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084807 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084807 [["request_id", 969084807]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085406 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085406) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084807 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084807 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085406 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084807  (14.5ms) COMMIT Completed 200 OK in 74ms (Views: 19.3ms | ActiveRecord: 46.8ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43405091c06078b7088ee88915783bc5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:20', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'format', 'journal', 969085407, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'isbn', 1, '9789810743734', 969085407, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085407, '43405091c06078b7088ee88915783bc5')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084808  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:20', NULL, 969084808, 'BorrowDirect', 'queued', '2015-02-24 17:01:20')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4362  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085407) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084808) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084808) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`id` = 4362 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084808, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:20', 'Choose your delivery location', 969084808, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4362  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085407 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084808 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085407 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084808  (14.7ms) COMMIT Completed 200 OK in 254ms (Views: 25.4ms | ActiveRecord: 113.9ms) Started GET "/borrow_direct/BorrowDirect/969084808?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:01:20 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084808"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084808 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4362  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:20', 969084808, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085407 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407) Redirected to http://www.example.com/resolve?umlaut.request_id=969084808&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A20-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 52ms (ActiveRecord: 37.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (2.1ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4362  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016431  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084808&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A20-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:01:20 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084808", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:01:20-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085407 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407)  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084808  (15.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 [["request_id", 969084808]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085407 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084808 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085407 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084808  (19.5ms) COMMIT Completed 200 OK in 85ms (Views: 22.4ms | ActiveRecord: 53.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:01:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bba80f14d1dc9adc385578dad9df1356' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:20', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'format', 'journal', 969085408, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'isbn', 1, '0109836413', 969085408, '0109836413')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:01:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085408, 'bba80f14d1dc9adc385578dad9df1356')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084809  (18.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:20', NULL, 969084809, 'BorrowDirect', 'queued', '2015-02-24 17:01:20')  (16.0ms) COMMIT  (1.5ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4363  (24.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084809 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085408) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085408) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084809) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084809) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084809 AND `dispatched_services`.`id` = 4363 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084809, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:20', 'This item is not currently available from BorrowDirect', 969084809, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4363  (14.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084809 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085408 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085408) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084809 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085408 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084809  (14.4ms) COMMIT Completed 200 OK in 307ms (Views: 20.2ms | ActiveRecord: 130.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45875366c2db3893e87b9d9838300145' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:20', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'format', 'journal', 969085409, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'isbn', 1, '9789810743734', 969085409, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085409, '45875366c2db3893e87b9d9838300145')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084810  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:20', NULL, 969084810, 'BorrowDirect', 'queued', '2015-02-24 17:01:20')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4364  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085409) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084810) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084810) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`id` = 4364 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084810, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:20', 'Choose your delivery location', 969084810, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4364  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085409 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084810 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085409 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084810  (14.6ms) COMMIT Completed 200 OK in 254ms (Views: 23.6ms | ActiveRecord: 115.7ms) Started GET "/borrow_direct/BorrowDirect/969084810?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:01:21 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084810"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084810 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4364  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:21', 969084810, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085409 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409) Redirected to http://www.example.com/resolve?umlaut.request_id=969084810&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 56ms (ActiveRecord: 40.5ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4364  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016436  (17.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084810&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:01:21 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084810", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:01:21-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085409 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084810  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 [["request_id", 969084810]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085409 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084810 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085409 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084810  (14.6ms) COMMIT Completed 200 OK in 73ms (Views: 18.3ms | ActiveRecord: 45.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '721a1067a00841087e0587fa417b33d0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:21', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:21', 'format', 'journal', 969085410, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:21', 'isbn', 1, '9789810743734', 969085410, '9789810743734')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085410, '721a1067a00841087e0587fa417b33d0')  (25.0ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084811  (24.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:21', NULL, 969084811, 'BorrowDirect', 'queued', '2015-02-24 17:01:21')  (26.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4365  (16.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084811 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085410) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085410) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084811) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084811) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084811 AND `dispatched_services`.`id` = 4365 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (2.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084811, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:21', 'Choose your delivery location', 969084811, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4365  (15.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084811 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085410 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085410) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084811 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084811 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085410 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084811  (14.6ms) COMMIT Completed 200 OK in 340ms (Views: 22.2ms | ActiveRecord: 150.1ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53318ae648a93f2bea5b927e43d2d31f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:21', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:21', 'format', 'journal', 969085411, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:21', 'isbn', 1, '9789810743734', 969085411, '9789810743734')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085411, '53318ae648a93f2bea5b927e43d2d31f')  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084812  (15.4ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:21', NULL, 969084812, 'BorrowDirect', 'queued', '2015-02-24 17:01:21')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4366  (16.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085411) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084812) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084812) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (26.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`id` = 4366 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084812, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (23.0ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:21', 'Choose your delivery location', 969084812, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4366  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085411 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084812 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085411 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084812  (16.2ms) COMMIT Completed 200 OK in 281ms (Views: 21.9ms | ActiveRecord: 122.1ms) Started GET "/borrow_direct/BorrowDirect/969084812" for 127.0.0.1 at 2015-02-24 12:01:21 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084812"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084812 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:21', 969084812, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085411 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411) Redirected to http://www.example.com/resolve?umlaut.request_id=969084812&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.0ms) Started GET "/resolve?umlaut.request_id=969084812&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:01:21 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084812", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:01:21-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085411 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084812  (14.6ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 [["request_id", 969084812]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085411 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084812 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085411 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084812  (14.3ms) COMMIT Completed 200 OK in 77ms (Views: 22.7ms | ActiveRecord: 45.4ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f8f7ec3c3ee39182d52332d6eda55fe' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:08', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'format', 'journal', 969085412, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'isbn', 1, '9789810743734', 969085412, '9789810743734')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085412, '9f8f7ec3c3ee39182d52332d6eda55fe')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084813  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:08', NULL, 969084813, 'test_bd', 'queued', '2015-02-24 17:02:08')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:08' WHERE `dispatched_services`.`id` = 4367  (14.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084813 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085412) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085412) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084813) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084813) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084813 AND `dispatched_services`.`id` = 4367 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084813, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:02:08' WHERE `dispatched_services`.`id` = 4367  (15.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084813 LIMIT 1 DispatchedService Load (7.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085412 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085412) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084813 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (36.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (101.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085412 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084813  (15.5ms) COMMIT Completed 200 OK in 655ms (Views: 144.0ms | ActiveRecord: 143.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:02:08 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9332dae96fbdc819117481e579f8cb44' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:08', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'format', 'book', 969085413, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'genre', 1, 'book', 969085413, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'author', 1, 'smith', 969085413, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'title', 1, 'some book', 969085413, 'Some Book')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:02:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085413, '9332dae96fbdc819117481e579f8cb44')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084814  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:08', NULL, 969084814, 'BorrowDirect', 'queued', '2015-02-24 17:02:08')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:08' WHERE `dispatched_services`.`id` = 4368  (14.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084814 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085413) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085413) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084814) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084814) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084814 AND `dispatched_services`.`id` = 4368 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084814, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4368  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084814 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085413 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085413) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084814 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085413 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084814  (14.7ms) COMMIT Completed 200 OK in 239ms (Views: 20.0ms | ActiveRecord: 125.2ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:02:09 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f3640b7f0e6e79063cee8e0535a2736' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:09', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'format', 'journal', 969085414, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'genre', 1, 'article', 969085414, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'title', 1, 'foo', 969085414, 'foo') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'author', 1, 'bar', 969085414, 'bar')  (15.3ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:02:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085414, '8f3640b7f0e6e79063cee8e0535a2736')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084815  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:09', NULL, 969084815, 'BorrowDirect', 'queued', '2015-02-24 17:02:09')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4369  (14.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084815 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085414) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085414) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084815) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084815) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084815 AND `dispatched_services`.`id` = 4369 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4369  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084815 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085414 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085414) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084815 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085414 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084815  (14.5ms) COMMIT Completed 200 OK in 206ms (Views: 17.0ms | ActiveRecord: 116.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c3d1efbd724e1eb6bec78d6c778cca0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:09', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'format', 'book', 969085415, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'genre', 1, 'book', 969085415, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'title', 1, 'foo', 969085415, 'foo')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:02:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085415, '0c3d1efbd724e1eb6bec78d6c778cca0')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084816 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:09', NULL, 969084816, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:02:09')  (16.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4370  (15.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084816" for 127.0.0.1 at 2015-02-24 12:02:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084816"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084816 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085415 LIMIT 1 ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085415)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084816  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084816 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084816 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084816 [["request_id", 969084816]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085415 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085415) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084816 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084816 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085415 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084816  (14.6ms) COMMIT Completed 200 OK in 74ms (Views: 18.6ms | ActiveRecord: 48.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d1eb97910ec15d5754cf0b11ef13e3a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:09', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'format', 'journal', 969085416, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'isbn', 1, '9789810743734', 969085416, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085416, '1d1eb97910ec15d5754cf0b11ef13e3a')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084817  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:09', NULL, 969084817, 'BorrowDirect', 'queued', '2015-02-24 17:02:09')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4371  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085416) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084817) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084817) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`id` = 4371 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084817, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:09', 'Choose your delivery location', 969084817, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4371  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085416 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084817 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085416 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084817  (15.0ms) COMMIT Completed 200 OK in 254ms (Views: 24.0ms | ActiveRecord: 114.2ms) Started GET "/borrow_direct/BorrowDirect/969084817?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:02:09 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084817"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084817 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4371  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:09', 969084817, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085416 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416) Redirected to http://www.example.com/resolve?umlaut.request_id=969084817&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 37.4ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4371  (15.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016446  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084817&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:02:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084817", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:02:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085416 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084817  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 [["request_id", 969084817]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085416 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084817 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085416 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084817  (14.5ms) COMMIT Completed 200 OK in 76ms (Views: 21.6ms | ActiveRecord: 45.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:02:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '677efb186859d181925cfd65fdffeb5e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:09', '0109836413') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'format', 'journal', 969085417, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'isbn', 1, '0109836413', 969085417, '0109836413')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:02:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085417, '677efb186859d181925cfd65fdffeb5e')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084818  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:10', NULL, 969084818, 'BorrowDirect', 'queued', '2015-02-24 17:02:10')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4372  (14.2ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084818 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085417) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085417) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084818) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084818) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084818 AND `dispatched_services`.`id` = 4372 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084818, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:10', 'This item is not currently available from BorrowDirect', 969084818, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4372  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084818 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085417 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085417) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084818 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085417 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084818  (14.5ms) COMMIT Completed 200 OK in 289ms (Views: 20.5ms | ActiveRecord: 113.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89021f7d3e177127cbb3342aa93e1052' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:10', '9789810743734') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'format', 'journal', 969085418, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'isbn', 1, '9789810743734', 969085418, '9789810743734')  (17.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085418, '89021f7d3e177127cbb3342aa93e1052')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084819  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:10', NULL, 969084819, 'BorrowDirect', 'queued', '2015-02-24 17:02:10')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4373  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085418) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084819) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084819) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`id` = 4373 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084819, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:10', 'Choose your delivery location', 969084819, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4373  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085418 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084819 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085418 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084819  (14.8ms) COMMIT Completed 200 OK in 257ms (Views: 22.1ms | ActiveRecord: 119.1ms) Started GET "/borrow_direct/BorrowDirect/969084819?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:02:10 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084819"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084819 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4373  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:10', 969084819, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085418 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418) Redirected to http://www.example.com/resolve?umlaut.request_id=969084819&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 46ms (ActiveRecord: 37.7ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4373  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016451  (14.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084819&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:02:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084819", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:02:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085418 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084819  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 [["request_id", 969084819]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085418 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084819 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085418 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084819  (14.2ms) COMMIT Completed 200 OK in 73ms (Views: 18.8ms | ActiveRecord: 44.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3c9684854c8f59c18ff474f1425b6ab' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:10', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'format', 'journal', 969085419, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'isbn', 1, '9789810743734', 969085419, '9789810743734')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085419, 'c3c9684854c8f59c18ff474f1425b6ab')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084820  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:10', NULL, 969084820, 'BorrowDirect', 'queued', '2015-02-24 17:02:10')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4374  (14.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084820 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085419) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085419) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084820) ORDER BY id ASC DispatchedService Load (42.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084820) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084820 AND `dispatched_services`.`id` = 4374 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084820, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:10', 'Choose your delivery location', 969084820, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4374  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084820 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085419 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085419) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084820 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084820 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085419 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084820  (15.0ms) COMMIT Completed 200 OK in 297ms (Views: 23.1ms | ActiveRecord: 118.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a23c9e4a41994229f05e2c209e1d0dde' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:11', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:11', 'format', 'journal', 969085420, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:11', 'isbn', 1, '9789810743734', 969085420, '9789810743734')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085420, 'a23c9e4a41994229f05e2c209e1d0dde')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084821  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:11', NULL, 969084821, 'BorrowDirect', 'queued', '2015-02-24 17:02:11')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:11' WHERE `dispatched_services`.`id` = 4375  (14.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085420) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084821) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084821) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`id` = 4375 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084821, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (18.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:11', 'Choose your delivery location', 969084821, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:11' WHERE `dispatched_services`.`id` = 4375  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085420 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084821 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085420 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084821  (15.2ms) COMMIT Completed 200 OK in 260ms (Views: 21.7ms | ActiveRecord: 115.5ms) Started GET "/borrow_direct/BorrowDirect/969084821" for 127.0.0.1 at 2015-02-24 12:02:11 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084821"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084821 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:11', 969084821, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.9ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085420 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420) Redirected to http://www.example.com/resolve?umlaut.request_id=969084821&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.7ms) Started GET "/resolve?umlaut.request_id=969084821&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:02:11 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084821", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:02:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085420 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084821  (14.2ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 [["request_id", 969084821]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085420 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084821 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085420 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084821  (14.9ms) COMMIT Completed 200 OK in 76ms (Views: 21.7ms | ActiveRecord: 45.3ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '289047c4ba8b79209265dbc6842e054d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:24', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:24', 'format', 'journal', 969085421, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:24', 'isbn', 1, '9789810743734', 969085421, '9789810743734')  (22.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085421, '289047c4ba8b79209265dbc6842e054d')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084822  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:24', NULL, 969084822, 'test_bd', 'queued', '2015-02-24 17:02:24')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:24' WHERE `dispatched_services`.`id` = 4376  (14.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084822 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085421) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085421) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084822) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084822) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084822 AND `dispatched_services`.`id` = 4376 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084822, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4376  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084822 LIMIT 1 DispatchedService Load (6.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085421 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085421) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084822 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (98.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085421 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084822  (16.5ms) COMMIT Completed 200 OK in 657ms (Views: 138.0ms | ActiveRecord: 154.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:02:25 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72c86184c245b601c286ab5c0d97d96c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:25', 'some book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'format', 'book', 969085422, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'genre', 1, 'book', 969085422, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'author', 1, 'smith', 969085422, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'title', 1, 'some book', 969085422, 'Some Book')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:02:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085422, '72c86184c245b601c286ab5c0d97d96c')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084823  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:25', NULL, 969084823, 'BorrowDirect', 'queued', '2015-02-24 17:02:25')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4377  (14.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084823 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085422) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085422) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084823) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084823) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084823 AND `dispatched_services`.`id` = 4377 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084823, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (17.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4377  (17.7ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084823 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085422 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085422) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084823 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085422 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084823  (15.4ms) COMMIT Completed 200 OK in 258ms (Views: 20.3ms | ActiveRecord: 127.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:02:25 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4190d1646216e35b5ced10a2c89eb3dd' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:25', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'format', 'journal', 969085423, 'journal') SQL (4.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'genre', 1, 'article', 969085423, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'title', 1, 'foo', 969085423, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'author', 1, 'bar', 969085423, 'bar')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:02:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085423, '4190d1646216e35b5ced10a2c89eb3dd')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084824  (25.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:25', NULL, 969084824, 'BorrowDirect', 'queued', '2015-02-24 17:02:25')  (34.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4378  (15.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084824 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085423) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085423) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084824) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084824) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084824 AND `dispatched_services`.`id` = 4378 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4378  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084824 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085423 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085423) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084824 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085423 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084824  (14.4ms) COMMIT Completed 200 OK in 250ms (Views: 20.3ms | ActiveRecord: 156.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7459e1c0d25bb9a492c2b159400b92fa' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:25', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'format', 'book', 969085424, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'genre', 1, 'book', 969085424, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'title', 1, 'foo', 969085424, 'foo')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:02:25', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085424, '7459e1c0d25bb9a492c2b159400b92fa')  (16.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084825 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:25', NULL, 969084825, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:02:25')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4379  (15.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084825" for 127.0.0.1 at 2015-02-24 12:02:25 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084825"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084825 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085424 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085424)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084825  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084825 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084825 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084825 [["request_id", 969084825]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085424 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085424) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084825 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084825 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085424 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084825  (15.0ms) COMMIT Completed 200 OK in 73ms (Views: 18.9ms | ActiveRecord: 46.8ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acb69ad25a1fb71bb40a9c2c82a0f398' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:26', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:26', 'format', 'journal', 969085425, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:26', 'isbn', 1, '9789810743734', 969085425, '9789810743734')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085425, 'acb69ad25a1fb71bb40a9c2c82a0f398')  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084826  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:26', NULL, 969084826, 'BorrowDirect', 'queued', '2015-02-24 17:02:26')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4380  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085425) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084826) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084826) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`id` = 4380 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084826, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:26', 'Choose your delivery location', 969084826, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4380  (15.0ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085425 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084826 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085425 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084826  (15.4ms) COMMIT Completed 200 OK in 257ms (Views: 24.7ms | ActiveRecord: 116.2ms) Started GET "/borrow_direct/BorrowDirect/969084826?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:02:26 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084826"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084826 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4380  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:26', 969084826, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (20.8ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085425 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425) Redirected to http://www.example.com/resolve?umlaut.request_id=969084826&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 56ms (ActiveRecord: 45.5ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4380  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016461  (14.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084826&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:02:26 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084826", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:02:26-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085425 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084826  (23.7ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 [["request_id", 969084826]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085425 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084826 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085425 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084826  (14.8ms) COMMIT Completed 200 OK in 87ms (Views: 22.0ms | ActiveRecord: 55.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:02:26 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b7d34b732ee422417e23c5f30eb194a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:26', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:26', 'format', 'journal', 969085426, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:26', 'isbn', 1, '0109836413', 969085426, '0109836413')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:02:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085426, '7b7d34b732ee422417e23c5f30eb194a')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084827  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:26', NULL, 969084827, 'BorrowDirect', 'queued', '2015-02-24 17:02:26')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4381  (15.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084827 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085426) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085426) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084827) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084827) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084827 AND `dispatched_services`.`id` = 4381 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (40.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084827, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:26', 'This item is not currently available from BorrowDirect', 969084827, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4381  (15.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084827 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085426 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085426) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084827 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da926cbb07fbbe11789f14e0c970f13e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:06', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:06', 'format', 'journal', 969085427, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:06', 'isbn', 1, '9789810743734', 969085427, '9789810743734')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085427, 'da926cbb07fbbe11789f14e0c970f13e')  (14.3ms) COMMIT  (4.1ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084828  (15.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:06', NULL, 969084828, 'test_bd', 'queued', '2015-02-24 17:03:06')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:06' WHERE `dispatched_services`.`id` = 4382  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084828 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085427) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085427) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084828) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084828) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084828 AND `dispatched_services`.`id` = 4382 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084828, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:03:06' WHERE `dispatched_services`.`id` = 4382  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084828 LIMIT 1 DispatchedService Load (7.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085427 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085427) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084828 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (36.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (97.8ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085427 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084828  (14.7ms) COMMIT Completed 200 OK in 642ms (Views: 139.0ms | ActiveRecord: 145.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:03:07 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2911b6f3c67a5644c17d9d9e30303ebd' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (2.7ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:07', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'format', 'book', 969085428, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'genre', 1, 'book', 969085428, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'author', 1, 'smith', 969085428, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'title', 1, 'some book', 969085428, 'Some Book')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:03:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085428, '2911b6f3c67a5644c17d9d9e30303ebd')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084829  (14.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:07', NULL, 969084829, 'BorrowDirect', 'queued', '2015-02-24 17:03:07')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4383  (14.1ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084829 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085428) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085428) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084829) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084829) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084829 AND `dispatched_services`.`id` = 4383 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084829, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4383  (14.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084829 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085428 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085428) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084829 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085428 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084829  (14.5ms) COMMIT Completed 200 OK in 243ms (Views: 20.4ms | ActiveRecord: 128.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:03:07 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2d92dc2a95defb2f7ce9cb4bc031134' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:07', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'format', 'journal', 969085429, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'genre', 1, 'article', 969085429, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'title', 1, 'foo', 969085429, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'author', 1, 'bar', 969085429, 'bar')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:03:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085429, 'b2d92dc2a95defb2f7ce9cb4bc031134')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084830  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:07', NULL, 969084830, 'BorrowDirect', 'queued', '2015-02-24 17:03:07')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4384  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084830 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085429) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085429) ServiceResponse Load (3.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084830) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084830) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084830 AND `dispatched_services`.`id` = 4384 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4384  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084830 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085429 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085429) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084830 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085429 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084830  (14.4ms) COMMIT Completed 200 OK in 205ms (Views: 17.4ms | ActiveRecord: 115.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2405a716efcba543f01bd112218438b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:07', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'format', 'book', 969085430, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'genre', 1, 'book', 969085430, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'title', 1, 'foo', 969085430, 'foo')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:03:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085430, 'b2405a716efcba543f01bd112218438b')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084831 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:07', NULL, 969084831, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:03:07')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4385  (17.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969084831" for 127.0.0.1 at 2015-02-24 12:03:07 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084831"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084831 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085430 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085430)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084831  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084831 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084831 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084831 [["request_id", 969084831]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085430 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085430) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084831 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084831 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085430 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084831  (14.8ms) COMMIT Completed 200 OK in 74ms (Views: 18.6ms | ActiveRecord: 47.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:07 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a1c7fd5a20d757fee75e7ad5223995e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:07', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'format', 'journal', 969085431, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'isbn', 1, '9789810743734', 969085431, '9789810743734')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085431, '0a1c7fd5a20d757fee75e7ad5223995e')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084832  (16.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:07', NULL, 969084832, 'BorrowDirect', 'queued', '2015-02-24 17:03:07')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4386  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085431) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084832) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084832) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`id` = 4386 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084832, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 'Choose your delivery location', 969084832, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4386  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085431 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084832 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085431 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084832  (14.6ms) COMMIT Completed 200 OK in 259ms (Views: 25.2ms | ActiveRecord: 117.5ms) Started GET "/borrow_direct/BorrowDirect/969084832?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:03:08 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084832"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084832 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4386  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 969084832, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (23.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085431 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431) Redirected to http://www.example.com/resolve?umlaut.request_id=969084832&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 62ms (ActiveRecord: 47.1ms) DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4386  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016468  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084832&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084832", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085431 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084832  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 [["request_id", 969084832]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085431 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084832 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085431 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084832  (16.8ms) COMMIT Completed 200 OK in 81ms (Views: 22.6ms | ActiveRecord: 49.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:03:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5ec85a7a3e3b4b4bbc6e98736abdf9d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:08', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:08', 'format', 'journal', 969085432, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:08', 'isbn', 1, '0109836413', 969085432, '0109836413')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:03:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085432, 'd5ec85a7a3e3b4b4bbc6e98736abdf9d')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084833  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:08', NULL, 969084833, 'BorrowDirect', 'queued', '2015-02-24 17:03:08')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4387  (15.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084833 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085432) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085432) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084833) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084833) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084833 AND `dispatched_services`.`id` = 4387 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084833, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 'This item is not currently available from BorrowDirect', 969084833, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4387  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084833 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085432 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085432) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084833 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085432 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084833  (14.5ms) COMMIT Completed 200 OK in 287ms (Views: 19.7ms | ActiveRecord: 113.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b14a8882c55b3d12501234d83094753' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:08', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:08', 'format', 'journal', 969085433, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:08', 'isbn', 1, '9789810743734', 969085433, '9789810743734')  (17.6ms) COMMIT  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085433, '2b14a8882c55b3d12501234d83094753')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084834  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:08', NULL, 969084834, 'BorrowDirect', 'queued', '2015-02-24 17:03:08')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4388  (14.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085433) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084834) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084834) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`id` = 4388 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084834, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 'Choose your delivery location', 969084834, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4388  (14.2ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085433 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084834 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085433 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084834  (14.5ms) COMMIT Completed 200 OK in 257ms (Views: 22.9ms | ActiveRecord: 118.4ms) Started GET "/borrow_direct/BorrowDirect/969084834?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:03:08 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084834"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084834 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4388  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 969084834, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.3ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085433 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433) Redirected to http://www.example.com/resolve?umlaut.request_id=969084834&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 54ms (ActiveRecord: 38.7ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4388  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016473  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084834&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:08 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084834", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085433 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084834  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 [["request_id", 969084834]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085433 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084834 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085433 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084834  (14.3ms) COMMIT Completed 200 OK in 73ms (Views: 18.3ms | ActiveRecord: 45.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c218bed2b499ce62fdcda74bf6d752c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:09', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:09', 'format', 'journal', 969085434, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:09', 'isbn', 1, '9789810743734', 969085434, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085434, '5c218bed2b499ce62fdcda74bf6d752c')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084835  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:09', NULL, 969084835, 'BorrowDirect', 'queued', '2015-02-24 17:03:09')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:09' WHERE `dispatched_services`.`id` = 4389  (14.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084835 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085434) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085434) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084835) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084835) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084835 AND `dispatched_services`.`id` = 4389 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084835, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:09', 'Choose your delivery location', 969084835, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:09' WHERE `dispatched_services`.`id` = 4389  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084835 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085434 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085434) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084835 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084835 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085434 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084835  (14.3ms) COMMIT Completed 200 OK in 294ms (Views: 22.9ms | ActiveRecord: 114.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '515bdb2b9ba00bc5cc0693352e46c383' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:09', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:09', 'format', 'journal', 969085435, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:09', 'isbn', 1, '9789810743734', 969085435, '9789810743734')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085435, '515bdb2b9ba00bc5cc0693352e46c383')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084836  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:09', NULL, 969084836, 'BorrowDirect', 'queued', '2015-02-24 17:03:09')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:09' WHERE `dispatched_services`.`id` = 4390  (15.4ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085435) ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084836) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084836) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`id` = 4390 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084836, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:09', 'Choose your delivery location', 969084836, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:09' WHERE `dispatched_services`.`id` = 4390  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085435 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084836 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085435 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084836  (16.6ms) COMMIT Completed 200 OK in 257ms (Views: 22.1ms | ActiveRecord: 117.6ms) Started GET "/borrow_direct/BorrowDirect/969084836" for 127.0.0.1 at 2015-02-24 12:03:09 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084836"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084836 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:09', 969084836, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085435 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435) Redirected to http://www.example.com/resolve?umlaut.request_id=969084836&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.5ms) Started GET "/resolve?umlaut.request_id=969084836&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084836", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085435 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084836  (14.5ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 [["request_id", 969084836]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085435 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084836 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085435 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084836  (14.4ms) COMMIT Completed 200 OK in 77ms (Views: 23.1ms | ActiveRecord: 45.3ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '73200e6ba1b6284f7aa2961ea0a5aa59' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:50', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'format', 'journal', 969085436, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'isbn', 1, '9789810743734', 969085436, '9789810743734')  (22.2ms) COMMIT  (0.7ms) BEGIN SQL (3.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085436, '73200e6ba1b6284f7aa2961ea0a5aa59')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084837  (15.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:50', NULL, 969084837, 'test_bd', 'queued', '2015-02-24 17:03:50')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:50' WHERE `dispatched_services`.`id` = 4391  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084837 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085436) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085436) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084837) ORDER BY id ASC DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084837) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084837 AND `dispatched_services`.`id` = 4391 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (2.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084837, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:03:50' WHERE `dispatched_services`.`id` = 4391  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084837 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085436 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085436) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084837 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (97.4ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085436 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084837  (14.1ms) COMMIT Completed 200 OK in 661ms (Views: 139.1ms | ActiveRecord: 148.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:03:50 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21ab9f190b5b636f1049421a13b997e5' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:50', 'some book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'format', 'book', 969085437, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'genre', 1, 'book', 969085437, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'author', 1, 'smith', 969085437, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'title', 1, 'some book', 969085437, 'Some Book')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:03:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085437, '21ab9f190b5b636f1049421a13b997e5')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084838  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:50', NULL, 969084838, 'BorrowDirect', 'queued', '2015-02-24 17:03:50')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:50' WHERE `dispatched_services`.`id` = 4392  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084838 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085437) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085437) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084838) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084838) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084838 AND `dispatched_services`.`id` = 4392 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084838, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (13.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:50' WHERE `dispatched_services`.`id` = 4392  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084838 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085437 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085437) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084838 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085437 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (28.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084838  (14.9ms) COMMIT Completed 200 OK in 261ms (Views: 20.0ms | ActiveRecord: 149.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:03:51 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94b9eb857d0b5952a68f201bb219cd47' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:51', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'format', 'journal', 969085438, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'genre', 1, 'article', 969085438, 'article') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'title', 1, 'foo', 969085438, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'author', 1, 'bar', 969085438, 'bar')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:03:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085438, '94b9eb857d0b5952a68f201bb219cd47')  (15.1ms) COMMIT  (1.1ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084839  (14.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:51', NULL, 969084839, 'BorrowDirect', 'queued', '2015-02-24 17:03:51')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4393  (13.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084839 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085438) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085438) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084839) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084839) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084839 AND `dispatched_services`.`id` = 4393 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4393  (14.0ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084839 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085438 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085438) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084839 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085438 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084839  (14.3ms) COMMIT Completed 200 OK in 208ms (Views: 18.2ms | ActiveRecord: 116.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd65b7a38a22ebd908f068dc73f0a949b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:51', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'format', 'book', 969085439, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'genre', 1, 'book', 969085439, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'title', 1, 'foo', 969085439, 'foo')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:03:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085439, 'd65b7a38a22ebd908f068dc73f0a949b')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084840 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:51', NULL, 969084840, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:03:51')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4394  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084840" for 127.0.0.1 at 2015-02-24 12:03:51 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084840"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084840 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085439 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085439)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084840  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084840 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084840 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084840 [["request_id", 969084840]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085439 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085439) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084840 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084840 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085439 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084840  (14.0ms) COMMIT Completed 200 OK in 75ms (Views: 19.4ms | ActiveRecord: 48.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5facb802150df28fa0d8f6926fdeee6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:51', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'format', 'journal', 969085440, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'isbn', 1, '9789810743734', 969085440, '9789810743734')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085440, 'c5facb802150df28fa0d8f6926fdeee6')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084841  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:51', NULL, 969084841, 'BorrowDirect', 'queued', '2015-02-24 17:03:51')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4395  (14.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085440) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440) ServiceResponse Load (3.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084841) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084841) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`id` = 4395 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084841, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:51', 'Choose your delivery location', 969084841, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4395  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085440 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084841 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085440 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084841  (14.6ms) COMMIT Completed 200 OK in 258ms (Views: 26.4ms | ActiveRecord: 115.1ms) Started GET "/borrow_direct/BorrowDirect/969084841?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:03:51 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084841"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084841 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4395  (16.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:51', 969084841, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085440 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440) Redirected to http://www.example.com/resolve?umlaut.request_id=969084841&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 41.1ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4395  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016483  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084841&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:51 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084841", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:51-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085440 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440)  (0.7ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084841  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 [["request_id", 969084841]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085440 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084841 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085440 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084841  (14.9ms) COMMIT Completed 200 OK in 79ms (Views: 22.5ms | ActiveRecord: 47.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:03:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e863841fe57396f7cf7a04d4a8490d05' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:51', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'format', 'journal', 969085441, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'isbn', 1, '0109836413', 969085441, '0109836413')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:03:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085441, 'e863841fe57396f7cf7a04d4a8490d05')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084842  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:51', NULL, 969084842, 'BorrowDirect', 'queued', '2015-02-24 17:03:51')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (39.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4396  (14.3ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084842 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085441) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085441) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084842) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084842) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084842 AND `dispatched_services`.`id` = 4396 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084842, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:52', 'This item is not currently available from BorrowDirect', 969084842, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4396  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084842 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085441 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085441) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084842 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (27.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (28.4ms) Completed 500 Internal Server Error in 285ms ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd88f0054be335d528dc7aa46e9a7a7d8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:52', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'format', 'journal', 969085442, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'isbn', 1, '9789810743734', 969085442, '9789810743734')  (15.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085442, 'd88f0054be335d528dc7aa46e9a7a7d8')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084843  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:52', NULL, 969084843, 'BorrowDirect', 'queued', '2015-02-24 17:03:52')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4397  (14.0ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085442) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084843) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084843) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`id` = 4397 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084843, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.1ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:52', 'Choose your delivery location', 969084843, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4397  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085442 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084843 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085442 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084843  (14.3ms) COMMIT Completed 200 OK in 253ms (Views: 22.2ms | ActiveRecord: 115.3ms) Started GET "/borrow_direct/BorrowDirect/969084843?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:03:52 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084843"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084843 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4397  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:52', 969084843, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085442 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442) Redirected to http://www.example.com/resolve?umlaut.request_id=969084843&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.7ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4397  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016488  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084843&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:52 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084843", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:52-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085442 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084843  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 [["request_id", 969084843]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085442 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084843 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085442 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084843  (14.4ms) COMMIT Completed 200 OK in 74ms (Views: 19.1ms | ActiveRecord: 45.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3396a824685bcd2628e7f486cb3e358' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:52', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'format', 'journal', 969085443, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'isbn', 1, '9789810743734', 969085443, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085443, 'b3396a824685bcd2628e7f486cb3e358')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084844  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:52', NULL, 969084844, 'BorrowDirect', 'queued', '2015-02-24 17:03:52')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4398  (14.3ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084844 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085443) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085443) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084844) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084844) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084844 AND `dispatched_services`.`id` = 4398 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084844, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:52', 'Choose your delivery location', 969084844, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4398  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084844 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085443 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085443) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084844 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084844 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085443 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084844  (14.3ms) COMMIT Completed 200 OK in 252ms (Views: 22.2ms | ActiveRecord: 113.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '512a01518d50476f108212400a00090b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:52', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'format', 'journal', 969085444, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'isbn', 1, '9789810743734', 969085444, '9789810743734')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085444, '512a01518d50476f108212400a00090b')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084845  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:53', NULL, 969084845, 'BorrowDirect', 'queued', '2015-02-24 17:03:53')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:53' WHERE `dispatched_services`.`id` = 4399  (14.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085444) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084845) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084845) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`id` = 4399 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084845, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:53', 'Choose your delivery location', 969084845, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:53' WHERE `dispatched_services`.`id` = 4399  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085444 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084845 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085444 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084845  (14.3ms) COMMIT Completed 200 OK in 254ms (Views: 22.9ms | ActiveRecord: 114.5ms) Started GET "/borrow_direct/BorrowDirect/969084845" for 127.0.0.1 at 2015-02-24 12:03:53 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084845"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084845 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:53', 969084845, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085444 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444) Redirected to http://www.example.com/resolve?umlaut.request_id=969084845&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 20.7ms) Started GET "/resolve?umlaut.request_id=969084845&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:53 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084845", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:53-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085444 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084845  (14.4ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 [["request_id", 969084845]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085444 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084845 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085444 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084845  (14.1ms) COMMIT Completed 200 OK in 78ms (Views: 24.0ms | ActiveRecord: 44.7ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5b433ae983a5306da48950b1fec159f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:11', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'format', 'journal', 969085445, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'isbn', 1, '9789810743734', 969085445, '9789810743734')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085445, 'c5b433ae983a5306da48950b1fec159f')  (17.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084846  (14.8ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:11', NULL, 969084846, 'test_bd', 'queued', '2015-02-24 17:04:11')  (20.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4400  (15.0ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084846 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085445) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085445) ServiceResponse Load (3.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084846) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084846) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084846 AND `dispatched_services`.`id` = 4400 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084846, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4400  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084846 LIMIT 1 DispatchedService Load (6.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085445 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085445) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084846 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (98.5ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085445 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084846  (15.3ms) COMMIT Completed 200 OK in 650ms (Views: 138.9ms | ActiveRecord: 153.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:04:11 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '590a770e462586fb54ea84645a430506' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:04:11', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'format', 'book', 969085446, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'genre', 1, 'book', 969085446, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'author', 1, 'smith', 969085446, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'title', 1, 'some book', 969085446, 'Some Book')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:04:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085446, '590a770e462586fb54ea84645a430506')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084847  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:11', NULL, 969084847, 'BorrowDirect', 'queued', '2015-02-24 17:04:11')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4401  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084847 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085446) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085446) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084847) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084847) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084847 AND `dispatched_services`.`id` = 4401 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084847, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.7ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4401  (14.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084847 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085446 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085446) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084847 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085446 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084847  (14.2ms) COMMIT Completed 200 OK in 240ms (Views: 20.1ms | ActiveRecord: 124.0ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:04:11 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7d88d9fa9fa462e44b29716448be681' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:04:11', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'format', 'journal', 969085447, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'genre', 1, 'article', 969085447, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'title', 1, 'foo', 969085447, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'author', 1, 'bar', 969085447, 'bar')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:04:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085447, 'e7d88d9fa9fa462e44b29716448be681')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084848  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:11', NULL, 969084848, 'BorrowDirect', 'queued', '2015-02-24 17:04:11')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4402  (14.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084848 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085447) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085447) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084848) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084848) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084848 AND `dispatched_services`.`id` = 4402 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4402  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084848 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085447 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085447) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (6.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084848 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085447 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084848  (14.3ms) COMMIT Completed 200 OK in 209ms (Views: 17.8ms | ActiveRecord: 119.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0dc4e13decd0cf1f76685f67d29fc566' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:04:12', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'format', 'book', 969085448, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'genre', 1, 'book', 969085448, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'title', 1, 'foo', 969085448, 'foo')  (16.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:04:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085448, '0dc4e13decd0cf1f76685f67d29fc566')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084849 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:12', NULL, 969084849, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:04:12')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4403  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084849" for 127.0.0.1 at 2015-02-24 12:04:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084849"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084849 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085448 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085448)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084849  (15.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084849 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084849 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084849 [["request_id", 969084849]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085448 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085448) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084849 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084849 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085448 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084849  (14.3ms) COMMIT Completed 200 OK in 74ms (Views: 19.0ms | ActiveRecord: 47.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbddac98828c53365ea6963b0f950c37' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:12', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'format', 'journal', 969085449, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'isbn', 1, '9789810743734', 969085449, '9789810743734')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085449, 'bbddac98828c53365ea6963b0f950c37')  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084850  (14.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:12', NULL, 969084850, 'BorrowDirect', 'queued', '2015-02-24 17:04:12')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4404  (14.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085449) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084850) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084850) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`id` = 4404 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084850, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:12', 'Choose your delivery location', 969084850, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4404  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085449 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084850 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085449 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084850  (14.3ms) COMMIT Completed 200 OK in 259ms (Views: 24.7ms | ActiveRecord: 119.3ms) Started GET "/borrow_direct/BorrowDirect/969084850?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:04:12 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084850"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084850 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4404  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:12', 969084850, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085449 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449) Redirected to http://www.example.com/resolve?umlaut.request_id=969084850&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 38.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4404  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016498  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084850&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:04:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084850", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:04:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085449 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084850  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 [["request_id", 969084850]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085449 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084850 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085449 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084850  (14.5ms) COMMIT Completed 200 OK in 76ms (Views: 22.3ms | ActiveRecord: 44.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:04:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f073ec6f30d9c7e75bad4cb1a2d78b10' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:12', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'format', 'journal', 969085450, 'journal') SQL (4.7ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'isbn', 1, '0109836413', 969085450, '0109836413')  (15.3ms) COMMIT  (2.2ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:04:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085450, 'f073ec6f30d9c7e75bad4cb1a2d78b10')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084851  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:12', NULL, 969084851, 'BorrowDirect', 'queued', '2015-02-24 17:04:12')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4405  (14.4ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084851 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085450) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085450) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084851) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084851) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084851 AND `dispatched_services`.`id` = 4405 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084851, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:12', 'This item is not currently available from BorrowDirect', 969084851, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4405  (14.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084851 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085450 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085450) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084851 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085450 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084851  (14.4ms) COMMIT Completed 200 OK in 297ms (Views: 20.6ms | ActiveRecord: 120.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db0f4db78724824d1d6a559e7d9b687e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:13', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'format', 'journal', 969085451, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'isbn', 1, '9789810743734', 969085451, '9789810743734')  (16.9ms) COMMIT  (1.2ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085451, 'db0f4db78724824d1d6a559e7d9b687e')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084852  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:13', NULL, 969084852, 'BorrowDirect', 'queued', '2015-02-24 17:04:13')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4406  (14.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085451) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084852) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084852) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`id` = 4406 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084852, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:13', 'Choose your delivery location', 969084852, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4406  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085451 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084852 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085451 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084852  (14.6ms) COMMIT Completed 200 OK in 262ms (Views: 21.5ms | ActiveRecord: 117.1ms) Started GET "/borrow_direct/BorrowDirect/969084852?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:04:13 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084852"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084852 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4406  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:13', 969084852, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (13.9ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085451 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451) Redirected to http://www.example.com/resolve?umlaut.request_id=969084852&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 37.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4406  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016503  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084852&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:04:13 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084852", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:04:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085451 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084852  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 [["request_id", 969084852]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085451 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084852 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085451 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084852  (21.1ms) COMMIT Completed 200 OK in 81ms (Views: 19.1ms | ActiveRecord: 51.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '06b610b53b3f167dfe8a8bcec53beb50' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:13', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'format', 'journal', 969085452, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'isbn', 1, '9789810743734', 969085452, '9789810743734')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085452, '06b610b53b3f167dfe8a8bcec53beb50')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084853  (17.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:13', NULL, 969084853, 'BorrowDirect', 'queued', '2015-02-24 17:04:13')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4407  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084853 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085452) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085452) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084853) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084853) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084853 AND `dispatched_services`.`id` = 4407 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084853, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:13', 'Choose your delivery location', 969084853, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4407  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084853 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085452 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085452) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084853 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084853 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085452 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084853  (14.5ms) COMMIT Completed 200 OK in 308ms (Views: 23.8ms | ActiveRecord: 121.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f23dfb88f028e98d5add8b9094b84ea' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:13', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'format', 'journal', 969085453, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'isbn', 1, '9789810743734', 969085453, '9789810743734')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085453, '0f23dfb88f028e98d5add8b9094b84ea')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084854  (18.3ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:13', NULL, 969084854, 'BorrowDirect', 'queued', '2015-02-24 17:04:13')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4408  (18.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085453) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453) ServiceResponse Load (3.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084854) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084854) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`id` = 4408 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084854, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:13', 'Choose your delivery location', 969084854, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (17.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:14' WHERE `dispatched_services`.`id` = 4408  (16.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085453 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084854 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085453 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084854  (22.2ms) COMMIT Completed 200 OK in 279ms (Views: 21.0ms | ActiveRecord: 136.1ms) Started GET "/borrow_direct/BorrowDirect/969084854" for 127.0.0.1 at 2015-02-24 12:04:14 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084854"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084854 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:14', 969084854, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085453 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453) Redirected to http://www.example.com/resolve?umlaut.request_id=969084854&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.1ms) Started GET "/resolve?umlaut.request_id=969084854&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:04:14 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084854", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:04:14-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085453 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084854  (14.6ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 [["request_id", 969084854]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085453 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084854 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085453 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084854  (14.3ms) COMMIT Completed 200 OK in 76ms (Views: 22.4ms | ActiveRecord: 45.2ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:58 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f11f0e3ab20b49666fdb59206e637af' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:59', '9789810743734') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'format', 'journal', 969085454, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'isbn', 1, '9789810743734', 969085454, '9789810743734')  (16.2ms) COMMIT  (1.1ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085454, '4f11f0e3ab20b49666fdb59206e637af')  (19.4ms) COMMIT  (1.0ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084855  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:59', NULL, 969084855, 'test_bd', 'queued', '2015-02-24 17:04:59')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:59' WHERE `dispatched_services`.`id` = 4409  (14.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084855 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085454) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085454) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084855) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084855) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (29.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084855 AND `dispatched_services`.`id` = 4409 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084855, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (18.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:04:59' WHERE `dispatched_services`.`id` = 4409  (17.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084855 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085454 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085454) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (5.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084855 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (99.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085454 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084855  (14.3ms) COMMIT Completed 200 OK in 669ms (Views: 139.6ms | ActiveRecord: 151.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:04:59 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dcf8e02dbac8d529488e00f9c9a5cca5' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:04:59', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'format', 'book', 969085455, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'genre', 1, 'book', 969085455, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'author', 1, 'smith', 969085455, 'Smith') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'title', 1, 'some book', 969085455, 'Some Book')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:04:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085455, 'dcf8e02dbac8d529488e00f9c9a5cca5')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084856  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:59', NULL, 969084856, 'BorrowDirect', 'queued', '2015-02-24 17:04:59')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:59' WHERE `dispatched_services`.`id` = 4410  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084856 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085455) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085455) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084856) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084856) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084856 AND `dispatched_services`.`id` = 4410 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084856, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:59' WHERE `dispatched_services`.`id` = 4410  (18.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084856 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085455 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085455) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084856 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085455 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084856  (17.8ms) COMMIT Completed 200 OK in 253ms (Views: 20.3ms | ActiveRecord: 133.2ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:05:00 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '009bb498d16d3847bea89be8ad771140' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:00', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'format', 'journal', 969085456, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'genre', 1, 'article', 969085456, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'title', 1, 'foo', 969085456, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'author', 1, 'bar', 969085456, 'bar')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:05:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085456, '009bb498d16d3847bea89be8ad771140')  (18.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084857  (16.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:00', NULL, 969084857, 'BorrowDirect', 'queued', '2015-02-24 17:05:00')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4411  (14.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084857 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085456) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085456) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084857) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084857) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084857 AND `dispatched_services`.`id` = 4411 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4411  (15.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084857 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085456 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085456) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084857 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085456 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084857  (14.4ms) COMMIT Completed 200 OK in 214ms (Views: 18.5ms | ActiveRecord: 122.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ada57951b5502b732f577a78f75e162e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:00', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'format', 'book', 969085457, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'genre', 1, 'book', 969085457, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'title', 1, 'foo', 969085457, 'foo')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:05:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085457, 'ada57951b5502b732f577a78f75e162e')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084858 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:00', NULL, 969084858, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:05:00')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4412  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084858" for 127.0.0.1 at 2015-02-24 12:05:00 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084858"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084858 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085457 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085457)  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084858  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084858 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084858 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084858 [["request_id", 969084858]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085457 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085457) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084858 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084858 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085457 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084858  (14.9ms) COMMIT Completed 200 OK in 74ms (Views: 18.0ms | ActiveRecord: 48.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:00 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ca0643904941755ca9209b58407219d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:00', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'format', 'journal', 969085458, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'isbn', 1, '9789810743734', 969085458, '9789810743734')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085458, '4ca0643904941755ca9209b58407219d')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084859  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:00', NULL, 969084859, 'BorrowDirect', 'queued', '2015-02-24 17:05:00')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4413  (17.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085458) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084859) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084859) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`id` = 4413 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084859, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:00', 'Choose your delivery location', 969084859, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4413  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085458 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084859 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085458 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084859  (15.3ms) COMMIT Completed 200 OK in 260ms (Views: 24.4ms | ActiveRecord: 119.7ms) Started GET "/borrow_direct/BorrowDirect/969084859?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:05:00 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084859"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084859 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4413  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:00', 969084859, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085458 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458) Redirected to http://www.example.com/resolve?umlaut.request_id=969084859&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 37.9ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4413  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016513  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084859&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:00 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084859", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:00-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085458 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084859  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 [["request_id", 969084859]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085458 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084859 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085458 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084859  (14.9ms) COMMIT Completed 200 OK in 77ms (Views: 22.2ms | ActiveRecord: 45.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:05:00 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0848894492b92cfee467a6d66ee3f402' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:00', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'format', 'journal', 969085459, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'isbn', 1, '0109836413', 969085459, '0109836413')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:05:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085459, '0848894492b92cfee467a6d66ee3f402')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084860  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:01', NULL, 969084860, 'BorrowDirect', 'queued', '2015-02-24 17:05:01')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4414  (16.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084860 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085459) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085459) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084860) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084860) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084860 AND `dispatched_services`.`id` = 4414 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084860, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:01', 'This item is not currently available from BorrowDirect', 969084860, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4414  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084860 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085459 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085459) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084860 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085459 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084860  (15.2ms) COMMIT Completed 200 OK in 294ms (Views: 19.5ms | ActiveRecord: 116.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '415cc1ab681af3e3f61600267a0adebb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:01', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:01', 'format', 'journal', 969085460, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:01', 'isbn', 1, '9789810743734', 969085460, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085460, '415cc1ab681af3e3f61600267a0adebb')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084861  (14.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:01', NULL, 969084861, 'BorrowDirect', 'queued', '2015-02-24 17:05:01')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4415  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085460) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084861) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084861) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`id` = 4415 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084861, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:01', 'Choose your delivery location', 969084861, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4415  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085460 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084861 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085460 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084861  (14.6ms) COMMIT Completed 200 OK in 251ms (Views: 21.2ms | ActiveRecord: 114.1ms) Started GET "/borrow_direct/BorrowDirect/969084861?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:05:01 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084861"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084861 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4415  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:01', 969084861, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085460 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460) Redirected to http://www.example.com/resolve?umlaut.request_id=969084861&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 54ms (ActiveRecord: 39.4ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4415  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016518  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084861&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:01 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084861", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:01-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085460 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084861  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 [["request_id", 969084861]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085460 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084861 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085460 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084861  (14.6ms) COMMIT Completed 200 OK in 72ms (Views: 18.1ms | ActiveRecord: 45.1ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c1c81322be76b81ad7e314028a7fb1f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:01', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:01', 'format', 'journal', 969085461, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:01', 'isbn', 1, '9789810743734', 969085461, '9789810743734')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085461, '5c1c81322be76b81ad7e314028a7fb1f')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084862  (15.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:01', NULL, 969084862, 'BorrowDirect', 'queued', '2015-02-24 17:05:01')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4416  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084862 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085461) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085461) ServiceResponse Load (3.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084862) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084862) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084862 AND `dispatched_services`.`id` = 4416 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084862, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:01', 'Choose your delivery location', 969084862, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4416  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084862 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085461 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085461) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084862 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084862 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085461 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084862  (14.7ms) COMMIT Completed 200 OK in 295ms (Views: 21.4ms | ActiveRecord: 115.5ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cdae772f520a239b136486614d103b26' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:02', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:02', 'format', 'journal', 969085462, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:02', 'isbn', 1, '9789810743734', 969085462, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085462, 'cdae772f520a239b136486614d103b26')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084863  (15.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:02', NULL, 969084863, 'BorrowDirect', 'queued', '2015-02-24 17:05:02')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:02' WHERE `dispatched_services`.`id` = 4417  (14.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085462) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084863) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084863) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`id` = 4417 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084863, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:02', 'Choose your delivery location', 969084863, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:02' WHERE `dispatched_services`.`id` = 4417  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085462 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084863 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085462 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084863  (15.3ms) COMMIT Completed 200 OK in 254ms (Views: 22.1ms | ActiveRecord: 115.7ms) Started GET "/borrow_direct/BorrowDirect/969084863" for 127.0.0.1 at 2015-02-24 12:05:02 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084863"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084863 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:02', 969084863, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085462 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462) Redirected to http://www.example.com/resolve?umlaut.request_id=969084863&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.0ms) Started GET "/resolve?umlaut.request_id=969084863&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:02 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084863", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:02-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085462 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084863  (14.9ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 [["request_id", 969084863]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085462 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084863 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085462 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084863  (14.2ms) COMMIT Completed 200 OK in 77ms (Views: 22.1ms | ActiveRecord: 46.5ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:45 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebfb3241587f6a4a1db6cb54cad2ff31' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:45', '9789810743734') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:45', 'format', 'journal', 969085463, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:45', 'isbn', 1, '9789810743734', 969085463, '9789810743734')  (15.5ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085463, 'ebfb3241587f6a4a1db6cb54cad2ff31')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084864  (14.2ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:45', NULL, 969084864, 'test_bd', 'queued', '2015-02-24 17:05:45')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:45' WHERE `dispatched_services`.`id` = 4418  (14.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084864 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085463) ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085463) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084864) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084864) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084864 AND `dispatched_services`.`id` = 4418 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084864, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4418  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084864 LIMIT 1 DispatchedService Load (6.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms) Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085463 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085463) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084864 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (31.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (101.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085463 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084864  (14.7ms) COMMIT Completed 200 OK in 642ms (Views: 139.3ms | ActiveRecord: 143.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:05:46 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba72625a0c6623e36c2e09343012a427' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.8ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:46', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'format', 'book', 969085464, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'genre', 1, 'book', 969085464, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'author', 1, 'smith', 969085464, 'Smith') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'title', 1, 'some book', 969085464, 'Some Book')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:05:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085464, 'ba72625a0c6623e36c2e09343012a427')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084865  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:46', NULL, 969084865, 'BorrowDirect', 'queued', '2015-02-24 17:05:46')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4419  (16.5ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084865 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085464) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085464) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084865) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084865) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084865 AND `dispatched_services`.`id` = 4419 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (2.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084865, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (15.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4419  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084865 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085464 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085464) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084865 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085464 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084865  (15.7ms) COMMIT Completed 200 OK in 252ms (Views: 20.2ms | ActiveRecord: 134.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:05:46 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7aab9969b4576c5bdb0c43d59f35659d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:46', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'format', 'journal', 969085465, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'genre', 1, 'article', 969085465, 'article') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'title', 1, 'foo', 969085465, 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'author', 1, 'bar', 969085465, 'bar')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:05:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085465, '7aab9969b4576c5bdb0c43d59f35659d')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084866  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:46', NULL, 969084866, 'BorrowDirect', 'queued', '2015-02-24 17:05:46')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4420  (14.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084866 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085465) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085465) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084866) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084866) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084866 AND `dispatched_services`.`id` = 4420 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4420  (14.5ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084866 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085465 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085465) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084866 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085465 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084866  (14.6ms) COMMIT Completed 200 OK in 207ms (Views: 18.5ms | ActiveRecord: 115.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ebfadc918a11a8274c3ebbb47051356' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:46', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'format', 'book', 969085466, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'genre', 1, 'book', 969085466, 'book') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'title', 1, 'foo', 969085466, 'foo')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:05:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085466, '7ebfadc918a11a8274c3ebbb47051356')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084867 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:46', NULL, 969084867, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:05:46')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4421  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084867" for 127.0.0.1 at 2015-02-24 12:05:46 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084867"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084867 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085466 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085466)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084867  (14.4ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084867 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084867 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084867 [["request_id", 969084867]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085466 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085466) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084867 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084867 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085466 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084867  (15.8ms) COMMIT Completed 200 OK in 74ms (Views: 18.6ms | ActiveRecord: 48.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:47 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1519c65027c15d0a1f2f211704e277dd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:47', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'format', 'journal', 969085467, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'isbn', 1, '9789810743734', 969085467, '9789810743734')  (32.3ms) COMMIT  (0.6ms) BEGIN SQL (3.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085467, '1519c65027c15d0a1f2f211704e277dd')  (24.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084868  (29.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:47', NULL, 969084868, 'BorrowDirect', 'queued', '2015-02-24 17:05:47')  (23.0ms) COMMIT  (0.7ms) BEGIN SQL (19.8ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4422  (36.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085467) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084868) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084868) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`id` = 4422 AND `dispatched_services`.`status` IN ('queued')  (1.2ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084868, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:47', 'Choose your delivery location', 969084868, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4422  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085467 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084868 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085467 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084868  (14.6ms) COMMIT Completed 200 OK in 353ms (Views: 25.1ms | ActiveRecord: 209.6ms) Started GET "/borrow_direct/BorrowDirect/969084868?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:05:47 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084868"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084868 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4422  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:47', 969084868, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085467 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467) Redirected to http://www.example.com/resolve?umlaut.request_id=969084868&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 37.4ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4422  (16.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016528  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084868&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:47 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084868", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:47-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085467 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467)  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084868  (15.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 [["request_id", 969084868]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085467 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084868 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085467 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084868  (14.6ms) COMMIT Completed 200 OK in 81ms (Views: 23.1ms | ActiveRecord: 48.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:05:47 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf1fb663bd6e41ef923b7a870110904d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:47', '0109836413') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'format', 'journal', 969085468, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'isbn', 1, '0109836413', 969085468, '0109836413')  (16.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:05:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085468, 'cf1fb663bd6e41ef923b7a870110904d')  (18.8ms) COMMIT  (0.9ms) BEGIN SQL (40.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084869  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:47', NULL, 969084869, 'BorrowDirect', 'queued', '2015-02-24 17:05:47')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4423  (14.5ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084869 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085468) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085468) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084869) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084869) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084869 AND `dispatched_services`.`id` = 4423 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084869, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:47', 'This item is not currently available from BorrowDirect', 969084869, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4423  (22.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084869 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085468 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085468) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084869 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085468 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084869  (14.6ms) COMMIT Completed 200 OK in 304ms (Views: 19.1ms | ActiveRecord: 159.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:47 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95831634eb3c0191b12f40ea062e74b8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:47', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'format', 'journal', 969085469, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'isbn', 1, '9789810743734', 969085469, '9789810743734')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085469, '95831634eb3c0191b12f40ea062e74b8')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084870  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:47', NULL, 969084870, 'BorrowDirect', 'queued', '2015-02-24 17:05:47')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4424  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085469) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469) ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084870) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084870) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`id` = 4424 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084870, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 'Choose your delivery location', 969084870, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4424  (15.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085469 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084870 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085469 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084870  (14.5ms) COMMIT Completed 200 OK in 250ms (Views: 21.7ms | ActiveRecord: 113.2ms) Started GET "/borrow_direct/BorrowDirect/969084870?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:05:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084870"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084870 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4424  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 969084870, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085469 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469) Redirected to http://www.example.com/resolve?umlaut.request_id=969084870&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 54ms (ActiveRecord: 38.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4424  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016533  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=969084870&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084870", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085469 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469)  (0.8ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084870  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 [["request_id", 969084870]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085469 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084870 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085469 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084870  (15.3ms) COMMIT Completed 200 OK in 74ms (Views: 18.9ms | ActiveRecord: 46.0ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3af755308523a6923c967fb820e54544' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:48', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:48', 'format', 'journal', 969085470, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:48', 'isbn', 1, '9789810743734', 969085470, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085470, '3af755308523a6923c967fb820e54544')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084871  (14.4ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:48', NULL, 969084871, 'BorrowDirect', 'queued', '2015-02-24 17:05:48')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4425  (14.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084871 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085470) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085470) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084871) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084871) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (21.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084871 AND `dispatched_services`.`id` = 4425 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084871, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 'Choose your delivery location', 969084871, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4425  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084871 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085470 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085470) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084871 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084871 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085470 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084871  (15.0ms) COMMIT Completed 200 OK in 307ms (Views: 22.5ms | ActiveRecord: 115.0ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5eb475303147bc9d0d4bbae5dda1a283' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:48', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:48', 'format', 'journal', 969085471, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:48', 'isbn', 1, '9789810743734', 969085471, '9789810743734')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085471, '5eb475303147bc9d0d4bbae5dda1a283')  (20.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084872  (15.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:48', NULL, 969084872, 'BorrowDirect', 'queued', '2015-02-24 17:05:48')  (15.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4426  (16.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085471) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084872) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084872) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`id` = 4426 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084872, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 'Choose your delivery location', 969084872, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (19.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4426  (15.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085471 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084872 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085471 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084872  (17.7ms) COMMIT Completed 200 OK in 280ms (Views: 21.6ms | ActiveRecord: 131.3ms) Started GET "/borrow_direct/BorrowDirect/969084872" for 127.0.0.1 at 2015-02-24 12:05:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084872"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084872 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 969084872, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (25.1ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085471 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471) Redirected to http://www.example.com/resolve?umlaut.request_id=969084872&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 31.3ms) Started GET "/resolve?umlaut.request_id=969084872&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084872", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085471 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471)  (0.9ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084872  (23.5ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 [["request_id", 969084872]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085471 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084872 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085471 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084872  (15.0ms) COMMIT Completed 200 OK in 91ms (Views: 24.6ms | ActiveRecord: 57.2ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54551bfc4d57fb9fd205fb0a4a1049b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:34', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'format', 'journal', 969085472, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'isbn', 1, '9789810743734', 969085472, '9789810743734')  (21.9ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085472, '54551bfc4d57fb9fd205fb0a4a1049b3')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084873  (16.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:34', NULL, 969084873, 'test_bd', 'queued', '2015-02-24 17:06:34')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:34' WHERE `dispatched_services`.`id` = 4427  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084873 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085472) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085472) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084873) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084873) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084873 AND `dispatched_services`.`id` = 4427 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084873, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:06:34' WHERE `dispatched_services`.`id` = 4427  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084873 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085472 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085472) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084873 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (33.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (40.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (102.7ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085472 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084873  (14.6ms) COMMIT Completed 200 OK in 655ms (Views: 143.3ms | ActiveRecord: 152.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:06:34 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f139bb460474e625abb6d9085520331e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:06:34', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'format', 'book', 969085473, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'genre', 1, 'book', 969085473, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'author', 1, 'smith', 969085473, 'Smith') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'title', 1, 'some book', 969085473, 'Some Book')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:06:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085473, 'f139bb460474e625abb6d9085520331e')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084874  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:34', NULL, 969084874, 'BorrowDirect', 'queued', '2015-02-24 17:06:34')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:34' WHERE `dispatched_services`.`id` = 4428  (14.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084874 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085473) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085473) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084874) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084874) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084874 AND `dispatched_services`.`id` = 4428 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084874, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:34' WHERE `dispatched_services`.`id` = 4428  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084874 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085473 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085473) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084874 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085473 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084874  (14.0ms) COMMIT Completed 200 OK in 247ms (Views: 20.8ms | ActiveRecord: 129.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:06:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47bfddebed205d3202cc796fcb55386e' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:06:35', 'foo') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'format', 'journal', 969085474, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'genre', 1, 'article', 969085474, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'title', 1, 'foo', 969085474, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'author', 1, 'bar', 969085474, 'bar')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:06:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085474, '47bfddebed205d3202cc796fcb55386e')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084875  (15.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:35', NULL, 969084875, 'BorrowDirect', 'queued', '2015-02-24 17:06:35')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4429  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084875 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085474) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085474) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084875) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084875) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084875 AND `dispatched_services`.`id` = 4429 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4429  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084875 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085474 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085474) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084875 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085474 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084875  (14.7ms) COMMIT Completed 200 OK in 209ms (Views: 16.8ms | ActiveRecord: 119.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bdc12ebbfa650677127c5c3e6965700' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:06:35', 'foo') SQL (1.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'format', 'book', 969085475, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'genre', 1, 'book', 969085475, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'title', 1, 'foo', 969085475, 'foo')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (3.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:06:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085475, '6bdc12ebbfa650677127c5c3e6965700')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084876 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:35', NULL, 969084876, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:06:35')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4430  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=969084876" for 127.0.0.1 at 2015-02-24 12:06:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084876"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084876 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085475 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085475)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084876  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084876 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084876 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084876 [["request_id", 969084876]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085475 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085475) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084876 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084876 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085475 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084876  (14.4ms) COMMIT Completed 200 OK in 73ms (Views: 18.5ms | ActiveRecord: 46.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f38535a0b46daabf7ce85721042e804d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:35', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'format', 'journal', 969085476, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'isbn', 1, '9789810743734', 969085476, '9789810743734')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085476, 'f38535a0b46daabf7ce85721042e804d')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084877  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:35', NULL, 969084877, 'BorrowDirect', 'queued', '2015-02-24 17:06:35')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4431  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085476) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084877) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084877) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`id` = 4431 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084877, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:35', 'Choose your delivery location', 969084877, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4431  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085476 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084877 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085476 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084877  (14.4ms) COMMIT Completed 200 OK in 257ms (Views: 25.8ms | ActiveRecord: 115.4ms) Started GET "/borrow_direct/BorrowDirect/969084877?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:06:35 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084877"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084877 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4431  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:35', 969084877, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085476 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476) Redirected to http://www.example.com/resolve?umlaut.request_id=969084877&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 54ms (ActiveRecord: 39.0ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4431  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016543  (14.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084877&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:06:35 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084877", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:06:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085476 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084877  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 [["request_id", 969084877]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085476 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084877 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085476 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084877  (15.5ms) COMMIT Completed 200 OK in 78ms (Views: 21.5ms | ActiveRecord: 47.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:06:35 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30c63302b6ededa560386d16c307386a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:35', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'format', 'journal', 969085477, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'isbn', 1, '0109836413', 969085477, '0109836413')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:06:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085477, '30c63302b6ededa560386d16c307386a')  (15.6ms) COMMIT  (1.2ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084878  (53.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:36', NULL, 969084878, 'BorrowDirect', 'queued', '2015-02-24 17:06:36')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4432  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084878 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085477) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085477) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084878) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084878) DispatchedService Load (2.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084878 AND `dispatched_services`.`id` = 4432 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084878, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:36', 'This item is not currently available from BorrowDirect', 969084878, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4432  (14.3ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084878 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085477 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085477) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084878 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085477 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084878  (15.3ms) COMMIT Completed 200 OK in 299ms (Views: 20.4ms | ActiveRecord: 159.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '242000ae34377b2594d2495432824389' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:36', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:36', 'format', 'journal', 969085478, 'journal') SQL (1.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:36', 'isbn', 1, '9789810743734', 969085478, '9789810743734')  (18.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085478, '242000ae34377b2594d2495432824389')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084879  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:36', NULL, 969084879, 'BorrowDirect', 'queued', '2015-02-24 17:06:36')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4433  (15.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085478) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084879) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084879) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`id` = 4433 AND `dispatched_services`.`status` IN ('queued')  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084879, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:36', 'Choose your delivery location', 969084879, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.2ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4433  (19.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085478 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084879 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085478 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084879  (16.2ms) COMMIT Completed 200 OK in 272ms (Views: 21.9ms | ActiveRecord: 124.2ms) Started GET "/borrow_direct/BorrowDirect/969084879?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:06:36 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084879"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084879 ORDER BY id ASC DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4433  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:36', 969084879, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085478 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478) Redirected to http://www.example.com/resolve?umlaut.request_id=969084879&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 39.9ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4433  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016548  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084879&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:06:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084879", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:06:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085478 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084879  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 [["request_id", 969084879]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085478 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084879 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085478 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084879  (14.8ms) COMMIT Completed 200 OK in 75ms (Views: 19.5ms | ActiveRecord: 46.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e6bd2df17c01ed29437694051fe6206' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:36', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:36', 'format', 'journal', 969085479, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:36', 'isbn', 1, '9789810743734', 969085479, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085479, '2e6bd2df17c01ed29437694051fe6206')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084880  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:36', NULL, 969084880, 'BorrowDirect', 'queued', '2015-02-24 17:06:36')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4434  (14.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084880 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085479) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085479) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084880) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084880) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084880 AND `dispatched_services`.`id` = 4434 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084880, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:36', 'Choose your delivery location', 969084880, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4434  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084880 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085479 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085479) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084880 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084880 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085479 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084880  (14.5ms) COMMIT Completed 200 OK in 292ms (Views: 21.4ms | ActiveRecord: 114.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '000fd10468d9321f7d8b9749375027f8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:37', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:37', 'format', 'journal', 969085480, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:37', 'isbn', 1, '9789810743734', 969085480, '9789810743734')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085480, '000fd10468d9321f7d8b9749375027f8')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084881  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:37', NULL, 969084881, 'BorrowDirect', 'queued', '2015-02-24 17:06:37')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:37' WHERE `dispatched_services`.`id` = 4435  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085480) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084881) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084881) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`id` = 4435 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084881, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:37', 'Choose your delivery location', 969084881, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (16.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:37' WHERE `dispatched_services`.`id` = 4435  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085480 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084881 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085480 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084881  (19.0ms) COMMIT Completed 200 OK in 263ms (Views: 21.5ms | ActiveRecord: 121.8ms) Started GET "/borrow_direct/BorrowDirect/969084881" for 127.0.0.1 at 2015-02-24 12:06:37 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084881"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084881 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:37', 969084881, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (17.4ms) COMMIT Referent Load (2.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085480 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480) Redirected to http://www.example.com/resolve?umlaut.request_id=969084881&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.1ms) Started GET "/resolve?umlaut.request_id=969084881&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:06:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084881", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:06:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085480 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084881  (17.0ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 [["request_id", 969084881]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085480 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084881 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085480 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084881  (15.0ms) COMMIT Completed 200 OK in 82ms (Views: 22.4ms | ActiveRecord: 50.9ms) ActiveRecord::SchemaMigration Load (1.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.8ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ff37d0953e30ad8aec324b839fe1c33' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:37:59', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:37:59', 'format', 'journal', 969085481, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:37:59', 'title', 1, 'title', 969085481, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:37:59', 'author', 1, 'au', 969085481, 'au')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:37:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085481, '0ff37d0953e30ad8aec324b839fe1c33')  (17.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:37:59', 969084882, '--- {}\n', 'test_holding', 'holding')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:37:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084882, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.3ms) COMMIT DispatchedService Load (4.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084882 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.8ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:00', NULL, 969084882, 'test_bd', 'successful', '2015-02-24 21:38:00')  (17.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:00' WHERE `dispatched_services`.`id` = 4436  (23.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084882 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084882 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:00 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c479910f28d5c8fa6225cbeabb48b6d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:00', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:00', 'format', 'journal', 969085482, 'journal') SQL (1.6ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:00', 'isbn', 1, '9789810743734', 969085482, '9789810743734')  (22.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085482, '9c479910f28d5c8fa6225cbeabb48b6d')  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084883  (17.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:00', NULL, 969084883, 'test_bd', 'queued', '2015-02-24 21:38:00')  (21.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:00' WHERE `dispatched_services`.`id` = 4437  (15.5ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084883 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085482) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085482) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084883) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084883) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (33.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084883 AND `dispatched_services`.`id` = 4437 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084883, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (16.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.4s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 21:38:00' WHERE `dispatched_services`.`id` = 4437  (18.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084883 LIMIT 1 DispatchedService Load (10.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085482 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085482) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084883 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (73.4ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085482 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084883  (36.1ms) COMMIT Completed 200 OK in 1042ms (Views: 300.8ms | ActiveRecord: 158.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 16:38:01 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3ee6c25d1d0b9011e583dacf7d7e86a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:01', 'some book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'format', 'book', 969085483, 'book') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'genre', 1, 'book', 969085483, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'author', 1, 'smith', 969085483, 'Smith') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'title', 1, 'some book', 969085483, 'Some Book')  (15.9ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 21:38:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085483, 'e3ee6c25d1d0b9011e583dacf7d7e86a')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084884  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:01', NULL, 969084884, 'BorrowDirect', 'queued', '2015-02-24 21:38:01')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4438  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084884 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085483) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085483) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084884) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084884) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084884 AND `dispatched_services`.`id` = 4438 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084884, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4438  (16.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084884 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085483 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085483) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084884 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085483 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (1.0ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084884  (16.3ms) COMMIT Completed 200 OK in 280ms (Views: 18.9ms | ActiveRecord: 133.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 16:38:01 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfce2bca95884755cd2de819e9eb2504' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:01', 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'format', 'journal', 969085484, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'genre', 1, 'article', 969085484, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'title', 1, 'foo', 969085484, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'author', 1, 'bar', 969085484, 'bar')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 21:38:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085484, 'dfce2bca95884755cd2de819e9eb2504')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084885  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:01', NULL, 969084885, 'BorrowDirect', 'queued', '2015-02-24 21:38:01')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4439  (21.4ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084885 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085484) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085484) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084885) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084885) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084885 AND `dispatched_services`.`id` = 4439 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4439  (24.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084885 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085484 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085484) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084885 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085484 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (1.3ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084885  (28.6ms) COMMIT Completed 200 OK in 243ms (Views: 19.0ms | ActiveRecord: 141.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1985fe13eb78e29ac5927cbcd0bb959f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:01', 'foo') SQL (1.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'format', 'book', 969085485, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'genre', 1, 'book', 969085485, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'title', 1, 'foo', 969085485, 'foo')  (22.8ms) COMMIT  (0.6ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 21:38:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085485, '1985fe13eb78e29ac5927cbcd0bb959f')  (23.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084886 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:01', NULL, 969084886, 'BorrowDirect', 'failed_fatal', '2015-02-24 21:38:01')  (27.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4440  (14.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084886" for 127.0.0.1 at 2015-02-24 16:38:01 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084886"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084886 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085485 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085485)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084886  (21.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084886 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084886 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084886 [["request_id", 969084886]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085485 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085485) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084886 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084886 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085485 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084886  (15.1ms) COMMIT Completed 200 OK in 79ms (Views: 17.9ms | ActiveRecord: 54.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:01 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '87f85dadf061c261521ac42462c69f9a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:01', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'format', 'journal', 969085486, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'isbn', 1, '9789810743734', 969085486, '9789810743734')  (20.2ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085486, '87f85dadf061c261521ac42462c69f9a')  (21.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084887  (19.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:02', NULL, 969084887, 'BorrowDirect', 'queued', '2015-02-24 21:38:02')  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4441  (15.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085486) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084887) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084887) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`id` = 4441 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084887, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:02', 'Choose your delivery location', 969084887, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (20.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4441  (16.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085486 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084887 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (43.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (45.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (46.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085486 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084887  (14.6ms) COMMIT Completed 200 OK in 345ms (Views: 62.8ms | ActiveRecord: 140.8ms) Started GET "/borrow_direct/BorrowDirect/969084887?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:38:02 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084887"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084887 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4441  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:02', 969084887, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085486 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486) Redirected to http://www.example.com/resolve?umlaut.request_id=969084887&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4441  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016560  (15.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084887&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:38:02 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084887", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:38:02-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085486 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084887  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 [["request_id", 969084887]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085486 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084887 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085486 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084887  (14.8ms) COMMIT Completed 200 OK in 74ms (Views: 20.0ms | ActiveRecord: 45.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 16:38:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e97ea33524386f783a18833ef1ae8107' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:02', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:02', 'format', 'journal', 969085487, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:02', 'isbn', 1, '0109836413', 969085487, '0109836413')  (16.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:38:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085487, 'e97ea33524386f783a18833ef1ae8107')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084888  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:02', NULL, 969084888, 'BorrowDirect', 'queued', '2015-02-24 21:38:02')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4442  (19.3ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084888 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085487) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085487) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084888) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084888) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084888 AND `dispatched_services`.`id` = 4442 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084888, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:02', 'This item is not currently available from BorrowDirect', 969084888, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4442  (15.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084888 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085487 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085487) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084888 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085487 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084888  (14.6ms) COMMIT Completed 200 OK in 260ms (Views: 19.0ms | ActiveRecord: 121.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '325275bf60d30ad17d16ebb2f9a4ed80' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:02', '9789810743734') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:02', 'format', 'journal', 969085488, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:02', 'isbn', 1, '9789810743734', 969085488, '9789810743734')  (16.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085488, '325275bf60d30ad17d16ebb2f9a4ed80')  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084889  (15.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:02', NULL, 969084889, 'BorrowDirect', 'queued', '2015-02-24 21:38:02')  (27.5ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4443  (20.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085488) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488) ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084889) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084889) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`id` = 4443 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084889, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.1ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:02', 'Choose your delivery location', 969084889, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4443  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085488 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084889 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.4ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085488 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084889  (14.3ms) COMMIT Completed 200 OK in 326ms (Views: 25.0ms | ActiveRecord: 143.5ms) Started GET "/borrow_direct/BorrowDirect/969084889?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:38:03 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084889"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084889 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4443  (15.5ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:03', 969084889, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.7ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085488 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488) Redirected to http://www.example.com/resolve?umlaut.request_id=969084889&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 56ms (ActiveRecord: 40.3ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4443  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016565  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=969084889&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:38:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084889", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:38:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085488 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488)  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084889  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 [["request_id", 969084889]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085488 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084889 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085488 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084889  (14.4ms) COMMIT Completed 200 OK in 72ms (Views: 17.1ms | ActiveRecord: 46.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dce4fc3bc2aff07799d93eae8dd9d565' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:03', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'format', 'journal', 969085489, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'isbn', 1, '9789810743734', 969085489, '9789810743734')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085489, 'dce4fc3bc2aff07799d93eae8dd9d565')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084890  (18.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:03', NULL, 969084890, 'BorrowDirect', 'queued', '2015-02-24 21:38:03')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4444  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084890 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085489) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085489) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084890) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084890) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084890 AND `dispatched_services`.`id` = 4444 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084890, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:03', 'Choose your delivery location', 969084890, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4444  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084890 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085489 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085489) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084890 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084890 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085489 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084890  (15.0ms) COMMIT Completed 200 OK in 265ms (Views: 21.3ms | ActiveRecord: 120.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd475f9c68dd753cbf426e3c0b76f65f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:03', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'format', 'journal', 969085490, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'isbn', 1, '9789810743734', 969085490, '9789810743734')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085490, 'dd475f9c68dd753cbf426e3c0b76f65f')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084891  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:03', NULL, 969084891, 'BorrowDirect', 'queued', '2015-02-24 21:38:03')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4445  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085490) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490) ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084891) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084891) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`id` = 4445 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084891, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:03', 'Choose your delivery location', 969084891, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4445  (14.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085490 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084891 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085490 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084891  (15.3ms) COMMIT Completed 200 OK in 290ms (Views: 21.8ms | ActiveRecord: 115.4ms) Started GET "/borrow_direct/BorrowDirect/969084891" for 127.0.0.1 at 2015-02-24 16:38:03 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084891"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084891 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:03', 969084891, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085490 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490) Redirected to http://www.example.com/resolve?umlaut.request_id=969084891&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.0ms) Started GET "/resolve?umlaut.request_id=969084891&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:38:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084891", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:38:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085490 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084891  (14.2ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 [["request_id", 969084891]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085490 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084891 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085490 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084891  (14.5ms) COMMIT Completed 200 OK in 75ms (Views: 21.9ms | ActiveRecord: 45.2ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff20b5512cd805fa3e7bdd6e042dd48f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:03', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'format', 'journal', 969085491, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'isbn', 1, '9789810743734', 969085491, '9789810743734')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085491, 'ff20b5512cd805fa3e7bdd6e042dd48f')  (14.6ms) COMMIT ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084892 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084892, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 'Choose your delivery location', 969084892, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084892 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084892, 'test_bd', 'successful', '2015-02-24 21:38:04')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4446  (13.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084892 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54bb20207fd8f7f9d5d039f36fb627c4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:04', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085492, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'isbn', 1, '0109836413', 969085492, '0109836413')  (13.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085492, '54bb20207fd8f7f9d5d039f36fb627c4')  (14.0ms) COMMIT ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084893 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084893, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 'This item is not currently available from BorrowDirect', 969084893, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084893 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084893, 'test_bd', 'successful', '2015-02-24 21:38:04')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4447  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084893 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ed04434d2114c39f0fd447977171179' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:04', '000000000') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085493, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'isbn', 1, '000000000', 969085493, '000000000')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085493, '5ed04434d2114c39f0fd447977171179')  (14.3ms) COMMIT ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084894 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084894, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 'This item is not currently available from BorrowDirect', 969084894, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084894 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084894, 'test_bd', 'successful', '2015-02-24 21:38:04')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4448  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084894 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54ad7aa86771c7b61ddfefd1d182b9b5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:04', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085494, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'isbn', 1, '9789810743734', 969085494, '9789810743734')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085494, '54ad7aa86771c7b61ddfefd1d182b9b5')  (14.2ms) COMMIT ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084895 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084895, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084895 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084895, 'test_bd', 'failed_temporary', '2015-02-24 21:38:04')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4449  (15.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084895 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5cea97bdc5c9c0937aeb957815d214e2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:04', '9789810743734') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085495, 'journal') SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'isbn', 1, '9789810743734', 969085495, '9789810743734')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085495, '5cea97bdc5c9c0937aeb957815d214e2')  (14.3ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084896 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084896, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084896 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084896, 'test_bd', 'successful', '2015-02-24 21:38:04')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4450  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084896 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e253f40685e02c48340bb1d5bce17df0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:04', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085496, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'title', 1, 'title', 969085496, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'author', 1, 'au', 969085496, 'au')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085496, 'e253f40685e02c48340bb1d5bce17df0')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 969084897, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084897 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084897, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084897 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084897, 'test_bd', 'successful', '2015-02-24 21:38:04')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4451  (20.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084897 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96806532610f961df3e758548030aa9a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:04', 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085497, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'title', 1, 'title', 969085497, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'author', 1, 'au', 969085497, 'au')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085497, '96806532610f961df3e758548030aa9a')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 969084898, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.6ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084898 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084898, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084898 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084898, 'test_bd', 'successful', '2015-02-24 21:38:04')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4452  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084898 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17e6b633391801f9e7a8d0abd884bf4b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:04', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085498, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'title', 1, 'title', 969085498, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'author', 1, 'au', 969085498, 'au')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085498, '17e6b633391801f9e7a8d0abd884bf4b')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 969084899, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (15.1ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084899 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084899 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084899, 'test_bd', 'successful', '2015-02-24 21:38:04')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4453  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084899 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7614f7a39ebdf9f9db9196bae9190932' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:04', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085499, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085499, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'aulast', 1, 'grimes', 969085499, 'Grimes')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085499, '7614f7a39ebdf9f9db9196bae9190932')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084900, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.6ms) COMMIT ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084900 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a5dcc6e1d614a34a827505d7458fdf7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 21:38:05', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085500, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'auinit', 1, 'rd', 969085500, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'aulast', 1, 'kaplan', 969085500, 'Kaplan') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'atitle', 1, 'the coming anarchy', 969085500, 'The coming anarchy') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'title', 1, 'the atlantic monthly', 969085500, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'volume', 1, '273', 969085500, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'issue', 1, '2', 969085500, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'date', 1, '1994', 969085500, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'spage', 1, '44', 969085500, '44') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'issn', 1, '1072-7825', 969085500, '1072-7825')  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085500, 'info:sid/google', '8a5dcc6e1d614a34a827505d7458fdf7')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084901 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:05', NULL, 969084901, 'test_bd', 'successful', '2015-02-24 21:38:05')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4454  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084901 ServiceResponse Exists (2.0ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084901 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9d14835bd4fe8081fb9cb0e112ed1ae' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 21:38:05', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'book', 969085501, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'auinit', 1, 'eh', 969085501, 'EH') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'aulast', 1, 'lenneberg', 969085501, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'title', 1, 'biological foundations of language', 969085501, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'genre', 1, 'book', 969085501, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'date', 1, '1967', 969085501, '1967')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085501, 'info:sid/google', 'd9d14835bd4fe8081fb9cb0e112ed1ae')  (14.6ms) COMMIT ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084902 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084902, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084902 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:05', NULL, 969084902, 'test_bd', 'successful', '2015-02-24 21:38:05')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4455  (14.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084902 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6df62164e6ffa19df27419ef9f82f4ff' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085502, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085502, '121212')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085502, '6df62164e6ffa19df27419ef9f82f4ff')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084903"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084903 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (3.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084903 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969084903  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084903, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084903\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085502 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085502) Redirected to http://test.host/resolve?umlaut.request_id=969084903&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.2ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07b6c222660ff598765f35c4d90c08a7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085503, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085503, '121212')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085503, '07b6c222660ff598765f35c4d90c08a7')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084904, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084904"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084904 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084904 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016587  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084904, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016587\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085503 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085503) Redirected to http://test.host/resolve?umlaut.request_id=969084904&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0b02bd87e84431d7048ce5c3076132ef' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085504, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085504, '121212')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085504, '0b02bd87e84431d7048ce5c3076132ef')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084905, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084905"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084905 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084905 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084905 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:05', NULL, 969084905, 'BorrowDirect', 'in_progress', '2015-02-24 21:38:05')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4456  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084905, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085504 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085504) Redirected to http://test.host/resolve?umlaut.request_id=969084905&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 68ms (ActiveRecord: 58.8ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084905 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084905 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084905 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4456  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016590  (14.9ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7df2eb304aad02136e4e7e3619e07aa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085505, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085505, '121212')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085505, 'd7df2eb304aad02136e4e7e3619e07aa')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084906, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084906"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084906 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084906 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:05', NULL, 969084906, 'BorrowDirect', 'in_progress', '2015-02-24 21:38:05')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4457  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084906, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085505 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085505) Redirected to http://test.host/resolve?umlaut.request_id=969084906&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 72ms (ActiveRecord: 58.7ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '725a434049c828aef0c604d84d99a2fa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085506, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085506, '121212')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085506, '725a434049c828aef0c604d84d99a2fa')  (22.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084907, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084907"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084907 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084907 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084907, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085506 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085506) Redirected to http://test.host/resolve?umlaut.request_id=969084907&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.1ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83f90c8ff13f9d7d2e8b529431ce820b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085507, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085507, '121212')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (4.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085507, '83f90c8ff13f9d7d2e8b529431ce820b')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084908, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084908"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084908 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084908 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084908 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:06', NULL, 969084908, 'BorrowDirect', 'in_progress', '2015-02-24 21:38:06')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:06' WHERE `dispatched_services`.`id` = 4458  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:06', 969084908, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085507 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085507) Redirected to http://test.host/resolve?umlaut.request_id=969084908&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 70ms (ActiveRecord: 58.4ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04adc820b10b9b33ab8de467c20431e3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084908 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN  (2.3ms) BEGIN SQL (2.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:06', '121212') SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:38:06' WHERE `dispatched_services`.`id` = 4458 SQL (2.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:06', 'format', 'journal', 969085508, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:06', 'isbn', 1, '121212', 969085508, '121212')  (17.0ms) COMMIT  (0.6ms) BEGIN SQL (2.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016596  (19.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085508, '04adc820b10b9b33ab8de467c20431e3')  (14.6ms) COMMIT  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084909"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084909 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084909 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:06', 969084909, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085508 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085508) Redirected to http://test.host/resolve?umlaut.request_id=969084909&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 24.0ms) ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e2f618a94aab6dd136aa7a0a386e8b2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:42', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:42', 'format', 'journal', 969085509, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:42', 'isbn', 1, '121212', 969085509, '121212')  (23.0ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085509, '4e2f618a94aab6dd136aa7a0a386e8b2')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:42', 969084910, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084910"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084910 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084910 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084910 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:42', NULL, 969084910, 'BorrowDirect', 'in_progress', '2015-02-24 21:38:42')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:42' WHERE `dispatched_services`.`id` = 4459  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:42', 969084910, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.0ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085509 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085509) Redirected to http://test.host/resolve?umlaut.request_id=969084910&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 108ms (ActiveRecord: 69.3ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd31ec99988f89d93f1158933cd89a035' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:42', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:42', 'format', 'journal', 969085510, 'journal') SQL (4.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:42', 'isbn', 1, '121212', 969085510, '121212')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085510, 'd31ec99988f89d93f1158933cd89a035')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:42', 969084911, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (15.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084911"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084911 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084911 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:42', 969084911, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (21.6ms) COMMIT Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085510 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085510) Redirected to http://test.host/resolve?umlaut.request_id=969084911&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 39ms (ActiveRecord: 32.8ms) ActiveRecord::SchemaMigration Load (0.7ms) SELECT `schema_migrations`.* FROM `schema_migrations` ActiveRecord::SchemaMigration Load (0.9ms) SELECT `schema_migrations`.* FROM `schema_migrations` -------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url2 -------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3575d56cab2aa1cbb9558efd255394d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:40:08', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:40:08', 'format', 'journal', 969085511, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:40:08', 'isbn', 1, '121212', 969085511, '121212')  (22.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:40:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085511, 'e3575d56cab2aa1cbb9558efd255394d')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:40:08', 969084912, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084912"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084912 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084912 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084912 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:40:08', NULL, 969084912, 'BorrowDirect', 'in_progress', '2015-02-24 21:40:08')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:40:08' WHERE `dispatched_services`.`id` = 4460  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (2.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:40:08', 969084912, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085511 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085511) Redirected to http://test.host/resolve?umlaut.request_id=969084912&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A40%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 96ms (ActiveRecord: 64.3ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` -------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url2 -------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c671e1089e5faef88b580d3d857c76a5' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:40:33', '121212') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:40:33', 'format', 'journal', 969085512, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:40:33', 'isbn', 1, '121212', 969085512, '121212')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:40:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085512, 'c671e1089e5faef88b580d3d857c76a5')  (21.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:40:33', 969084913, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (17.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084913"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084913 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084913 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084913 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:40:33', NULL, 969084913, 'BorrowDirect', 'in_progress', '2015-02-24 21:40:33')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:40:33' WHERE `dispatched_services`.`id` = 4461  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:40:33', 969084913, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085512 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085512) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: true Rendered text template (0.0ms) Completed 403 Forbidden in 34770ms (Views: 42.5ms | ActiveRecord: 63.3ms) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` -------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url2 -------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41e40ff11f435d0e18282a708fcfdd82' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:41:13', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:41:13', 'format', 'journal', 969085513, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:41:13', 'isbn', 1, '121212', 969085513, '121212')  (22.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:41:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085513, '41e40ff11f435d0e18282a708fcfdd82')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:41:13', 969084914, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084914"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084914 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084914 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084914 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:41:13', NULL, 969084914, 'BorrowDirect', 'in_progress', '2015-02-24 21:41:13')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:41:13' WHERE `dispatched_services`.`id` = 4462  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:41:13', 969084914, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085513 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085513) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` -------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url2 -------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8b37659dc2edb7656e32b52a62c0478' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:41:28', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:41:28', 'format', 'journal', 969085514, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:41:28', 'isbn', 1, '121212', 969085514, '121212')  (21.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:41:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085514, 'c8b37659dc2edb7656e32b52a62c0478')  (15.5ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:41:28', 969084915, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (18.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084915"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084915 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084915 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084915 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:41:28', NULL, 969084915, 'BorrowDirect', 'in_progress', '2015-02-24 21:41:28')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:41:28' WHERE `dispatched_services`.`id` = 4463  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:41:28', 969084915, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (19.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085514 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085514) ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30b37bb140f63fd2af99a0f434b2d893' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 21:42:21', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'format', 'journal', 969085515, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'auinit', 1, 'rd', 969085515, 'RD') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'aulast', 1, 'kaplan', 969085515, 'Kaplan') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'atitle', 1, 'the coming anarchy', 969085515, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'title', 1, 'the atlantic monthly', 969085515, 'The Atlantic monthly') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'volume', 1, '273', 969085515, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'issue', 1, '2', 969085515, '2') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'date', 1, '1994', 969085515, '1994') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'spage', 1, '44', 969085515, '44') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'issn', 1, '1072-7825', 969085515, '1072-7825')  (15.7ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 21:42:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085515, 'info:sid/google', '30b37bb140f63fd2af99a0f434b2d893')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084916 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:21', NULL, 969084916, 'test_bd', 'successful', '2015-02-24 21:42:21')  (18.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:21' WHERE `dispatched_services`.`id` = 4464  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084916 ServiceResponse Exists (2.1ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084916 LIMIT 1 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea6e8c52de25c4ec5976cd1a46e2b309' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:21', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'format', 'journal', 969085516, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085516, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'aulast', 1, 'grimes', 969085516, 'Grimes')  (27.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 21:42:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085516, 'ea6e8c52de25c4ec5976cd1a46e2b309')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084917, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (27.5ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084917 ORDER BY id ASC Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '146b9eb2d4f3dd84e5635ec462e08340' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 21:42:21', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'format', 'book', 969085517, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'auinit', 1, 'eh', 969085517, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'aulast', 1, 'lenneberg', 969085517, 'Lenneberg') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'title', 1, 'biological foundations of language', 969085517, 'Biological foundations of language') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'genre', 1, 'book', 969085517, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'date', 1, '1967', 969085517, '1967')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085517, 'info:sid/google', '146b9eb2d4f3dd84e5635ec462e08340')  (14.7ms) COMMIT ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084918 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084918, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084918 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084918, 'test_bd', 'successful', '2015-02-24 21:42:22')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4465  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084918 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c7afaa305926410aea159eede0a52dd' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (32.5ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '000000000') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085518, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '000000000', 969085518, '000000000')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085518, '9c7afaa305926410aea159eede0a52dd')  (14.0ms) COMMIT ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084919 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084919, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:22', 'This item is not currently available from BorrowDirect', 969084919, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (17.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084919 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084919, 'test_bd', 'successful', '2015-02-24 21:42:22')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4466  (15.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084919 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18475eafd7db7b1853b61f11366fc441' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085519, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '9789810743734', 969085519, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085519, '18475eafd7db7b1853b61f11366fc441')  (14.5ms) COMMIT ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084920 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084920, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:22', 'Choose your delivery location', 969084920, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (27.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084920 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084920, 'test_bd', 'successful', '2015-02-24 21:42:22')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4467  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084920 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0cecb11dfbb87919e43cd145807758e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (3.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '0109836413') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085520, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '0109836413', 969085520, '0109836413')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085520, 'a0cecb11dfbb87919e43cd145807758e')  (13.9ms) COMMIT ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084921 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084921, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:22', 'This item is not currently available from BorrowDirect', 969084921, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084921 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084921, 'test_bd', 'successful', '2015-02-24 21:42:22')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4468  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084921 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4bd62106f775ad9683c0104c422877ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085521, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '9789810743734', 969085521, '9789810743734')  (19.6ms) COMMIT  (0.6ms) BEGIN SQL (3.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085521, '4bd62106f775ad9683c0104c422877ff')  (14.6ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084922 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084922, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084922 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084922, 'test_bd', 'failed_temporary', '2015-02-24 21:42:22')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4469  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084922 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '348d82b9546043855e4e13b44d9c95d8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085522, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '9789810743734', 969085522, '9789810743734')  (15.2ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085522, '348d82b9546043855e4e13b44d9c95d8')  (17.8ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084923 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084923, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084923 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084923, 'test_bd', 'successful', '2015-02-24 21:42:22')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4470  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084923 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:22 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31bcad8d21fc3e736c7c6203eb563613' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085523, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '9789810743734', 969085523, '9789810743734')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085523, '31bcad8d21fc3e736c7c6203eb563613')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084924  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084924, 'test_bd', 'queued', '2015-02-24 21:42:22')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4471  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084924 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085523) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085523) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084924) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084924) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084924 AND `dispatched_services`.`id` = 4471 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084924, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (13.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4471  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084924 LIMIT 1 DispatchedService Load (7.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.5ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085523 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085523) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084924 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (63.0ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085523 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084924  (15.0ms) COMMIT Completed 200 OK in 435ms (Views: 133.0ms | ActiveRecord: 116.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 16:42:23 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '418b55bb36b96e2657093f8be6564369' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:23', 'some book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'format', 'book', 969085524, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'genre', 1, 'book', 969085524, 'book') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'author', 1, 'smith', 969085524, 'Smith') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'title', 1, 'some book', 969085524, 'Some Book')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 21:42:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085524, '418b55bb36b96e2657093f8be6564369')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084925  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:23', NULL, 969084925, 'BorrowDirect', 'queued', '2015-02-24 21:42:23')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4472  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084925 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085524) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085524) ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084925) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084925) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084925 AND `dispatched_services`.`id` = 4472 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084925, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4472  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084925 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085524 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085524) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084925 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085524 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084925  (14.6ms) COMMIT Completed 200 OK in 234ms (Views: 18.4ms | ActiveRecord: 126.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 16:42:23 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4986fbf72760f6162fa589504f6fa34' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:23', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'format', 'journal', 969085525, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'genre', 1, 'article', 969085525, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'title', 1, 'foo', 969085525, 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'author', 1, 'bar', 969085525, 'bar')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 21:42:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085525, 'a4986fbf72760f6162fa589504f6fa34')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084926  (14.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:23', NULL, 969084926, 'BorrowDirect', 'queued', '2015-02-24 21:42:23')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4473  (14.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084926 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085525) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085525) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084926) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084926) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084926 AND `dispatched_services`.`id` = 4473 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4473  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084926 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085525 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085525) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084926 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085525 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084926  (15.2ms) COMMIT Completed 200 OK in 238ms (Views: 18.0ms | ActiveRecord: 115.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '476ec1c923c94688a1c711494ba4b0d6' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:23', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'format', 'book', 969085526, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'genre', 1, 'book', 969085526, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'title', 1, 'foo', 969085526, 'foo')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 21:42:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085526, '476ec1c923c94688a1c711494ba4b0d6')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:23', NULL, 969084927, 'BorrowDirect', 'failed_fatal', '2015-02-24 21:42:23')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4474  (18.6ms) COMMIT Started GET "/resolve?umlaut.request_id=969084927" for 127.0.0.1 at 2015-02-24 16:42:23 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084927"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084927 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085526 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085526)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084927  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084927 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084927 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084927 [["request_id", 969084927]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085526 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085526) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084927 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084927 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085526 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084927  (16.7ms) COMMIT Completed 200 OK in 75ms (Views: 17.6ms | ActiveRecord: 50.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:23 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4250538ad698d8a1551e33ae6b7d9dc3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:23', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'format', 'journal', 969085527, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'isbn', 1, '9789810743734', 969085527, '9789810743734')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085527, '4250538ad698d8a1551e33ae6b7d9dc3')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084928  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:24', NULL, 969084928, 'BorrowDirect', 'queued', '2015-02-24 21:42:24')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4475  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085527) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084928) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084928) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`id` = 4475 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084928, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (16.1ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:24', 'Choose your delivery location', 969084928, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (18.5ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4475  (14.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085527 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084928 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085527 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084928  (14.2ms) COMMIT Completed 200 OK in 258ms (Views: 24.2ms | ActiveRecord: 114.5ms) Started GET "/borrow_direct/BorrowDirect/969084928?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:42:24 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084928"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084928 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4475  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:24', 969084928, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085527 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527) Redirected to http://www.example.com/resolve?umlaut.request_id=969084928&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 91ms (ActiveRecord: 38.0ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4475  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016624  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=969084928&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:42:24 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084928", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:42:24-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085527 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084928  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 [["request_id", 969084928]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085527 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084928 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085527 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084928  (14.5ms) COMMIT Completed 200 OK in 74ms (Views: 19.8ms | ActiveRecord: 46.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 16:42:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '75cfbca8dfb7ca2c7524cf680f872ade' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:24', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:24', 'format', 'journal', 969085528, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:24', 'isbn', 1, '0109836413', 969085528, '0109836413')  (14.8ms) COMMIT  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:42:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085528, '75cfbca8dfb7ca2c7524cf680f872ade')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084929  (18.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:24', NULL, 969084929, 'BorrowDirect', 'queued', '2015-02-24 21:42:24')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4476  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084929 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085528) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085528) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084929) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084929) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084929 AND `dispatched_services`.`id` = 4476 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084929, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:24', 'This item is not currently available from BorrowDirect', 969084929, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4476  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084929 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085528 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085528) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084929 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085528 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084929  (14.3ms) COMMIT Completed 200 OK in 249ms (Views: 18.5ms | ActiveRecord: 118.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:24 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '059fe702a841e2539ca3fd9f6b3fb3df' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:24', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:24', 'format', 'journal', 969085529, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:24', 'isbn', 1, '9789810743734', 969085529, '9789810743734')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085529, '059fe702a841e2539ca3fd9f6b3fb3df')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084930  (14.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:24', NULL, 969084930, 'BorrowDirect', 'queued', '2015-02-24 21:42:24')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4477  (14.2ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085529) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084930) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084930) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`id` = 4477 AND `dispatched_services`.`status` IN ('queued')  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084930, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:24', 'Choose your delivery location', 969084930, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4477  (14.3ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085529 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084930 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085529 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084930  (15.0ms) COMMIT Completed 200 OK in 250ms (Views: 21.4ms | ActiveRecord: 115.5ms) Started GET "/borrow_direct/BorrowDirect/969084930?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:42:24 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084930"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084930 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4477  (17.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 969084930, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085529 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529) Redirected to http://www.example.com/resolve?umlaut.request_id=969084930&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 91ms (ActiveRecord: 41.8ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4477  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016629  (13.9ms) COMMIT Started GET "/resolve?umlaut.request_id=969084930&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:42:25 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084930", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:42:25-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085529 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084930  (13.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 [["request_id", 969084930]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085529 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084930 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085529 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084930  (14.6ms) COMMIT Completed 200 OK in 70ms (Views: 16.7ms | ActiveRecord: 45.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2720fcd48436a1e39ccb54b2dad88b8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:25', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'format', 'journal', 969085530, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'isbn', 1, '9789810743734', 969085530, '9789810743734')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085530, 'e2720fcd48436a1e39ccb54b2dad88b8')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084931  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:25', NULL, 969084931, 'BorrowDirect', 'queued', '2015-02-24 21:42:25')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4478  (14.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084931 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085530) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085530) ServiceResponse Load (4.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084931) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084931) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084931 AND `dispatched_services`.`id` = 4478 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084931, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 'Choose your delivery location', 969084931, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4478  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084931 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085530 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085530) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084931 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084931 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085530 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084931  (14.8ms) COMMIT Completed 200 OK in 248ms (Views: 20.5ms | ActiveRecord: 116.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd01f42428771d11fa8b7769d5c3c0738' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:25', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'format', 'journal', 969085531, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'isbn', 1, '9789810743734', 969085531, '9789810743734')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085531, 'd01f42428771d11fa8b7769d5c3c0738')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084932  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:25', NULL, 969084932, 'BorrowDirect', 'queued', '2015-02-24 21:42:25')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4479  (14.1ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085531) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084932) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084932) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`id` = 4479 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084932, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 'Choose your delivery location', 969084932, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4479  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085531 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084932 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085531 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084932  (40.4ms) COMMIT Completed 200 OK in 279ms (Views: 23.1ms | ActiveRecord: 142.3ms) Started GET "/borrow_direct/BorrowDirect/969084932" for 127.0.0.1 at 2015-02-24 16:42:25 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084932"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084932 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 969084932, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085531 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531) Redirected to http://www.example.com/resolve?umlaut.request_id=969084932&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 27ms (ActiveRecord: 21.0ms) Started GET "/resolve?umlaut.request_id=969084932&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:42:25 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084932", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:42:25-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085531 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084932  (33.7ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 [["request_id", 969084932]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085531 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084932 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085531 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084932  (20.7ms) COMMIT Completed 200 OK in 102ms (Views: 21.6ms | ActiveRecord: 72.2ms) ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.7ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '991b10672368956601bf272c4c9ed8d0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:25', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'format', 'journal', 969085532, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'isbn', 1, '121212', 969085532, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:25', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085532, '991b10672368956601bf272c4c9ed8d0')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084933"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084933 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084933 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969084933  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 969084933, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084933\n', 'BorrowDirect', 'bd_request_status')  (14.8ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085532 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085532) Redirected to http://test.host/resolve?umlaut.request_id=969084933&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.4ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1da520a200a9e919f149d73cf9a9797d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085533, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085533, '121212')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085533, '1da520a200a9e919f149d73cf9a9797d')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084934, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084934"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084934 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084934 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016636  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084934, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016636\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085533 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085533) Redirected to http://test.host/resolve?umlaut.request_id=969084934&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.0ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ef4881963ba21a262c70528338f82ec' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085534, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085534, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085534, '5ef4881963ba21a262c70528338f82ec')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084935, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084935"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084935 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084935 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084935 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:26', NULL, 969084935, 'BorrowDirect', 'in_progress', '2015-02-24 21:42:26')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4480  (13.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084935, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085534 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085534) Redirected to http://test.host/resolve?umlaut.request_id=969084935&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 67ms (ActiveRecord: 57.6ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084935 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084935 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084935 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4480  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016639  (15.0ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '343b7e5bff14e22bad918cff87a117e9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085535, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085535, '121212')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085535, '343b7e5bff14e22bad918cff87a117e9')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084936, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084936"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084936 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084936 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084936 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:26', NULL, 969084936, 'BorrowDirect', 'in_progress', '2015-02-24 21:42:26')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4481  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084936, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085535 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085535) Redirected to http://example.org Completed 302 Found in 71ms (ActiveRecord: 59.5ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bce0b8b1d6c5ee4e6687be670c91e9d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085536, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085536, '121212')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085536, '1bce0b8b1d6c5ee4e6687be670c91e9d')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084937, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084937"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084937 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084937 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084937, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 26ms (ActiveRecord: 22.0ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '429e5588c43dfac4b00f2b6dc4aa136a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085537, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085537, '121212')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085537, '429e5588c43dfac4b00f2b6dc4aa136a')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084938, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084938"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084938 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084938 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084938 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:26', NULL, 969084938, 'BorrowDirect', 'in_progress', '2015-02-24 21:42:26')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4482  (14.1ms) COMMIT  (1.1ms) BEGIN BorrowDirect: Error placing request: BorrowDirect::HttpError HTTP Error: 502:
 
 
 
 
. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084938, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084936 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpError\n:message: ! \'HTTP Error: 502:
 \n
 
 
 \n
 
 
\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4481  (16.7ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085537 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085537) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 61.3ms)  (19.3ms) COMMIT  (8.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016641  (40.2ms) COMMIT BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2aac22b0a39c46c36edae950f6d4d853' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212') DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084938 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085538, 'journal')  (1.2ms) BEGIN SQL (2.5ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085538, '121212') SQL (2.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4482  (15.2ms) COMMIT  (0.7ms) BEGIN  (16.6ms) COMMIT SQL (2.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085538, '2aac22b0a39c46c36edae950f6d4d853')  (0.6ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016645  (15.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084939"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084939 ORDER BY `requests`.`id` ASC LIMIT 1  (17.8ms) COMMIT ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084939 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084939, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (18.0ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085538 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085538) Redirected to http://test.host/resolve?umlaut.request_id=969084939&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 35ms (ActiveRecord: 28.7ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f518184ebc367211b83641e123755e01' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:26', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085539, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'title', 1, 'title', 969085539, 'title') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'author', 1, 'au', 969085539, 'au')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085539, 'f518184ebc367211b83641e123755e01')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084940, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (15.9ms) COMMIT ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084940 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084940 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:26', NULL, 969084940, 'test_bd', 'successful', '2015-02-24 21:42:26')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4483  (17.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084940 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4124e402a41026ee3fbb3dc450933a23' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:26', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085540, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'title', 1, 'title', 969085540, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'author', 1, 'au', 969085540, 'au')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085540, '4124e402a41026ee3fbb3dc450933a23')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084941, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.3ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084941 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084941, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084941 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:27', NULL, 969084941, 'test_bd', 'successful', '2015-02-24 21:42:27')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:27' WHERE `dispatched_services`.`id` = 4484  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084941 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62c66f17805d642c8b9f871ef4da4a57' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:27', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'format', 'journal', 969085541, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'title', 1, 'title', 969085541, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'author', 1, 'au', 969085541, 'au')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:42:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085541, '62c66f17805d642c8b9f871ef4da4a57')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:27', 969084942, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (15.1ms) COMMIT ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084942 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084942, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084942 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:27', NULL, 969084942, 'test_bd', 'successful', '2015-02-24 21:42:27')  (17.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:27' WHERE `dispatched_services`.`id` = 4485  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084942  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '281909b5a6cff6388d83e537d1e92bbf' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:27', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'format', 'journal', 969085542, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'title', 1, 'title', 969085542, 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'author', 1, 'au', 969085542, 'au')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:42:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085542, '281909b5a6cff6388d83e537d1e92bbf')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:27', 969084943, '--- {}\n', 'test_holding', 'holding')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084943, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084943 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:27', NULL, 969084943, 'test_bd', 'successful', '2015-02-24 21:42:27')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:27' WHERE `dispatched_services`.`id` = 4486  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084943 ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084943 ORDER BY id ASC ActiveRecord::SchemaMigration Load (0.8ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:14 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2f49a180ec43d837a027e121259bafe' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:14', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:14', 'format', 'journal', 969085543, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:14', 'isbn', 1, '9789810743734', 969085543, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:14', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085543, 'b2f49a180ec43d837a027e121259bafe')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084944  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:14', NULL, 969084944, 'test_bd', 'queued', '2015-02-24 21:43:14')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:14' WHERE `dispatched_services`.`id` = 4487  (14.9ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084944 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085543) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085543) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084944) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084944) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084944 AND `dispatched_services`.`id` = 4487 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084944, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4487  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084944 LIMIT 1 DispatchedService Load (7.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085543 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085543) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084944 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (64.7ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085543 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084944  (14.3ms) COMMIT Completed 200 OK in 660ms (Views: 165.2ms | ActiveRecord: 143.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 16:43:15 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6660936df732e414fa938d21198dbe6e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:15', 'some book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'format', 'book', 969085544, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'genre', 1, 'book', 969085544, 'book') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'author', 1, 'smith', 969085544, 'Smith') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'title', 1, 'some book', 969085544, 'Some Book')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 21:43:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085544, '6660936df732e414fa938d21198dbe6e')  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084945  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:15', NULL, 969084945, 'BorrowDirect', 'queued', '2015-02-24 21:43:15')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4488  (14.0ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084945 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085544) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085544) ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084945) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084945) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084945 AND `dispatched_services`.`id` = 4488 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084945, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4488  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084945 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085544 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085544) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084945 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (35.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085544 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (40.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084945  (14.8ms) COMMIT Completed 200 OK in 274ms (Views: 19.8ms | ActiveRecord: 161.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 16:43:15 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd81e0288c62f38c18327decd844917a6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:15', 'foo') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'format', 'journal', 969085545, 'journal') SQL (5.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'genre', 1, 'article', 969085545, 'article') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'title', 1, 'foo', 969085545, 'foo') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'author', 1, 'bar', 969085545, 'bar')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 21:43:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085545, 'd81e0288c62f38c18327decd844917a6')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084946  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:15', NULL, 969084946, 'BorrowDirect', 'queued', '2015-02-24 21:43:15')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4489  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084946 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085545) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085545) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084946) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084946) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084946 AND `dispatched_services`.`id` = 4489 AND `dispatched_services`.`status` IN ('queued') DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4489  (14.8ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084946 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085545 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085545) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (4.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084946 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085545 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084946  (14.9ms) COMMIT Completed 200 OK in 211ms (Views: 16.2ms | ActiveRecord: 121.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3e04b46751bb5e7e75f36c78255d8e1' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:15', 'foo') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'format', 'book', 969085546, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'genre', 1, 'book', 969085546, 'book') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'title', 1, 'foo', 969085546, 'foo')  (16.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 21:43:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085546, 'b3e04b46751bb5e7e75f36c78255d8e1')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084947 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:15', NULL, 969084947, 'BorrowDirect', 'failed_fatal', '2015-02-24 21:43:15')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4490  (15.8ms) COMMIT Started GET "/resolve?umlaut.request_id=969084947" for 127.0.0.1 at 2015-02-24 16:43:15 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084947"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084947 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085546 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085546)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084947  (14.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084947 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084947 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084947 [["request_id", 969084947]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085546 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085546) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084947 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084947 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085546 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084947  (14.5ms) COMMIT Completed 200 OK in 73ms (Views: 17.7ms | ActiveRecord: 48.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:15 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05e08d5d303dd9e9e493e3c2c9853485' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:15', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'format', 'journal', 969085547, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'isbn', 1, '9789810743734', 969085547, '9789810743734')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085547, '05e08d5d303dd9e9e493e3c2c9853485')  (21.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084948  (14.3ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:16', NULL, 969084948, 'BorrowDirect', 'queued', '2015-02-24 21:43:16')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4491  (15.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085547) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084948) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084948) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`id` = 4491 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084948, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:16', 'Choose your delivery location', 969084948, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4491  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085547 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084948 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085547 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (39.8ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084948  (22.6ms) COMMIT Completed 200 OK in 308ms (Views: 23.3ms | ActiveRecord: 169.2ms) Started GET "/borrow_direct/BorrowDirect/969084948?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:43:16 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084948"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084948 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4491  (19.7ms) COMMIT  (0.8ms) BEGIN SQL (41.8ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:16', 969084948, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (22.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085547 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547) Redirected to http://www.example.com/resolve?umlaut.request_id=969084948&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A16-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 102ms (ActiveRecord: 92.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4491  (32.9ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016658  (34.0ms) COMMIT Started GET "/resolve?umlaut.request_id=969084948&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A16-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:43:16 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084948", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:43:16-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085547 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547)  (0.8ms) BEGIN SQL (1.6ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084948  (16.0ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 [["request_id", 969084948]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085547 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084948 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085547 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084948  (14.9ms) COMMIT Completed 200 OK in 78ms (Views: 20.1ms | ActiveRecord: 49.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 16:43:16 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9696acbc99371db6c7ca1e43e57f875' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:16', '0109836413') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:16', 'format', 'journal', 969085548, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:16', 'isbn', 1, '0109836413', 969085548, '0109836413')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:43:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085548, 'a9696acbc99371db6c7ca1e43e57f875')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084949  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:16', NULL, 969084949, 'BorrowDirect', 'queued', '2015-02-24 21:43:16')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4492  (14.1ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084949 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085548) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085548) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084949) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084949) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084949 AND `dispatched_services`.`id` = 4492 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084949, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:16', 'This item is not currently available from BorrowDirect', 969084949, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4492  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084949 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085548 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085548) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084949 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085548 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.0ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084949  (14.3ms) COMMIT Completed 200 OK in 247ms (Views: 18.5ms | ActiveRecord: 115.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:16 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '67d9ee989bb9033291dbc9a153abd152' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:16', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:16', 'format', 'journal', 969085549, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:16', 'isbn', 1, '9789810743734', 969085549, '9789810743734')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085549, '67d9ee989bb9033291dbc9a153abd152')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084950  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:16', NULL, 969084950, 'BorrowDirect', 'queued', '2015-02-24 21:43:16')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4493  (14.2ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085549) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084950) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084950) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`id` = 4493 AND `dispatched_services`.`status` IN ('queued')  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084950, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:16', 'Choose your delivery location', 969084950, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.5ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4493  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085549 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084950 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085549 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084950  (16.2ms) COMMIT Completed 200 OK in 296ms (Views: 63.3ms | ActiveRecord: 117.7ms) Started GET "/borrow_direct/BorrowDirect/969084950?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:43:17 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084950"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084950 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4493  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:17', 969084950, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085549 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549) Redirected to http://www.example.com/resolve?umlaut.request_id=969084950&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 47ms (ActiveRecord: 38.8ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4493  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016663  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=969084950&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:43:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084950", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:43:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085549 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084950  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 [["request_id", 969084950]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085549 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084950 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085549 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN SQL (1.1ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084950  (15.0ms) COMMIT Completed 200 OK in 73ms (Views: 16.9ms | ActiveRecord: 47.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd559a54575b4e5084cd3e57adf2bf653' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:17', '9789810743734') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:17', 'format', 'journal', 969085550, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:17', 'isbn', 1, '9789810743734', 969085550, '9789810743734')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085550, 'd559a54575b4e5084cd3e57adf2bf653')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (3.4ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084951  (15.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:17', NULL, 969084951, 'BorrowDirect', 'queued', '2015-02-24 21:43:17')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4494  (14.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084951 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085550) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085550) ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084951) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084951) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084951 AND `dispatched_services`.`id` = 4494 AND `dispatched_services`.`status` IN ('queued')  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084951, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:17', 'Choose your delivery location', 969084951, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (15.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4494  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084951 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085550 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085550) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084951 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084951 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085550 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084951  (14.9ms) COMMIT Completed 200 OK in 256ms (Views: 21.4ms | ActiveRecord: 120.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ab43e71e7b12d89184ba63fd1ea237e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:17', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:17', 'format', 'journal', 969085551, 'journal') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:17', 'isbn', 1, '9789810743734', 969085551, '9789810743734')  (14.4ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085551, '9ab43e71e7b12d89184ba63fd1ea237e')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084952  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:17', NULL, 969084952, 'BorrowDirect', 'queued', '2015-02-24 21:43:17')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4495  (14.2ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085551) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551) ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084952) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084952) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`id` = 4495 AND `dispatched_services`.`status` IN ('queued')  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084952, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:17', 'Choose your delivery location', 969084952, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4495  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085551 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084952 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (47.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (47.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms) Permalink Load (1.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085551 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.4ms)  (0.8ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084952  (14.8ms) COMMIT Completed 200 OK in 298ms (Views: 65.3ms | ActiveRecord: 116.8ms) Started GET "/borrow_direct/BorrowDirect/969084952" for 127.0.0.1 at 2015-02-24 16:43:17 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084952"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084952 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:17', 969084952, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085551 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551) Redirected to http://www.example.com/resolve?umlaut.request_id=969084952&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 26ms (ActiveRecord: 20.3ms) Started GET "/resolve?umlaut.request_id=969084952&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:43:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"969084952", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:43:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085551 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551)  (0.6ms) BEGIN SQL (1.3ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084952  (14.3ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 [["request_id", 969084952]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085551 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084952 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085551 Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN SQL (1.2ms) UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084952  (14.6ms) COMMIT Completed 200 OK in 76ms (Views: 21.4ms | ActiveRecord: 45.9ms) Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '158f1a2344441d5822c31ae3695f5ac8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:18', '9789810743734') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085552, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'isbn', 1, '9789810743734', 969085552, '9789810743734')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085552, '158f1a2344441d5822c31ae3695f5ac8')  (14.2ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084953 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084953, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:18', 'Choose your delivery location', 969084953, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084953 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084953, 'test_bd', 'successful', '2015-02-24 21:43:18')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4496  (15.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084953 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a0e928449a3a48a92bc935d1ae4ddd5' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:18', '0109836413') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085553, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'isbn', 1, '0109836413', 969085553, '0109836413')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085553, '2a0e928449a3a48a92bc935d1ae4ddd5')  (14.0ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084954 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084954, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:18', 'This item is not currently available from BorrowDirect', 969084954, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084954 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084954, 'test_bd', 'successful', '2015-02-24 21:43:18')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4497  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084954 Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aeb05afec39e68ee9b01c374a8d33fe8' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (3.5ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:18', '000000000') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085554, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'isbn', 1, '000000000', 969085554, '000000000')  (50.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085554, 'aeb05afec39e68ee9b01c374a8d33fe8')  (17.0ms) COMMIT ServiceResponse Load (5.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084955 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084955, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:18', 'This item is not currently available from BorrowDirect', 969084955, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084955 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084955, 'test_bd', 'successful', '2015-02-24 21:43:18')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4498  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084955 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0e95cb09f6a162b9ae0ffc83a30bc8ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:18', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085555, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'isbn', 1, '9789810743734', 969085555, '9789810743734')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085555, '0e95cb09f6a162b9ae0ffc83a30bc8ff')  (14.1ms) COMMIT ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084956 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084956, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (15.2ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084956 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084956, 'test_bd', 'failed_temporary', '2015-02-24 21:43:18')  (15.5ms) COMMIT  (0.9ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4499  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084956 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '359829832c8dce1bfe7f4095ae767c3b' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 21:43:18', 'biological foundations of language', '1967') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'book', 969085556, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'auinit', 1, 'eh', 969085556, 'EH') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'aulast', 1, 'lenneberg', 969085556, 'Lenneberg') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'title', 1, 'biological foundations of language', 969085556, 'Biological foundations of language') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'genre', 1, 'book', 969085556, 'book') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'date', 1, '1967', 969085556, '1967')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085556, 'info:sid/google', '359829832c8dce1bfe7f4095ae767c3b')  (14.2ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084957 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084957, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084957 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084957, 'test_bd', 'successful', '2015-02-24 21:43:18')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4500  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084957 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48eda8c179c3003aa61fa414a8cac57a' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 21:43:18', '1072-7825', 'the atlantic monthly', '273', '1994') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085557, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'auinit', 1, 'rd', 969085557, 'RD') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'aulast', 1, 'kaplan', 969085557, 'Kaplan') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'atitle', 1, 'the coming anarchy', 969085557, 'The coming anarchy') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'title', 1, 'the atlantic monthly', 969085557, 'The Atlantic monthly') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'volume', 1, '273', 969085557, '273') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'issue', 1, '2', 969085557, '2') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'date', 1, '1994', 969085557, '1994') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'spage', 1, '44', 969085557, '44') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'issn', 1, '1072-7825', 969085557, '1072-7825')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085557, 'info:sid/google', '48eda8c179c3003aa61fa414a8cac57a')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084958 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084958, 'test_bd', 'successful', '2015-02-24 21:43:18')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4501  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084958 ServiceResponse Exists (2.1ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084958 LIMIT 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54bbfb6ac554b71a1ca52031845939b9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:18', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085558, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085558, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'aulast', 1, 'grimes', 969085558, 'Grimes')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085558, '54bbfb6ac554b71a1ca52031845939b9')  (14.4ms) COMMIT  (1.0ms) BEGIN SQL (2.0ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084959, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')  (14.6ms) COMMIT ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084959 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfadecbc8df06cda459b670585d8e11f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:18', 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085559, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'title', 1, 'title', 969085559, 'title') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'author', 1, 'au', 969085559, 'au')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085559, 'bfadecbc8df06cda459b670585d8e11f')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:18', 969084960, '--- {}\n', 'test_holding', 'holding')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084960, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084960 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084960, 'test_bd', 'successful', '2015-02-24 21:43:18')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4502  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084960 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084960 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecac5ca6307b6edd7bd28c3dbbbc984e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085560, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085560, '121212')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085560, 'ecac5ca6307b6edd7bd28c3dbbbc984e')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084961"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084961 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084961 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 969084961  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084961, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084961\n', 'BorrowDirect', 'bd_request_status')  (14.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085560 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085560) Redirected to http://test.host/resolve?umlaut.request_id=969084961&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.9ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6717af1e583894f31e85e3a1f3ef4ede' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212') SQL (1.4ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085561, 'journal') SQL (3.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085561, '121212')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085561, '6717af1e583894f31e85e3a1f3ef4ede')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084962, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084962"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084962 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084962 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016681  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084962, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016681\n', 'BorrowDirect', 'bd_request_status')  (14.5ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085561 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085561) Redirected to http://test.host/resolve?umlaut.request_id=969084962&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 25.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5257de679ba2cbb5737dbbd72368e8ef' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (3.3ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085562, 'journal') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085562, '121212')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085562, '5257de679ba2cbb5737dbbd72368e8ef')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084963, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084963"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084963 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084963 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084963 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:19', NULL, 969084963, 'BorrowDirect', 'in_progress', '2015-02-24 21:43:19')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4503  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084963, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085562 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085562) Redirected to http://test.host/resolve?umlaut.request_id=969084963&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 72ms (ActiveRecord: 59.5ms) DispatchedService Load (4.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084963 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084963 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084963 ORDER BY id ASC SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4503  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016684  (14.1ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8a0ea8b9684702e1eb673e7955721df' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085563, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085563, '121212')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085563, 'f8a0ea8b9684702e1eb673e7955721df')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084964, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084964"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084964 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084964 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084964 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:19', NULL, 969084964, 'BorrowDirect', 'in_progress', '2015-02-24 21:43:19')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4504  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084964, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085563 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085563) Redirected to http://example.org Completed 302 Found in 70ms (ActiveRecord: 58.3ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d60c30b7d9fda56b9f51877fb07f9f1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085564, 'journal') SQL (0.8ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085564, '121212')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (15.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085564, '1d60c30b7d9fda56b9f51877fb07f9f1')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084965, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084965"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084965 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084965 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084965, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 27ms (ActiveRecord: 22.6ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1e389a1c9a180c4473328388f1720ce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085565, 'journal') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085565, '121212')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085565, 'd1e389a1c9a180c4473328388f1720ce')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084966, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084966"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084966 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084966 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084966 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:19', NULL, 969084966, 'BorrowDirect', 'in_progress', '2015-02-24 21:43:19')  (14.4ms) COMMIT  (1.4ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4505 BorrowDirect: Error placing request: BorrowDirect::HttpError HTTP Error: 502:
 
 
 
 
. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084964 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpError\n:message: ! \'HTTP Error: 502:
 \n
 
 
 \n
 
 
\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4504  (18.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084966, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016686  (14.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085565 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085565) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Completed 403 Forbidden in 73ms (Views: 0.3ms | ActiveRecord: 63.4ms)  (16.4ms) COMMIT ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dcfb2776a32d5e1440d1e9e6e055a1f3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212') SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085566, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085566, '121212')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085566, 'dcfb2776a32d5e1440d1e9e6e055a1f3')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084967"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084967 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (4.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084967 ORDER BY id ASC  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084967, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085566 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085566) Redirected to http://test.host/resolve?umlaut.request_id=969084967&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 24.7ms)  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db4821f75e22b6f8e1b037ce626a3463' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '9789810743734') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085567, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '9789810743734', 969085567, '9789810743734')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085567, 'db4821f75e22b6f8e1b037ce626a3463')  (14.1ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084968 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:19', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084968, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084968 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:19', NULL, 969084968, 'test_bd', 'successful', '2015-02-24 21:43:19')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4506  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084968 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6562e593413adb87004ab257814535e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:20', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'format', 'journal', 969085568, 'journal') BorrowDirect: Error placing request: BorrowDirect::HttpError HTTP Error: 502:
 
 
 
 
. Backtrace: /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in `request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request' /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' SQL (1.3ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'title', 1, 'title', 969085568, 'title') DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084966 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (0.9ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'author', 1, 'au', 969085568, 'au')  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpError\n:message: ! \'HTTP Error: 502:
 \n
 
 
 \n
 
 
\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4505  (16.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:43:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085568, 'd6562e593413adb87004ab257814535e')  (16.8ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:20', 969084966, '---\n:status: error\n', 'BorrowDirect', 'bd_request_status')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:20', 969084969, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')  (14.3ms) COMMIT  (14.2ms) COMMIT ServiceResponse Load (4.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084969 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084969, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084969 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:20', NULL, 969084969, 'test_bd', 'successful', '2015-02-24 21:43:20')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4507  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084969 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f389b01ecadae1ef8d4b5862e9d47c22' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:20', 'title') SQL (1.2ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'format', 'journal', 969085569, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'title', 1, 'title', 969085569, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'author', 1, 'au', 969085569, 'au')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:43:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085569, 'f389b01ecadae1ef8d4b5862e9d47c22')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:20', 969084970, '---\n:status: Not Charged\n', 'test_holding', 'holding')  (14.0ms) COMMIT ServiceResponse Load (5.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084970 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084970 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:20', NULL, 969084970, 'test_bd', 'successful', '2015-02-24 21:43:20')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4508  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084970 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7e7bc2be7995e2561013e015c61542b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:20', 'title') SQL (1.1ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'format', 'journal', 969085570, 'journal') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'title', 1, 'title', 969085570, 'title') SQL (1.0ms) INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'author', 1, 'au', 969085570, 'au')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:43:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085570, 'b7e7bc2be7995e2561013e015c61542b')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:20', 969084971, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')  (14.7ms) COMMIT ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084971 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084971, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')  (16.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084971 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:20', NULL, 969084971, 'test_bd', 'successful', '2015-02-24 21:43:20')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4509  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084971 ActiveRecord::SchemaMigration Load (11.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (352.4ms) DROP DATABASE IF EXISTS `umlaut3_test`  (6.0ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (46.8ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (95.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (68.5ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (90.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (37.3ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (76.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.3ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (69.7ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.9ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (87.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (82.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.6ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (85.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (79.3ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (83.1ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (83.7ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (83.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (86.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (35.7ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (73.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (83.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (113.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (36.2ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (72.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (98.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (34.8ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (85.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (71.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (44.4ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (79.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (38.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (111.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.3ms) SELECT version FROM `schema_migrations`  (15.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6a1837c2eece05924450ff25e0216f2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:07:08.129013') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:07:08.131750') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2015-02-26 17:07:08.133625') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2015-02-26 17:07:08.135550')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b6a1837c2eece05924450ff25e0216f2', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2015-02-26 17:07:08.188070')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 1, 'test_holding', 'holding', '2015-02-26 17:07:08.229967')  (14.9ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:07:08.259047')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:07:08.294346', '2015-02-26 17:07:08.294346')  (14.5ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f63e7e88a2b7c43166b080fc7c388f8c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:07:08.327814') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:07:08.329944') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2015-02-26 17:07:08.331655') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2015-02-26 17:07:08.333351')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f63e7e88a2b7c43166b080fc7c388f8c', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2015-02-26 17:07:08.353675')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 2, 'test_holding', 'holding', '2015-02-26 17:07:08.374689')  (13.8ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2015-02-26 17:07:08.401651', '2015-02-26 17:07:08.401651')  (14.5ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a35417d0529f0dbdc1bdb9660eb2d1a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:07:08.465294') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:07:08.467523') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2015-02-26 17:07:08.469400') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2015-02-26 17:07:08.471052')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0a35417d0529f0dbdc1bdb9660eb2d1a', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2015-02-26 17:07:08.490378')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 3, 'test_holding', 'holding', '2015-02-26 17:07:08.512437')  (14.6ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:07:08.541886')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2015-02-26 17:07:08.563267', '2015-02-26 17:07:08.563267')  (13.9ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f51795f4bf4282f86b742acee447897e' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:07:08.596421') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:07:08.598971') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 4, '2015-02-26 17:07:08.600828') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 4, '2015-02-26 17:07:08.602529') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 4, '2015-02-26 17:07:08.604364') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:07:08.606195') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 4, '2015-02-26 17:07:08.607999')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f51795f4bf4282f86b742acee447897e', 'd95884a882a64501650fb8f9deae5104', 4, 'info:sid/google', '0.0.0.0', '2015-02-26 17:07:08.627889')  (14.8ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:07:08.653286')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2015-02-26 17:07:08.675366', '2015-02-26 17:07:08.675366')  (18.6ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '953049d3572d76800ced9021fcdfbfe6' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:07:08.714776') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:07:08.716947') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 5, '2015-02-26 17:07:08.718767') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 5, '2015-02-26 17:07:08.720481') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 5, '2015-02-26 17:07:08.722245') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 5, '2015-02-26 17:07:08.724238') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 5, '2015-02-26 17:07:08.726073') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 5, '2015-02-26 17:07:08.727928') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 5, '2015-02-26 17:07:08.729564') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 5, '2015-02-26 17:07:08.731251') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 5, '2015-02-26 17:07:08.733110')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '953049d3572d76800ced9021fcdfbfe6', '06d451b80bf9fe3ce6849a48c98522d7', 5, 'info:sid/google', '0.0.0.0', '2015-02-26 17:07:08.754506')  (16.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2015-02-26 17:07:08.779428', '2015-02-26 17:07:08.779428')  (14.9ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 ServiceResponse Exists (1.4ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 5 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee768494caf41a033183110db15a027a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:07:08.821632') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:07:08.823501') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 6, '2015-02-26 17:07:08.825373') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 6, '2015-02-26 17:07:08.827146')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ee768494caf41a033183110db15a027a', '62590701c6f35b45309577ef8c8c22b4', 6, '0.0.0.0', '2015-02-26 17:07:08.846768')  (17.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:07:08.873446')  (14.7ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f00d98911f55f87edc58b2e0420bdd02' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:08.989859') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:07:08.991964') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:07:08.994096')  (16.0ms) COMMIT  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f00d98911f55f87edc58b2e0420bdd02', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:07:09.016370')  (14.8ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 7, '2015-02-26 17:07:09.050604', '2015-02-26 17:07:09.050604')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:09.178652')  (21.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:07:09.233167' WHERE `dispatched_services`.`id` = 6  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (10.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (36.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (40.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (101.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (11.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (35.2ms)  (0.9ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 2382ms (Views: 2073.7ms | ActiveRecord: 70.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:07:11 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14643647de3f5201afa9bcb54240b139' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:07:11.394470') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2015-02-26 17:07:11.396538') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2015-02-26 17:07:11.398344') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 8, '2015-02-26 17:07:11.400013') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 8, '2015-02-26 17:07:11.401785')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '14643647de3f5201afa9bcb54240b139', 'a03fb1fb17f24f5ea845bf6c4450490b', 8, '127.0.0.1', '2015-02-26 17:07:11.422024')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:07:11.448746', '2015-02-26 17:07:11.448746')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:07:11.501316')  (15.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:11.524925' WHERE `dispatched_services`.`id` = 7  (14.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 189ms (Views: 17.9ms | ActiveRecord: 70.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:07:11 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '103945552b84f5a8602e75c7662adad6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:07:11.590925') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:07:11.592971') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 9, '2015-02-26 17:07:11.594800') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 9, '2015-02-26 17:07:11.596530') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 9, '2015-02-26 17:07:11.598226')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '103945552b84f5a8602e75c7662adad6', 'bc13b80c2923ce2cbe0c8347141587a7', 9, '127.0.0.1', '2015-02-26 17:07:11.618501')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:07:11.645653', '2015-02-26 17:07:11.645653')  (16.3ms) COMMIT  (2.7ms) BEGIN  (0.9ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:11.704295' WHERE `dispatched_services`.`id` = 8  (14.3ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 208ms (Views: 17.0ms | ActiveRecord: 74.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b9ffb0e0e0db0af4990a68c6f0d1888' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:07:11.802171') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2015-02-26 17:07:11.804174') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2015-02-26 17:07:11.806167') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2015-02-26 17:07:11.808086')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1b9ffb0e0e0db0af4990a68c6f0d1888', '318e542032e1812e600e07efbdb1dfcc', 10, '0.0.0.0', '2015-02-26 17:07:11.828156')  (15.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 10, '2015-02-26 17:07:11.851459', '2015-02-26 17:07:11.851459')  (16.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Started GET "/resolve?umlaut.request_id=10" for 127.0.0.1 at 2015-02-26 12:07:11 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"10"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)  (0.8ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 [["request_id", 10]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 37ms (Views: 15.9ms | ActiveRecord: 13.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c60dfc5b4a97ca89df514b491cbfbfd7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:11.936113') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:07:11.938287') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2015-02-26 17:07:11.940225')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c60dfc5b4a97ca89df514b491cbfbfd7', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2015-02-26 17:07:11.964502')  (18.5ms) COMMIT  (0.7ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2015-02-26 17:07:11.995600', '2015-02-26 17:07:11.995600')  (18.8ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 11, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:12.053547')  (18.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 11, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:12.087337')  (14.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:12.112741' WHERE `dispatched_services`.`id` = 10  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (46.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (49.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (50.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (70.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 281ms (Views: 62.0ms | ActiveRecord: 85.2ms) Started GET "/borrow_direct/BorrowDirect/11?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:07:12 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:07:12.225974' WHERE `dispatched_services`.`id` = 10  (19.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 11, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:12.250019')  (29.6ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Redirected to http://www.example.com/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 71ms (ActiveRecord: 58.7ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:07:12.300169' WHERE `dispatched_services`.`id` = 10  (20.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12  (61.7ms) COMMIT Started GET "/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:07:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"11", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:07:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.6ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 [["request_id", 11]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.4ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 40ms (Views: 19.0ms | ActiveRecord: 11.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:07:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b274670326e9f138058e45768477293c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:07:12.450767') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:07:12.452944') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 12, '2015-02-26 17:07:12.454820')  (73.8ms) COMMIT  (0.8ms) BEGIN SQL (16.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b274670326e9f138058e45768477293c', '9902a1d22a141a826ae31b1c83cb928c', 12, '127.0.0.1', '2015-02-26 17:07:12.535122')  (20.0ms) COMMIT  (0.9ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2015-02-26 17:07:12.583836', '2015-02-26 17:07:12.583836')  (40.9ms) COMMIT  (0.9ms) BEGIN  (1.0ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:12.666504')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 12, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:07:12.692604')  (15.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:12.755801' WHERE `dispatched_services`.`id` = 11  (17.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 362ms (Views: 18.7ms | ActiveRecord: 174.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c446cbececefbb91f01ab6028ecab5d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:12.823554') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:07:12.825718') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2015-02-26 17:07:12.827573')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '6c446cbececefbb91f01ab6028ecab5d', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2015-02-26 17:07:12.847987')  (14.3ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2015-02-26 17:07:12.874655', '2015-02-26 17:07:12.874655')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:12.927357')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 13, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:12.956176')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:12.980621' WHERE `dispatched_services`.`id` = 12  (15.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 216ms (Views: 19.7ms | ActiveRecord: 67.5ms) Started GET "/borrow_direct/BorrowDirect/13?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:07:13 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:07:13.043649' WHERE `dispatched_services`.`id` = 12  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 13, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:13.062853')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Redirected to http://www.example.com/resolve?umlaut.request_id=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 48ms (ActiveRecord: 37.7ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:13.135637' WHERE `dispatched_services`.`id` = 12  (18.9ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 17  (17.8ms) COMMIT Started GET "/resolve?umlaut.request_id=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:07:13 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"13", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:07:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (1.0ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 [["request_id", 13]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 [["id", 13]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 38ms (Views: 16.8ms | ActiveRecord: 11.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '553c06d9b29e09d4b2c554c3cc25952f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:13.235549') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:07:13.237598') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:07:13.239432')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '553c06d9b29e09d4b2c554c3cc25952f', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2015-02-26 17:07:13.260317')  (15.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2015-02-26 17:07:13.288235', '2015-02-26 17:07:13.288235')  (17.9ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:13.349865')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 14, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:13.378043')  (15.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:13.404025' WHERE `dispatched_services`.`id` = 13  (25.3ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 238ms (Views: 20.6ms | ActiveRecord: 72.8ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7aa1aa02876475445d9bec978b2681b0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:13.524268') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:07:13.526285') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2015-02-26 17:07:13.528342')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7aa1aa02876475445d9bec978b2681b0', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2015-02-26 17:07:13.549895')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2015-02-26 17:07:13.576478', '2015-02-26 17:07:13.576478')  (15.2ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:13.630706')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 15, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:13.659779')  (15.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:13.685342' WHERE `dispatched_services`.`id` = 14  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.4ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 219ms (Views: 20.5ms | ActiveRecord: 69.0ms) Started GET "/borrow_direct/BorrowDirect/15" for 127.0.0.1 at 2015-02-26 12:07:13 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 15, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:13.746813')  (14.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Redirected to http://www.example.com/resolve?umlaut.request_id=15&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 20.8ms) Started GET "/resolve?umlaut.request_id=15&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:07:13 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"15", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:07:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 [["request_id", 15]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 [["id", 15]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 42ms (Views: 20.1ms | ActiveRecord: 11.6ms) ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.3ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5c0953006f4a59a64f4f2a4df005d4a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:13.882572') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:07:13.884629') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2015-02-26 17:07:13.886444')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c5c0953006f4a59a64f4f2a4df005d4a', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2015-02-26 17:07:13.906150')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 16  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 16\n', 16, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:13.932680')  (14.5ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Redirected to http://test.host/resolve?umlaut.request_id=16&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.4ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38e236ca223e117318d1d43c94a10ecc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:13.962708') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:07:13.964736') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2015-02-26 17:07:13.966558')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '38e236ca223e117318d1d43c94a10ecc', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2015-02-26 17:07:13.986579')  (20.9ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 17, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.014960')  (15.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 24  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 24\n', 17, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.042093')  (19.4ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) Redirected to http://test.host/resolve?umlaut.request_id=17&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 27.0ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94a9fec4906a9b8d2c1794ec293ba61e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.078471') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:07:14.080454') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2015-02-26 17:07:14.082353')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '94a9fec4906a9b8d2c1794ec293ba61e', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2015-02-26 17:07:14.105777')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 18, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.126752')  (15.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2015-02-26 17:07:14.155938', '2015-02-26 17:07:14.155938')  (18.0ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 18, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.181182')  (15.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Redirected to http://test.host/resolve?umlaut.request_id=18&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 58ms (ActiveRecord: 46.2ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.5ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:07:14.225691' WHERE `dispatched_services`.`id` = 15  (19.1ms) COMMIT  (1.4ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27  (18.1ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29733c88b3725889c05760bf72a05df2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.281481') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:07:14.283597') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:07:14.285716')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '29733c88b3725889c05760bf72a05df2', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:07:14.304930')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 19, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.326418')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 19, '2015-02-26 17:07:14.353880', '2015-02-26 17:07:14.353880')  (14.9ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.375541')  (14.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://example.org Completed 302 Found in 52ms (ActiveRecord: 41.4ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5cf12e12d04c2716e3766c3cec4f830' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.409508') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:07:14.411568') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:07:14.413576')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a5cf12e12d04c2716e3766c3cec4f830', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:07:14.432831')  (37.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.477273')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.503597')  (14.3ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 71ms (ActiveRecord: 19.1ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b05eda069aba98fb561221663de746bd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.575553') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:07:14.577505') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:07:14.579358')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b05eda069aba98fb561221663de746bd', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:07:14.598895')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.620674')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:07:14.647820', '2015-02-26 17:07:14.647820')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.668906')  (15.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 56ms (Views: 0.4ms | ActiveRecord: 41.1ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Request Load (5.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '123a4489e95047acf8c779f60adc3d5d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN  (9.5ms) BEGIN SQL (3.5ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:07:14.712709' WHERE `dispatched_services`.`id` = 17 SQL (2.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.723084') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:07:14.726812') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:07:14.728690')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 33  (16.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '123a4489e95047acf8c779f60adc3d5d', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:07:14.750515')  (19.0ms) COMMIT  (16.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.779221')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://test.host/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.9ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df41b5f9edb894a00ee341eff2b7688d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:14.811112') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:07:14.813170') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2015-02-26 17:07:14.814937')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'df41b5f9edb894a00ee341eff2b7688d', '1f2487b5ab29a0f58587335258d7f8e0', 23, '0.0.0.0', '2015-02-26 17:07:14.835540')  (15.9ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:14.862703')  (14.2ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2015-02-26 17:07:14.883912', '2015-02-26 17:07:14.883912')  (15.5ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15bfb2bce95cb8b132e623892394d090' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:14.914353') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:07:14.916351') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2015-02-26 17:07:14.918056')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '15bfb2bce95cb8b132e623892394d090', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2015-02-26 17:07:14.942359')  (13.8ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:14.966667')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 24, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:14.994072')  (16.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2015-02-26 17:07:15.020192', '2015-02-26 17:07:15.020192')  (15.2ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '163d0f07853a321ec49ec012cc4e8a12' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:07:15.049500') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:07:15.051698') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2015-02-26 17:07:15.053519')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '163d0f07853a321ec49ec012cc4e8a12', '9902a1d22a141a826ae31b1c83cb928c', 25, '0.0.0.0', '2015-02-26 17:07:15.073532')  (16.0ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:15.100134')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 25, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:07:15.171781')  (16.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2015-02-26 17:07:15.195527', '2015-02-26 17:07:15.195527')  (16.6ms) COMMIT  (1.1ms) BEGIN  (1.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c353fc8d0a17e6b5bf4da9a7ae57fda' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:07:15.226651') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:07:15.228901') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 26, '2015-02-26 17:07:15.230880')  (19.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7c353fc8d0a17e6b5bf4da9a7ae57fda', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 26, '0.0.0.0', '2015-02-26 17:07:15.255284')  (14.4ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:15.280778')  (15.6ms) COMMIT  (1.1ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 26, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:07:15.308120')  (15.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:07:15.330867', '2015-02-26 17:07:15.330867')  (16.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8804b5444b808ba6b18d06e3d65d8d3f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:15.360848') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:07:15.362883') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2015-02-26 17:07:15.364743')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8804b5444b808ba6b18d06e3d65d8d3f', '1f2487b5ab29a0f58587335258d7f8e0', 27, '0.0.0.0', '2015-02-26 17:07:15.385426')  (31.5ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:15.427699')  (21.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 27, '2015-02-26 17:07:15.462297', '2015-02-26 17:07:15.462297')  (17.6ms) COMMIT  (0.9ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:07:15.490611' WHERE `dispatched_services`.`id` = 22  (15.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbc664e50d3742d319c30384506ff4e4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:07:15.551295') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:07:15.553380') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2015-02-26 17:07:15.555395') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2015-02-26 17:07:15.557241')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'dbc664e50d3742d319c30384506ff4e4', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2015-02-26 17:07:15.577773')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (28, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:07:15.599744')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:07:15.620745')  (17.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:07:15.645335', '2015-02-26 17:07:15.645335')  (18.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC ActiveRecord::SchemaMigration Load (2.9ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (82.6ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.9ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (39.8ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (84.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (94.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (90.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.2ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (91.5ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.3ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (71.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.3ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (86.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (70.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (36.1ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (79.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (111.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (86.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (79.3ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (80.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (85.1ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (35.1ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (80.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (72.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (76.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.5ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (80.8ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (74.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (33.6ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (78.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (68.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (33.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (80.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (34.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (96.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.1ms) SELECT version FROM `schema_migrations`  (14.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '574d7240e0c29d218b37837679991a25' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:55.599401') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:08:55.601919') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:08:55.603889')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '574d7240e0c29d218b37837679991a25', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:08:55.672458')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:08:55.721418', '2015-02-26 17:08:55.721418')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:55.871544')  (14.8ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:08:55.935716' WHERE `dispatched_services`.`id` = 1  (15.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (7.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (41.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (42.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (96.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.9ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 662ms (Views: 144.1ms | ActiveRecord: 88.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:08:56 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26031e9be5163054f586d90d00212073' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:08:56.141005') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:08:56.143182') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:08:56.144930') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:08:56.146575') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:08:56.148474')  (31.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '26031e9be5163054f586d90d00212073', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:08:56.186238')  (41.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:08:56.241057', '2015-02-26 17:08:56.241057')  (17.0ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (43.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:08:56.326805')  (32.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:56.367746' WHERE `dispatched_services`.`id` = 2  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (35.5ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 322ms (Views: 18.6ms | ActiveRecord: 152.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:08:56 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c812855a71a044aad4f19ad5a8871389' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:08:56.470845') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:08:56.473103') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:08:56.475025') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:08:56.476929') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:08:56.478854')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c812855a71a044aad4f19ad5a8871389', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:08:56.502106')  (17.7ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:08:56.533116', '2015-02-26 17:08:56.533116')  (15.1ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:56.589410' WHERE `dispatched_services`.`id` = 3  (16.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (17.9ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 174ms (Views: 15.7ms | ActiveRecord: 75.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a20e08ebb0b433605a138e679cacdcb' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:08:56.648001') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:08:56.650174') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:08:56.652175') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:08:56.654157')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0a20e08ebb0b433605a138e679cacdcb', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:08:56.674088')  (15.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:08:56.696738', '2015-02-26 17:08:56.696738')  (15.2ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:08:56 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 36ms (Views: 16.4ms | ActiveRecord: 11.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:56 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '97fdad2518ce7cd91f254230aed0b49a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:56.813292') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:08:56.815368') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:08:56.817145')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '97fdad2518ce7cd91f254230aed0b49a', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:08:56.837325')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:08:56.864553', '2015-02-26 17:08:56.864553')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:56.917008')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:56.947027')  (14.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:56.972459' WHERE `dispatched_services`.`id` = 5  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (34.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (36.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (37.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (55.0ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 247ms (Views: 22.3ms | ActiveRecord: 95.9ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:08:57 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:08:57.067700' WHERE `dispatched_services`.`id` = 5  (16.8ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:08:57.089529')  (15.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 60ms (ActiveRecord: 41.8ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:08:57.125980' WHERE `dispatched_services`.`id` = 5  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (16.1ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:08:57 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:08:57-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.0ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 18.2ms | ActiveRecord: 11.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:08:57 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ec2272d765f3b3d84981c46a8fe8e07' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:08:57.266492') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:08:57.268532') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:08:57.270516')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '0ec2272d765f3b3d84981c46a8fe8e07', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:08:57.290921')  (18.4ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:08:57.321703', '2015-02-26 17:08:57.321703')  (18.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:57.378180')  (18.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:08:57.409394')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:57.431557' WHERE `dispatched_services`.`id` = 6  (15.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 220ms (Views: 18.1ms | ActiveRecord: 74.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:57 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb1328d0e794f17891902df924f34c13' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:57.533829') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:08:57.536035') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:08:57.537996')  (18.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'eb1328d0e794f17891902df924f34c13', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:08:57.562708')  (20.4ms) COMMIT  (1.1ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:08:57.596038', '2015-02-26 17:08:57.596038')  (16.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:57.651679')  (20.3ms) COMMIT  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:57.686767')  (39.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:57.737199' WHERE `dispatched_services`.`id` = 7  (38.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 285ms (Views: 19.9ms | ActiveRecord: 80.5ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:08:57 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:08:57.824553' WHERE `dispatched_services`.`id` = 7  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:08:57.845927')  (20.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 57ms (ActiveRecord: 47.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:57.883784' WHERE `dispatched_services`.`id` = 7  (20.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (18.4ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:08:57 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:08:57-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.8ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 38ms (Views: 15.9ms | ActiveRecord: 12.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:58 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d213ec65f44771f3c830a607092098d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:58.022002') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:08:58.024167') SQL (1.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:08:58.026078')  (51.4ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1d213ec65f44771f3c830a607092098d', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:08:58.084019')  (25.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:08:58.121208', '2015-02-26 17:08:58.121208')  (19.2ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (26.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:58.191021')  (13.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:58.218454')  (14.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:58.243624' WHERE `dispatched_services`.`id` = 8  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 279ms (Views: 19.7ms | ActiveRecord: 120.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:58 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '634b6cd22ad47ecbb577254add6cf793' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:58.313223') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:08:58.315224') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:08:58.317102')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '634b6cd22ad47ecbb577254add6cf793', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:08:58.375226')  (18.5ms) COMMIT  (1.0ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:08:58.406779', '2015-02-26 17:08:58.406779')  (40.0ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (1.2ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:58.489930')  (18.1ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:58.522213')  (15.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:58.548727' WHERE `dispatched_services`.`id` = 9  (15.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.7ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 294ms (Views: 19.8ms | ActiveRecord: 100.3ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:08:58 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.7ms) BEGIN SQL (2.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:08:58.611940')  (14.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 21.4ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:08:58 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:08:58-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.0ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 42ms (Views: 19.7ms | ActiveRecord: 12.2ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd60d5a96cd33deba7b35250455763c1f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:58.729004') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:08:58.731115') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-02-26 17:08:58.732963')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd60d5a96cd33deba7b35250455763c1f', '1f2487b5ab29a0f58587335258d7f8e0', 10, '0.0.0.0', '2015-02-26 17:08:58.753533')  (25.3ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:58.789441')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2015-02-26 17:08:58.811108', '2015-02-26 17:08:58.811108')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '845bea5cc171a2ea2977f55fa52fa084' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:08:58.842715') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2015-02-26 17:08:58.844839') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 11, '2015-02-26 17:08:58.846612') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 11, '2015-02-26 17:08:58.848370') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 11, '2015-02-26 17:08:58.850029') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2015-02-26 17:08:58.851862') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 11, '2015-02-26 17:08:58.853569')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '845bea5cc171a2ea2977f55fa52fa084', 'd95884a882a64501650fb8f9deae5104', 11, 'info:sid/google', '0.0.0.0', '2015-02-26 17:08:58.874066')  (14.4ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:08:58.899032')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:08:58.921040', '2015-02-26 17:08:58.921040')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a8422b564148656993e8c78e6e65fd7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:08:58.956010') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:08:58.958058') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 12, '2015-02-26 17:08:58.959820') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 12, '2015-02-26 17:08:58.961527') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 12, '2015-02-26 17:08:58.963361') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 12, '2015-02-26 17:08:58.965130') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 12, '2015-02-26 17:08:58.966846') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 12, '2015-02-26 17:08:58.968573') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 12, '2015-02-26 17:08:58.970395') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 12, '2015-02-26 17:08:58.972267') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 12, '2015-02-26 17:08:58.974037')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5a8422b564148656993e8c78e6e65fd7', '06d451b80bf9fe3ce6849a48c98522d7', 12, 'info:sid/google', '0.0.0.0', '2015-02-26 17:08:58.994207')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2015-02-26 17:08:59.016287', '2015-02-26 17:08:59.016287')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 ServiceResponse Exists (1.1ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 12 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40a4a898956575fc5b3eae293885d418' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:08:59.053106') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:08:59.055022') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 13, '2015-02-26 17:08:59.056745') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 13, '2015-02-26 17:08:59.058463')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '40a4a898956575fc5b3eae293885d418', '62590701c6f35b45309577ef8c8c22b4', 13, '0.0.0.0', '2015-02-26 17:08:59.078435')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:08:59.100900')  (14.1ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62423cd53726af9275e8672942be2ed1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:59.133183') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:08:59.135122') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:08:59.136953')  (14.7ms) COMMIT  (1.4ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '62423cd53726af9275e8672942be2ed1', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2015-02-26 17:08:59.157217')  (17.8ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:59.185548')  (20.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 14, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:59.218783')  (23.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2015-02-26 17:08:59.293874', '2015-02-26 17:08:59.293874')  (66.1ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a489a73a65e08b8873ea1d1b731d3981' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:08:59.374120') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:08:59.376151') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 15, '2015-02-26 17:08:59.378059')  (19.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a489a73a65e08b8873ea1d1b731d3981', '9902a1d22a141a826ae31b1c83cb928c', 15, '0.0.0.0', '2015-02-26 17:08:59.402211')  (14.0ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:59.426732')  (15.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 15, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:08:59.455293')  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2015-02-26 17:08:59.477091', '2015-02-26 17:08:59.477091')  (15.0ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77b9517dda89cc39da68793b54d2599d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:59.506175') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:08:59.508341') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2015-02-26 17:08:59.510257')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '77b9517dda89cc39da68793b54d2599d', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2015-02-26 17:08:59.530897')  (14.4ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:59.556149')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 16, '2015-02-26 17:08:59.582906', '2015-02-26 17:08:59.582906')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:08:59.607704' WHERE `dispatched_services`.`id` = 15  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60781e5817e67b9744c6e78c9aa39670' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:08:59.664279') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:08:59.666336') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 17, '2015-02-26 17:08:59.668309')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '60781e5817e67b9744c6e78c9aa39670', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 17, '0.0.0.0', '2015-02-26 17:08:59.688193')  (15.1ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:59.713610')  (19.5ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 17, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:08:59.744415')  (36.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2015-02-26 17:08:59.787569', '2015-02-26 17:08:59.787569')  (15.3ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5ea8be6aaf9331d0d4c4c9e81d04d3c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:08:59.817700') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:08:59.819711') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2015-02-26 17:08:59.821692') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2015-02-26 17:08:59.823500')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd5ea8be6aaf9331d0d4c4c9e81d04d3c', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2015-02-26 17:08:59.843062')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (18, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:08:59.906687')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:08:59.928167')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:08:59.949542', '2015-02-26 17:08:59.949542')  (17.8ms) COMMIT  (0.9ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.9ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d4c20f24ee6e27d82ce41d7a10da1a2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:08:59.996390') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:08:59.998518') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2015-02-26 17:09:00.000509') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2015-02-26 17:09:00.002473')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1d4c20f24ee6e27d82ce41d7a10da1a2', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2015-02-26 17:09:00.025919')  (18.7ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 19, 'test_holding', 'holding', '2015-02-26 17:09:00.051710')  (14.4ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:00.080540')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2015-02-26 17:09:00.102318', '2015-02-26 17:09:00.102318')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd59275dddb58f4574bab1a6fb4f28a5f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:00.130458') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:09:00.132522') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2015-02-26 17:09:00.134444') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2015-02-26 17:09:00.136357')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd59275dddb58f4574bab1a6fb4f28a5f', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2015-02-26 17:09:00.155684')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 20, 'test_holding', 'holding', '2015-02-26 17:09:00.176985')  (14.3ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2015-02-26 17:09:00.204198', '2015-02-26 17:09:00.204198')  (14.7ms) COMMIT  (0.9ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '623388d0d1ffac1aafa816e46560cafb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:00.233308') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:09:00.235336') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2015-02-26 17:09:00.237270') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2015-02-26 17:09:00.239076')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '623388d0d1ffac1aafa816e46560cafb', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2015-02-26 17:09:00.258729')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 21, 'test_holding', 'holding', '2015-02-26 17:09:00.279799')  (14.2ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:00.307384')  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2015-02-26 17:09:00.329063', '2015-02-26 17:09:00.329063')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d62fcf717c846e3c81e1d751768b193' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.370273') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:09:00.372416') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:09:00.374203')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8d62fcf717c846e3c81e1d751768b193', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:09:00.393462')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 22  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 22\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.419310')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://test.host/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.6ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4201cdb2fa70a596c399bda8e0a2936e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.448601') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:09:00.450679') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-02-26 17:09:00.452394')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4201cdb2fa70a596c399bda8e0a2936e', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-02-26 17:09:00.472374')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:00.494661')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 34  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 34\n', 23, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.564812')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) Redirected to http://test.host/resolve?umlaut.request_id=23&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3e768bcc238f2cb706fcab717202ec0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.595776') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:09:00.597893') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-02-26 17:09:00.599901')  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd3e768bcc238f2cb706fcab717202ec0', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-02-26 17:09:00.623501')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 24, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:00.644558')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2015-02-26 17:09:00.671743', '2015-02-26 17:09:00.671743')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.693026')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Redirected to http://test.host/resolve?umlaut.request_id=24&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 53ms (ActiveRecord: 41.2ms) DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:00.736735' WHERE `dispatched_services`.`id` = 21  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (14.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de316146134d506cf78cf462eee42cb1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.782090') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:09:00.784117') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2015-02-26 17:09:00.786069')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'de316146134d506cf78cf462eee42cb1', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2015-02-26 17:09:00.805631')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 25, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:00.826400')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2015-02-26 17:09:00.852959', '2015-02-26 17:09:00.852959')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 25, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.873757')  (14.5ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) Redirected to http://example.org Completed 302 Found in 54ms (ActiveRecord: 40.2ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e22bf1aa56935d9b30af102132d8dc10' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.907628') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:09:00.909584') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2015-02-26 17:09:00.911419')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e22bf1aa56935d9b30af102132d8dc10', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2015-02-26 17:09:00.931185')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 26, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:00.952642')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 26, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.979163')  (14.5ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 25ms (ActiveRecord: 18.9ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8cc1e918b8bc28813b23317539fa1bd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:01.005600') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:09:01.007555') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2015-02-26 17:09:01.009288')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (4.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c8cc1e918b8bc28813b23317539fa1bd', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2015-02-26 17:09:01.028740')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 27, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:01.053218')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2015-02-26 17:09:01.081480', '2015-02-26 17:09:01.081480')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 27, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:01.102438')  (14.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 55ms (Views: 0.4ms | ActiveRecord: 40.1ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Request Load (5.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f86b542ab7b0f25c0a0c9f147227a430' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN  (9.7ms) BEGIN SQL (3.7ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:01.187536' WHERE `dispatched_services`.`id` = 23 SQL (3.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:01.198335') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:09:01.202187') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2015-02-26 17:09:01.204185')  (16.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 43  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f86b542ab7b0f25c0a0c9f147227a430', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2015-02-26 17:09:01.225812')  (18.1ms) COMMIT  (15.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 28, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:01.253667')  (14.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Redirected to http://test.host/resolve?umlaut.request_id=28&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.7ms) ActiveRecord::SchemaMigration Load (2.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (100.9ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.8ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (42.9ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (89.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (85.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (78.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.4ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (73.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (67.7ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.8ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (78.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (68.5ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.1ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (100.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (76.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (70.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (76.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (72.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (97.8ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (39.5ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (72.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (80.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (69.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (36.9ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (74.8ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (80.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (34.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (79.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (66.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (33.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (76.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (33.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (88.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.1ms) SELECT version FROM `schema_migrations`  (19.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:25 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8344199057e998d5cc4bcede0fb50ef' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:25.886994') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:09:25.922898') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:09:25.925298')  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f8344199057e998d5cc4bcede0fb50ef', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:09:25.964328')  (14.3ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:09:26.014529', '2015-02-26 17:09:26.014529')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:26.166029')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:09:26.230886' WHERE `dispatched_services`.`id` = 1  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (7.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (41.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (42.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (97.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 675ms (Views: 143.2ms | ActiveRecord: 90.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:09:26 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '22b309c711095d92ebbabca017a6ebe7' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:09:26.432607') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:09:26.434777') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:09:26.436869') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:09:26.438704') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:09:26.440440')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '22b309c711095d92ebbabca017a6ebe7', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:09:26.461325')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:09:26.489062', '2015-02-26 17:09:26.489062')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:09:26.541857')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:26.563748' WHERE `dispatched_services`.`id` = 2  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.9ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 234ms (Views: 22.7ms | ActiveRecord: 69.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:09:26 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7346574a80ad44347415b2ce4b8233d2' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:09:26.674683') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:09:26.676728') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:09:26.678490') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:09:26.680209') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:09:26.682012')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7346574a80ad44347415b2ce4b8233d2', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:09:26.702153')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:09:26.728759', '2015-02-26 17:09:26.728759')  (65.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (44.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:26.861440' WHERE `dispatched_services`.`id` = 3  (16.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 244ms (Views: 16.9ms | ActiveRecord: 119.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a49a69e939675d09f135ba3df78fc396' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:09:26.923576') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:09:26.925902') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:09:26.927790') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:09:26.929621')  (52.0ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a49a69e939675d09f135ba3df78fc396', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:09:26.986933')  (33.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:09:27.027463', '2015-02-26 17:09:27.027463')  (15.1ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:09:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms) Permalink Load (1.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 36ms (Views: 15.9ms | ActiveRecord: 12.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e26cbff366744132f2cba9a79868225' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:27.145045') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:09:27.147288') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:09:27.149204')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '4e26cbff366744132f2cba9a79868225', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:09:27.170046')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:09:27.196834', '2015-02-26 17:09:27.196834')  (15.2ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:27.250132')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:27.279201')  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:27.304739' WHERE `dispatched_services`.`id` = 5  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (25.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 219ms (Views: 23.1ms | ActiveRecord: 67.8ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:09:27 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:09:27.370406' WHERE `dispatched_services`.`id` = 5  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:27.390327')  (14.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 38.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:27.425698' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:09:27 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:09:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 43ms (Views: 21.4ms | ActiveRecord: 10.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:09:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1eb6166fa4b29577a6c0954736d51e71' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:09:27.565426') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:09:27.567657') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:09:27.569513')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1eb6166fa4b29577a6c0954736d51e71', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:09:27.589971')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:09:27.616733', '2015-02-26 17:09:27.616733')  (15.0ms) COMMIT  (1.0ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:27.670620')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:09:27.697000')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:27.718445' WHERE `dispatched_services`.`id` = 6  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.7ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.8ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 207ms (Views: 18.9ms | ActiveRecord: 65.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '803389be683471404020f026bcd92e56' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:27.819103') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:09:27.821387') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:09:27.823370')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '803389be683471404020f026bcd92e56', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:09:27.844016')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:09:27.871206', '2015-02-26 17:09:27.871206')  (15.3ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (2.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:27.927960')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:27.957667')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:27.982858' WHERE `dispatched_services`.`id` = 7  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 222ms (Views: 21.5ms | ActiveRecord: 67.4ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:09:28 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:09:28.046575' WHERE `dispatched_services`.`id` = 7  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:28.065971')  (14.8ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 38.4ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:28.098982' WHERE `dispatched_services`.`id` = 7  (14.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (14.9ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:09:28 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:09:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.7ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 18.2ms | ActiveRecord: 10.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4420e9a194491559fb75b5d9edd9ad4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:28.232258') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:09:28.234665') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:09:28.236825')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e4420e9a194491559fb75b5d9edd9ad4', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:09:28.257614')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:09:28.285167', '2015-02-26 17:09:28.285167')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:28.337425')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:28.366137')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:28.391755' WHERE `dispatched_services`.`id` = 8  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.7ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 217ms (Views: 21.8ms | ActiveRecord: 66.6ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:28 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c2a6154e3131158621caf660a7bcddb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:28.462082') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:09:28.464130') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:09:28.465854')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7c2a6154e3131158621caf660a7bcddb', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:09:28.526649')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:09:28.554580', '2015-02-26 17:09:28.554580')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:28.608326')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:28.636742')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:28.661421' WHERE `dispatched_services`.`id` = 9  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 256ms (Views: 19.8ms | ActiveRecord: 65.7ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:09:28 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:28.720949')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 28ms (ActiveRecord: 19.9ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:09:28 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:09:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.8ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 19.5ms | ActiveRecord: 10.3ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0340839194452aa2b61535d05d3a82e0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:28.834333') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:09:28.836271') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2015-02-26 17:09:28.838155') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2015-02-26 17:09:28.839902')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0340839194452aa2b61535d05d3a82e0', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2015-02-26 17:09:28.860277')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (10, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:09:28.882772')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:28.904287')  (15.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2015-02-26 17:09:28.926928', '2015-02-26 17:09:28.926928')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c94814f0067a9cc85e913e42ff56bba9' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:09:28.972044') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:09:28.974170') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 11, '2015-02-26 17:09:28.975987') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 11, '2015-02-26 17:09:28.977844') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 11, '2015-02-26 17:09:28.979547') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 11, '2015-02-26 17:09:28.981112') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 11, '2015-02-26 17:09:28.982757') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 11, '2015-02-26 17:09:28.984568') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 11, '2015-02-26 17:09:28.986392') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 11, '2015-02-26 17:09:28.988138') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 11, '2015-02-26 17:09:28.989903')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c94814f0067a9cc85e913e42ff56bba9', '06d451b80bf9fe3ce6849a48c98522d7', 11, 'info:sid/google', '0.0.0.0', '2015-02-26 17:09:29.010203')  (16.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:09:29.034146', '2015-02-26 17:09:29.034146')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 ServiceResponse Exists (1.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 11 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77135f8377a9eef0aa7241f0dc7453bf' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:09:29.071322') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:09:29.073371') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 12, '2015-02-26 17:09:29.075344') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 12, '2015-02-26 17:09:29.077312')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '77135f8377a9eef0aa7241f0dc7453bf', '62590701c6f35b45309577ef8c8c22b4', 12, '0.0.0.0', '2015-02-26 17:09:29.098863')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:09:29.121329')  (14.6ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '971f62d9dd5f845e74a406213d41842e' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:09:29.157950') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2015-02-26 17:09:29.160058') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 13, '2015-02-26 17:09:29.161852') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 13, '2015-02-26 17:09:29.163754') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 13, '2015-02-26 17:09:29.165562') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2015-02-26 17:09:29.167408') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 13, '2015-02-26 17:09:29.169158')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '971f62d9dd5f845e74a406213d41842e', 'd95884a882a64501650fb8f9deae5104', 13, 'info:sid/google', '0.0.0.0', '2015-02-26 17:09:29.188934')  (14.6ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:09:29.213853')  (14.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2015-02-26 17:09:29.235723', '2015-02-26 17:09:29.235723')  (42.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3edd084eae4785159fb051bd450512f3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:29.291664') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:09:29.293710') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:09:29.295542')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3edd084eae4785159fb051bd450512f3', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2015-02-26 17:09:29.314966')  (14.1ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.339492')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2015-02-26 17:09:29.402867', '2015-02-26 17:09:29.402867')  (14.9ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '474fb44fbd30305f57dda69d00a0edd9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:29.431238') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:09:29.433446') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2015-02-26 17:09:29.435521')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '474fb44fbd30305f57dda69d00a0edd9', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2015-02-26 17:09:29.454786')  (14.4ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.479622')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 15, '2015-02-26 17:09:29.506365', '2015-02-26 17:09:29.506365')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:09:29.531871' WHERE `dispatched_services`.`id` = 14  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e34527beab711aacb4da1c0261f03cbe' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:09:29.588327') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:09:29.590423') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2015-02-26 17:09:29.592217')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e34527beab711aacb4da1c0261f03cbe', '9902a1d22a141a826ae31b1c83cb928c', 16, '0.0.0.0', '2015-02-26 17:09:29.611734')  (13.2ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.635944')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 16, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:09:29.664806')  (15.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2015-02-26 17:09:29.687805', '2015-02-26 17:09:29.687805')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8dfbd9d4dacb5906c7e20a960ccdd057' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:09:29.715653') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:09:29.717625') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 17, '2015-02-26 17:09:29.719513')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8dfbd9d4dacb5906c7e20a960ccdd057', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 17, '0.0.0.0', '2015-02-26 17:09:29.739012')  (14.0ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.763378')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 17, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:09:29.788805')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2015-02-26 17:09:29.810379', '2015-02-26 17:09:29.810379')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ea747db59f8a24c8a119041416f1111' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:29.838286') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:09:29.840307') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2015-02-26 17:09:29.842176')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7ea747db59f8a24c8a119041416f1111', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2015-02-26 17:09:29.861219')  (13.9ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.929214')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 18, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:29.956896')  (14.2ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:09:29.981379', '2015-02-26 17:09:29.981379')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9089cdf3bb80066b893daf0a66013f77' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.022626') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:09:30.024922') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:09:30.026853')  (17.0ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9089cdf3bb80066b893daf0a66013f77', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:09:30.049120')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 19  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 19\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.076202')  (14.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://test.host/resolve?umlaut.request_id=19&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.3ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '20e8840cad00171a4c3dc768c158e2ad' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.105611') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:09:30.107594') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:09:30.109473')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '20e8840cad00171a4c3dc768c158e2ad', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:09:30.128712')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.150349')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 29  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 29\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.175786')  (14.3ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) Redirected to http://test.host/resolve?umlaut.request_id=20&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.5ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4dcb5549636febb954393fabe95591b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.206558') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:09:30.208636') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:09:30.210696')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a4dcb5549636febb954393fabe95591b', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:09:30.230241')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.251223')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:09:30.277943', '2015-02-26 17:09:30.277943')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.299148')  (14.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Redirected to http://test.host/resolve?umlaut.request_id=21&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 52ms (ActiveRecord: 40.8ms) DispatchedService Load (4.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (6.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:30.340887' WHERE `dispatched_services`.`id` = 18  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (14.2ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b0f1fadedd1238bb5e32cf2dfce0827' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.387295') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:09:30.389494') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:09:30.391232')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5b0f1fadedd1238bb5e32cf2dfce0827', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:09:30.411327')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 22, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.433560')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2015-02-26 17:09:30.460224', '2015-02-26 17:09:30.460224')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.524465')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://example.org Completed 302 Found in 99ms (ActiveRecord: 40.2ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a1985779600abdd0b88da85e0bda8dd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.559936') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:09:30.562081') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-02-26 17:09:30.564020')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5a1985779600abdd0b88da85e0bda8dd', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-02-26 17:09:30.583810')  (16.1ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.607259')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 23, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.633500')  (15.0ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 26ms (ActiveRecord: 19.1ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c389a461bf33e1e63d6ac689267e38b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.660646') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:09:30.662493') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-02-26 17:09:30.664171')  (15.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1c389a461bf33e1e63d6ac689267e38b', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-02-26 17:09:30.685279')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 24, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.707416')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2015-02-26 17:09:30.734564', '2015-02-26 17:09:30.734564')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.755875')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 53ms (Views: 0.4ms | ActiveRecord: 39.5ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0e189e44f66550a0102771cc84db8f28' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (6.8ms) BEGIN  (3.8ms) BEGIN SQL (10.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.796485') SQL (1.8ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:30.798948' WHERE `dispatched_services`.`id` = 20 SQL (4.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:09:30.808478') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2015-02-26 17:09:30.813743')  (15.7ms) COMMIT  (0.7ms) BEGIN  (16.9ms) COMMIT SQL (1.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 38  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0e189e44f66550a0102771cc84db8f28', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2015-02-26 17:09:30.836032')  (15.1ms) COMMIT  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 25, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.862634')  (14.5ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) Redirected to http://test.host/resolve?umlaut.request_id=25&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.1ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9873834d0db6bc8fd7f69eb94ae396b2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:30.896487') SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:09:30.898449') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2015-02-26 17:09:30.900861') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2015-02-26 17:09:30.902524')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9873834d0db6bc8fd7f69eb94ae396b2', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2015-02-26 17:09:30.923824')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 26, 'test_holding', 'holding', '2015-02-26 17:09:30.947239')  (14.1ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:30.976130')  (15.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.8ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:09:30.998712', '2015-02-26 17:09:30.998712')  (18.6ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '412d1f75e61ebe50ab162417e3e96ce2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:31.030651') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:09:31.032623') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2015-02-26 17:09:31.034474') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2015-02-26 17:09:31.036272')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '412d1f75e61ebe50ab162417e3e96ce2', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2015-02-26 17:09:31.055925')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 27, 'test_holding', 'holding', '2015-02-26 17:09:31.076756')  (20.0ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:31.156019')  (15.2ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:09:31.179609', '2015-02-26 17:09:31.179609')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b930ef7aa7c3ddd3f06122bd2e56fe3b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:31.208073') SQL (2.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:09:31.210294') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2015-02-26 17:09:31.213244') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2015-02-26 17:09:31.215460')  (16.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b930ef7aa7c3ddd3f06122bd2e56fe3b', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2015-02-26 17:09:31.237319')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 28, 'test_holding', 'holding', '2015-02-26 17:09:31.258721')  (14.3ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:09:31.286122', '2015-02-26 17:09:31.286122')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28  (0.9ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK ActiveRecord::SchemaMigration Load (2.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (105.0ms) DROP DATABASE IF EXISTS `umlaut3_test`  (9.2ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (45.8ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (80.8ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (79.9ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (92.8ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (38.6ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (74.2ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (37.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (67.2ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (36.8ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (77.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (67.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (36.2ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (84.9ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (101.5ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (80.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (79.1ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (93.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (77.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (34.7ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (76.8ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (73.2ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (80.8ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.4ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (73.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (84.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (35.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (79.2ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (71.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (35.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (76.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (34.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (102.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (15.0ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '73a7c1fce9a574ce8c1f5c9340a97f26' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:29.550791') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:16:29.553299') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:16:29.555141')  (22.1ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '73a7c1fce9a574ce8c1f5c9340a97f26', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2015-02-26 17:16:29.777184')  (14.1ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:29.819175')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:16:29.854508', '2015-02-26 17:16:29.854508')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd067e2e06388c57d43afed71a7ba6bcc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:29.964179') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:16:29.966191') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2015-02-26 17:16:29.968016')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd067e2e06388c57d43afed71a7ba6bcc', '1f2487b5ab29a0f58587335258d7f8e0', 2, '127.0.0.1', '2015-02-26 17:16:29.988020')  (15.5ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 2, '2015-02-26 17:16:30.020206', '2015-02-26 17:16:30.020206')  (22.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:30.144292')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:16:30.174955' WHERE `dispatched_services`.`id` = 2  (15.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (7.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (51.4ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (115.1ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 479ms (Views: 162.9ms | ActiveRecord: 77.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:16:30 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62c80e59c7b10e9a118b2b51c8609bdc' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:16:30.394765') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2015-02-26 17:16:30.396882') SQL (2.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2015-02-26 17:16:30.398657') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 3, '2015-02-26 17:16:30.401470') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 3, '2015-02-26 17:16:30.403179')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '62c80e59c7b10e9a118b2b51c8609bdc', 'a03fb1fb17f24f5ea845bf6c4450490b', 3, '127.0.0.1', '2015-02-26 17:16:30.424897')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:16:30.488855', '2015-02-26 17:16:30.488855')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:16:30.541326')  (16.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:30.565430' WHERE `dispatched_services`.`id` = 3  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.0ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 230ms (Views: 18.5ms | ActiveRecord: 71.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:16:30 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7bed5af352336c4ca4f9e468088e240a' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:16:30.632382') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:16:30.634604') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 4, '2015-02-26 17:16:30.636648') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:16:30.638368') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 4, '2015-02-26 17:16:30.640423')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7bed5af352336c4ca4f9e468088e240a', 'bc13b80c2923ce2cbe0c8347141587a7', 4, '127.0.0.1', '2015-02-26 17:16:30.661682')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 4, '2015-02-26 17:16:30.688656', '2015-02-26 17:16:30.688656')  (16.3ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:30.741449' WHERE `dispatched_services`.`id` = 4  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.1ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 162ms (Views: 16.0ms | ActiveRecord: 69.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44b4062737f1f7dd9153f72add51430d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:16:30.798239') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2015-02-26 17:16:30.800384') SQL (38.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 5, '2015-02-26 17:16:30.802177') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 5, '2015-02-26 17:16:30.842081')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '44b4062737f1f7dd9153f72add51430d', '318e542032e1812e600e07efbdb1dfcc', 5, '0.0.0.0', '2015-02-26 17:16:30.862960')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 5, '2015-02-26 17:16:30.886033', '2015-02-26 17:16:30.886033')  (16.2ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=5" for 127.0.0.1 at 2015-02-26 12:16:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 37ms (Views: 16.7ms | ActiveRecord: 11.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '97020c4a9a2b9ddf2b4676f23595b8a8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:30.973972') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:16:30.976035') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:16:30.977917')  (17.4ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '97020c4a9a2b9ddf2b4676f23595b8a8', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2015-02-26 17:16:31.000919')  (17.4ms) COMMIT  (0.9ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:16:31.030940', '2015-02-26 17:16:31.030940')  (14.2ms) COMMIT  (0.9ms) BEGIN  (0.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:31.084126')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 6, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:31.113881')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:31.138927' WHERE `dispatched_services`.`id` = 6  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (11.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (12.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (31.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 229ms (Views: 23.9ms | ActiveRecord: 77.4ms) Started GET "/borrow_direct/BorrowDirect/6?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:16:31 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:16:31.246522' WHERE `dispatched_services`.`id` = 6  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 6, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:31.266185')  (14.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Redirected to http://www.example.com/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 38.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:16:31.300525' WHERE `dispatched_services`.`id` = 6  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 6  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:16:31 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"6", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:16:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 [["request_id", 6]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.9ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 40ms (Views: 18.9ms | ActiveRecord: 12.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:16:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09b9076b6d13907c4d31b3c6b50602e6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:16:31.397515') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:16:31.399686') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 7, '2015-02-26 17:16:31.401519')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '09b9076b6d13907c4d31b3c6b50602e6', '9902a1d22a141a826ae31b1c83cb928c', 7, '127.0.0.1', '2015-02-26 17:16:31.422523')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:16:31.449163', '2015-02-26 17:16:31.449163')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:31.502629')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 7, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:16:31.529679')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:31.551198' WHERE `dispatched_services`.`id` = 7  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (40.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (44.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (61.1ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 247ms (Views: 19.0ms | ActiveRecord: 106.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '038c52afbe524242b52c490909dedad1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (2.8ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:31.654674') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:16:31.658373') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:16:31.660332')  (17.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '038c52afbe524242b52c490909dedad1', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:16:31.683734')  (16.4ms) COMMIT  (0.9ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:16:31.713164', '2015-02-26 17:16:31.713164')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:31.766335')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:31.795407')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:31.820228' WHERE `dispatched_services`.`id` = 8  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 222ms (Views: 20.0ms | ActiveRecord: 73.9ms) Started GET "/borrow_direct/BorrowDirect/8?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:16:31 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:16:31.881741' WHERE `dispatched_services`.`id` = 8  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 8, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:31.939054')  (15.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Redirected to http://www.example.com/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 89ms (ActiveRecord: 40.7ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:31.973664' WHERE `dispatched_services`.`id` = 8  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 11  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:16:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"8", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:16:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)  (0.9ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 [["request_id", 8]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.1ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 37ms (Views: 15.7ms | ActiveRecord: 11.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25fb2828db426a11e9abe91295572d34' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:32.063430') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:16:32.065576') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:16:32.067384')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '25fb2828db426a11e9abe91295572d34', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:16:32.088060')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:16:32.114979', '2015-02-26 17:16:32.114979')  (15.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:32.169533')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:32.197601')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:32.222680' WHERE `dispatched_services`.`id` = 9  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.8ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 217ms (Views: 20.1ms | ActiveRecord: 68.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebda6771b35fcd744a6b3ad65f7a216c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:32.330295') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:16:32.332422') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-02-26 17:16:32.334409')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ebda6771b35fcd744a6b3ad65f7a216c', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2015-02-26 17:16:32.355074')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2015-02-26 17:16:32.382633', '2015-02-26 17:16:32.382633')  (15.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:32.437915')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 10, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:32.466227')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:32.490938' WHERE `dispatched_services`.`id` = 10  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 219ms (Views: 19.8ms | ActiveRecord: 69.8ms) Started GET "/borrow_direct/BorrowDirect/10" for 127.0.0.1 at 2015-02-26 12:16:32 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 10, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:32.552082')  (14.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Redirected to http://www.example.com/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 20.5ms) Started GET "/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:16:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"10", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:16:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 [["request_id", 10]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (58.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 79ms (Views: 57.8ms | ActiveRecord: 11.8ms) ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f77acc5f70e0959eadb4426ece2bd9dc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:32.682748') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:16:32.685003') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2015-02-26 17:16:32.686735')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f77acc5f70e0959eadb4426ece2bd9dc', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2015-02-26 17:16:32.706866')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 11  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 11\n', 11, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:32.732943')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Redirected to http://test.host/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.3ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e036fb29857bca04d39939b2461f7421' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:32.762273') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:16:32.764237') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2015-02-26 17:16:32.766059')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e036fb29857bca04d39939b2461f7421', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2015-02-26 17:16:32.785604')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 12, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:32.806601')  (18.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 18  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 18\n', 12, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:32.836581')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) Redirected to http://test.host/resolve?umlaut.request_id=12&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 22.0ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6a684d9a2d8c8e60817a2f0fd2a7848' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:32.867405') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:16:32.869308') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2015-02-26 17:16:32.871215')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd6a684d9a2d8c8e60817a2f0fd2a7848', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2015-02-26 17:16:32.891157')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 13, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:32.912617')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 13, '2015-02-26 17:16:32.939995', '2015-02-26 17:16:32.939995')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 13, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:32.961355')  (14.3ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Redirected to http://test.host/resolve?umlaut.request_id=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 52ms (ActiveRecord: 40.8ms) DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:16:33.003572' WHERE `dispatched_services`.`id` = 11  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21  (14.3ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30cadf4b5035049d616d27e34e103dda' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:33.090387') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:16:33.092574') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2015-02-26 17:16:33.094470')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '30cadf4b5035049d616d27e34e103dda', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2015-02-26 17:16:33.114406')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 14, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:33.135150')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2015-02-26 17:16:33.162334', '2015-02-26 17:16:33.162334')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 14, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:33.183697')  (17.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Redirected to http://example.org Completed 302 Found in 57ms (ActiveRecord: 43.5ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e03c6bbe9b092ea875b70d8ba62cc40' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:33.220055') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:16:33.222120') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2015-02-26 17:16:33.224032')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8e03c6bbe9b092ea875b70d8ba62cc40', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2015-02-26 17:16:33.243455')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 15, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:33.265050')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 15, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:33.291339')  (14.7ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 26ms (ActiveRecord: 19.1ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6104f78f2a58b2ff01661f2a482c7152' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:33.318170') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:16:33.320106') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2015-02-26 17:16:33.321849')  (17.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6104f78f2a58b2ff01661f2a482c7152', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2015-02-26 17:16:33.345282')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 16, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:33.367284')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 16, '2015-02-26 17:16:33.396016', '2015-02-26 17:16:33.396016')  (15.8ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 16, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:33.460692')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 100ms (Views: 3.5ms | ActiveRecord: 42.9ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88442d6d6147ff29261e1516f96270c1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (6.1ms) BEGIN  (4.1ms) BEGIN SQL (9.8ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:33.505838') SQL (1.8ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:16:33.508213' WHERE `dispatched_services`.`id` = 13 SQL (3.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:16:33.516735') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2015-02-26 17:16:33.521090')  (15.4ms) COMMIT  (0.7ms) BEGIN  (16.9ms) COMMIT SQL (2.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '88442d6d6147ff29261e1516f96270c1', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2015-02-26 17:16:33.543165')  (14.7ms) COMMIT  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 17, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:33.569563')  (14.3ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) Redirected to http://test.host/resolve?umlaut.request_id=17&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.2ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '232493e36789b9ba0c2bc828babd0a35' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:16:33.601749') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:16:33.603745') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2015-02-26 17:16:33.605616') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2015-02-26 17:16:33.607359')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '232493e36789b9ba0c2bc828babd0a35', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2015-02-26 17:16:33.626580')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 18, 'test_holding', 'holding', '2015-02-26 17:16:33.692617')  (14.5ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:16:33.720021', '2015-02-26 17:16:33.720021')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '397f165dcbe6ff9217b38b50987db0b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:16:33.748171') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:16:33.750284') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2015-02-26 17:16:33.752244') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2015-02-26 17:16:33.754007')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '397f165dcbe6ff9217b38b50987db0b3', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2015-02-26 17:16:33.773583')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 19, 'test_holding', 'holding', '2015-02-26 17:16:33.794540')  (14.2ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:16:33.822429')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2015-02-26 17:16:33.844111', '2015-02-26 17:16:33.844111')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b2774634b0e67ba73f05e3334a1de1b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:16:33.872149') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:16:33.874292') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2015-02-26 17:16:33.876432') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2015-02-26 17:16:33.878276')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1b2774634b0e67ba73f05e3334a1de1b', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2015-02-26 17:16:33.898351')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 20, 'test_holding', 'holding', '2015-02-26 17:16:33.919887')  (14.1ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:16:33.948207')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2015-02-26 17:16:33.969876', '2015-02-26 17:16:33.969876')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e5ab32109a143ea0bfe27918592e7a8' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.4ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:16:34.006121') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:16:34.008349') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 21, '2015-02-26 17:16:34.010103') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 21, '2015-02-26 17:16:34.011907')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4e5ab32109a143ea0bfe27918592e7a8', '62590701c6f35b45309577ef8c8c22b4', 21, '0.0.0.0', '2015-02-26 17:16:34.032028')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:16:34.054915')  (14.1ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6e32d247f7a489f4e615c38b85d161e' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:16:34.094449') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:16:34.096708') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 22, '2015-02-26 17:16:34.098617') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 22, '2015-02-26 17:16:34.100473') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 22, '2015-02-26 17:16:34.102319') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 22, '2015-02-26 17:16:34.104463') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 22, '2015-02-26 17:16:34.106211') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 22, '2015-02-26 17:16:34.107934') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 22, '2015-02-26 17:16:34.109522') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 22, '2015-02-26 17:16:34.111563') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 22, '2015-02-26 17:16:34.113701')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e6e32d247f7a489f4e615c38b85d161e', '06d451b80bf9fe3ce6849a48c98522d7', 22, 'info:sid/google', '0.0.0.0', '2015-02-26 17:16:34.134538')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2015-02-26 17:16:34.156955', '2015-02-26 17:16:34.156955')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 ServiceResponse Exists (1.0ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 22 LIMIT 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d671db17fd6c67bf28e4d2e4a4c43aa' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:16:34.198157') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2015-02-26 17:16:34.200266') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 23, '2015-02-26 17:16:34.202185') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 23, '2015-02-26 17:16:34.204092') SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 23, '2015-02-26 17:16:34.206080') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 23, '2015-02-26 17:16:34.208381') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 23, '2015-02-26 17:16:34.210090')  (15.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8d671db17fd6c67bf28e4d2e4a4c43aa', 'd95884a882a64501650fb8f9deae5104', 23, 'info:sid/google', '0.0.0.0', '2015-02-26 17:16:34.231601')  (15.2ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:16:34.302572')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2015-02-26 17:16:34.324733', '2015-02-26 17:16:34.324733')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f58aa7f5c7dec8d5e93d90dbb6768a87' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:16:34.354358') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:16:34.356416') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2015-02-26 17:16:34.358356') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2015-02-26 17:16:34.360143')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f58aa7f5c7dec8d5e93d90dbb6768a87', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2015-02-26 17:16:34.379220')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (24, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:16:34.399562')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:16:34.420410')  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2015-02-26 17:16:34.442715', '2015-02-26 17:16:34.442715')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9749f69dec8c68bea35eb693898738b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:34.480600') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:16:34.482558') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2015-02-26 17:16:34.484310')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f9749f69dec8c68bea35eb693898738b', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2015-02-26 17:16:34.504079') BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"2DLcMfktU7VhK9f2Ph2IlJgux-o","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/returns_a_link_when_BD_returns_an_error.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. * The cassette contains 1 HTTP interaction that has not been played back. If your request is non-deterministic, you may need to change your :match_requests_on cassette option to be more lenient or use a custom request matcher to allow it to match [5]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (14.2ms) COMMIT  (1.2ms) BEGIN ServiceResponse Load (9.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC SQL (3.1ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"2DLcMfktU7VhK9f2Ph2IlJgux-o\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/returns_a_link_when_BD_returns_an_error.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n * The cassette contains 1 HTTP interaction\n that has not been\\n played back. If your request is non-deterministic, you may\n need to\\n change your :match_requests_on cassette option to be more lenient\\n\n \\ or use a custom request matcher to allow it to match [5].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:16:34.524676' WHERE `dispatched_services`.`id` = 12  (3.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:34.539708')  (15.8ms) COMMIT ServiceResponses skipped for unknown service_ids: BorrowDirect  (0.8ms) BEGIN  (16.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} SQL (4.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n', 14, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:34.557688') DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 25, '2015-02-26 17:16:34.567356', '2015-02-26 17:16:34.567356')  (14.8ms) COMMIT  (13.5ms) COMMIT  (0.7ms) BEGIN SQL (2.3ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:16:34.591850' WHERE `dispatched_services`.`id` = 20  (15.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc985c0f73848fb732f7704bc7e3dfaf' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:16:34.698959') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:16:34.701079') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 26, '2015-02-26 17:16:34.703082')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bc985c0f73848fb732f7704bc7e3dfaf', '9902a1d22a141a826ae31b1c83cb928c', 26, '0.0.0.0', '2015-02-26 17:16:34.722850')  (14.1ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:34.747434')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 26, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:16:34.774712')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:16:34.795720', '2015-02-26 17:16:34.795720')  (15.0ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cac2c98c84cb5c91ee957adf8872673' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:34.824390') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:16:34.826350') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2015-02-26 17:16:34.828258')  (15.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8cac2c98c84cb5c91ee957adf8872673', '1f2487b5ab29a0f58587335258d7f8e0', 27, '0.0.0.0', '2015-02-26 17:16:34.848655')  (14.6ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:34.873246')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 27, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:34.899937')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:16:34.924302', '2015-02-26 17:16:34.924302')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7bfd325f04df9b6e12c88185b8685bb' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:16:34.952246') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:16:34.954427') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 28, '2015-02-26 17:16:34.956161')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b7bfd325f04df9b6e12c88185b8685bb', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 28, '0.0.0.0', '2015-02-26 17:16:34.975442')  (14.9ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:35.000727')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 28, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:16:35.026520')  (15.0ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:16:35.049157', '2015-02-26 17:16:35.049157')  (14.7ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (2.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (107.3ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.9ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (40.9ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (89.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (73.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (74.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (36.8ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (74.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (67.7ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.8ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (80.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (72.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.7ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (76.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (82.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (80.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (79.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (81.4ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (95.3ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (34.7ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (82.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (71.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (77.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (44.1ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (77.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (89.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (45.3ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (77.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (70.2ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (44.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (80.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (52.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (89.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.9ms) SELECT version FROM `schema_migrations`  (15.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80550b623b838027a8cf1ce2ff0e825e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:08.993412') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:17:08.996003') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:17:08.997890')  (23.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '80550b623b838027a8cf1ce2ff0e825e', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2015-02-26 17:17:09.222915')  (14.0ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:09.264200')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:17:09.298346', '2015-02-26 17:17:09.298346')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfb795e50aa54d39f17183fe2dac01f1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:09.408343') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:17:09.410472') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2015-02-26 17:17:09.412318')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'dfb795e50aa54d39f17183fe2dac01f1', '1f2487b5ab29a0f58587335258d7f8e0', 2, '127.0.0.1', '2015-02-26 17:17:09.432764')  (14.4ms) COMMIT  (0.8ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 2, '2015-02-26 17:17:09.464059', '2015-02-26 17:17:09.464059')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:09.582411')  (14.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:17:09.612513' WHERE `dispatched_services`.`id` = 2  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (8.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (49.5ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.3ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (112.9ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 474ms (Views: 164.6ms | ActiveRecord: 70.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:17:09 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '347c268186b98cc13b487f19ca146523' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:17:09.834178') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2015-02-26 17:17:09.836268') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2015-02-26 17:17:09.838084') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 3, '2015-02-26 17:17:09.839778') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 3, '2015-02-26 17:17:09.841349')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '347c268186b98cc13b487f19ca146523', 'a03fb1fb17f24f5ea845bf6c4450490b', 3, '127.0.0.1', '2015-02-26 17:17:09.898970')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:17:09.927360', '2015-02-26 17:17:09.927360')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:17:09.981028')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:10.003102' WHERE `dispatched_services`.`id` = 3  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 229ms (Views: 19.5ms | ActiveRecord: 70.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:17:10 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30998c056e95e00aa8559b2573663be7' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:17:10.070811') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:17:10.072916') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 4, '2015-02-26 17:17:10.074807') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:17:10.076479') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 4, '2015-02-26 17:17:10.078222')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '30998c056e95e00aa8559b2573663be7', 'bc13b80c2923ce2cbe0c8347141587a7', 4, '127.0.0.1', '2015-02-26 17:17:10.098586')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 4, '2015-02-26 17:17:10.125210', '2015-02-26 17:17:10.125210')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:10.176634' WHERE `dispatched_services`.`id` = 4  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.7ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 161ms (Views: 17.4ms | ActiveRecord: 65.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (39.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15bc2eb0efe5f7dea643ab7aff47dd97' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:17:10.274748') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2015-02-26 17:17:10.277099') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 5, '2015-02-26 17:17:10.278860') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 5, '2015-02-26 17:17:10.280667')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '15bc2eb0efe5f7dea643ab7aff47dd97', '318e542032e1812e600e07efbdb1dfcc', 5, '0.0.0.0', '2015-02-26 17:17:10.300799')  (16.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 5, '2015-02-26 17:17:10.324979', '2015-02-26 17:17:10.324979')  (14.2ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT Started GET "/resolve?umlaut.request_id=5" for 127.0.0.1 at 2015-02-26 12:17:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 38ms (Views: 17.4ms | ActiveRecord: 12.1ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa835467f8575686955b67ab58dacf22' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:10.407816') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:17:10.409935') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:17:10.411906')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'fa835467f8575686955b67ab58dacf22', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2015-02-26 17:17:10.432943')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:17:10.460593', '2015-02-26 17:17:10.460593')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:10.514646')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 6, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:10.543959')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:10.568215' WHERE `dispatched_services`.`id` = 6  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 [["id", 6]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (25.6ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 257ms (Views: 23.6ms | ActiveRecord: 67.4ms) Started GET "/borrow_direct/BorrowDirect/6?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:17:10 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:17:10.671593' WHERE `dispatched_services`.`id` = 6  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 6, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:10.691603')  (14.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Redirected to http://www.example.com/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 38.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:10.726242' WHERE `dispatched_services`.`id` = 6  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 6  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"6", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 [["request_id", 6]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 18.8ms | ActiveRecord: 11.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:17:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a70867c74fbe3f08e0e8c6524419dc16' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:17:10.825354') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:17:10.827499') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 7, '2015-02-26 17:17:10.829427')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a70867c74fbe3f08e0e8c6524419dc16', '9902a1d22a141a826ae31b1c83cb928c', 7, '127.0.0.1', '2015-02-26 17:17:10.849842')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:17:10.876503', '2015-02-26 17:17:10.876503')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:10.931382')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 7, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:10.958856')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (36.7ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:10.981519' WHERE `dispatched_services`.`id` = 7  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.9ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 247ms (Views: 19.2ms | ActiveRecord: 67.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b22e41bffaae5dc55be13e71f88f12b1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:11.081296') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:17:11.083687') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:17:11.085567')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b22e41bffaae5dc55be13e71f88f12b1', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:17:11.105915')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:17:11.132902', '2015-02-26 17:17:11.132902')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:11.185652')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:11.215036')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:11.239777' WHERE `dispatched_services`.`id` = 8  (14.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.1ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 217ms (Views: 19.6ms | ActiveRecord: 68.6ms) Started GET "/borrow_direct/BorrowDirect/8?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:17:11 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:17:11.341401' WHERE `dispatched_services`.`id` = 8  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 8, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:11.361214')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Redirected to http://www.example.com/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 88ms (ActiveRecord: 39.0ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:11.394012' WHERE `dispatched_services`.`id` = 8  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 11  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:11 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"8", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 [["request_id", 8]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.4ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 39ms (Views: 16.7ms | ActiveRecord: 11.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd80faa0117501dd6995f38654465442d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:11.484357') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:17:11.486508') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:17:11.488452')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd80faa0117501dd6995f38654465442d', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:17:11.509703')  (13.9ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:17:11.536427', '2015-02-26 17:17:11.536427')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:11.594939')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:11.624095')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:11.648865' WHERE `dispatched_services`.`id` = 9  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (28.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 226ms (Views: 22.0ms | ActiveRecord: 69.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:11 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca6943368af1f591f8b24d670f19b920' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:11.760255') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:17:11.762472') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-02-26 17:17:11.764305')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ca6943368af1f591f8b24d670f19b920', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2015-02-26 17:17:11.785176')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2015-02-26 17:17:11.812165', '2015-02-26 17:17:11.812165')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:11.867391')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 10, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:11.896419')  (15.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:11.922204' WHERE `dispatched_services`.`id` = 10  (14.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 [["id", 10]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 219ms (Views: 19.5ms | ActiveRecord: 68.3ms) Started GET "/borrow_direct/BorrowDirect/10" for 127.0.0.1 at 2015-02-26 12:17:11 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 10, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:11.984144')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Redirected to http://www.example.com/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 20.0ms) Started GET "/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"10", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 [["request_id", 10]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (38.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 [["id", 10]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (55.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 76ms (Views: 55.8ms | ActiveRecord: 10.7ms)  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7073849b5d7ed7b1862caf4f51a3b960' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:12.103949') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:17:12.106012') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2015-02-26 17:17:12.107947')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7073849b5d7ed7b1862caf4f51a3b960', '1f2487b5ab29a0f58587335258d7f8e0', 11, '0.0.0.0', '2015-02-26 17:17:12.127732')  (14.5ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:12.152326')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 11, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:12.179672')  (15.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:17:12.205080', '2015-02-26 17:17:12.205080')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b72df8effcdca7968cfdc4a5cd809403' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:17:12.232892') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:17:12.234941') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 12, '2015-02-26 17:17:12.236632')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (2.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b72df8effcdca7968cfdc4a5cd809403', '9902a1d22a141a826ae31b1c83cb928c', 12, '0.0.0.0', '2015-02-26 17:17:12.255845')  (14.7ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:12.281748')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 12, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:12.309089')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2015-02-26 17:17:12.331589', '2015-02-26 17:17:12.331589')  (14.3ms) COMMIT  (1.1ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8901f39f8b6b547a87032bbb4b1b6a22' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:17:12.359711') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:17:12.361794') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 13, '2015-02-26 17:17:12.363758')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8901f39f8b6b547a87032bbb4b1b6a22', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 13, '0.0.0.0', '2015-02-26 17:17:12.383495')  (14.2ms) COMMIT ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:12.409488')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 13, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:12.435890')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2015-02-26 17:17:12.458239', '2015-02-26 17:17:12.458239')  (14.7ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45e090559e6936dc0000db291ab49f85' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:12.487362') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:17:12.489353') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:17:12.491244')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '45e090559e6936dc0000db291ab49f85', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2015-02-26 17:17:12.552383')  (14.6ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:12.578133')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 14, '2015-02-26 17:17:12.606581', '2015-02-26 17:17:12.606581')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (7.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:17:12.632275' WHERE `dispatched_services`.`id` = 14  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'baec6403178b7a1ba7267c93d252bc60' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:12.696531') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:17:12.698497') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2015-02-26 17:17:12.700418') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2015-02-26 17:17:12.702368')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'baec6403178b7a1ba7267c93d252bc60', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2015-02-26 17:17:12.722113')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (15, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:17:12.744954')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:12.766761')  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2015-02-26 17:17:12.788614', '2015-02-26 17:17:12.788614')  (14.7ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '145b335530d0a2021e4709e07479a924' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:12.839292') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:17:12.841207') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2015-02-26 17:17:12.843106')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '145b335530d0a2021e4709e07479a924', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2015-02-26 17:17:12.863057')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 16  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 16\n', 16, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:12.889363')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Redirected to http://test.host/resolve?umlaut.request_id=16&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.7ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c66806f1ce3ea609b1e6200ca327225d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:12.959986') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:17:12.962423') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2015-02-26 17:17:12.964526')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c66806f1ce3ea609b1e6200ca327225d', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2015-02-26 17:17:12.984981')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 17, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.006763')  (14.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 27  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 27\n', 17, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.033645')  (14.5ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) Redirected to http://test.host/resolve?umlaut.request_id=17&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0016db700c5c90b2cddf74d0db22ade8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.065372') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:17:13.067289') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2015-02-26 17:17:13.069262')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0016db700c5c90b2cddf74d0db22ade8', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2015-02-26 17:17:13.089037')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 18, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.110791')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2015-02-26 17:17:13.139118', '2015-02-26 17:17:13.139118')  (19.3ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT  (0.9ms) BEGIN SQL (2.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 18, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.165730')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Redirected to http://test.host/resolve?umlaut.request_id=18&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 60ms (ActiveRecord: 47.3ms) DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Load (4.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:13.209876' WHERE `dispatched_services`.`id` = 16  (19.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30  (14.0ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74e212e17ff18edbe146e35571480138' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.261684') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:17:13.263937') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:17:13.265786')  (15.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '74e212e17ff18edbe146e35571480138', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:17:13.286305')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 19, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.308365')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 19, '2015-02-26 17:17:13.336234', '2015-02-26 17:17:13.336234')  (14.6ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.357822')  (14.4ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://example.org Completed 302 Found in 56ms (ActiveRecord: 40.9ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd926bf5fa1f9561b3b1eee6844a47330' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.392493') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:17:13.394672') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:17:13.396615')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd926bf5fa1f9561b3b1eee6844a47330', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:17:13.416306')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.437909')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.465867')  (14.9ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 27ms (ActiveRecord: 20.1ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11573adb49714a4fac0f643e8c5dd730' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.493135') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:17:13.495212') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:17:13.497379')  (15.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '11573adb49714a4fac0f643e8c5dd730', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:17:13.518878')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.540806')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:17:13.567990', '2015-02-26 17:17:13.567990')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.589363')  (14.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 96ms (Views: 0.5ms | ActiveRecord: 40.5ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17c79886df68304d24bb3fd330176812' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (6.2ms) BEGIN  (3.5ms) BEGIN SQL (10.8ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.674732') SQL (1.7ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:13.677026' WHERE `dispatched_services`.`id` = 18 SQL (3.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:17:13.686567') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:17:13.691233')  (16.7ms) COMMIT  (0.9ms) BEGIN  (18.4ms) COMMIT SQL (1.9ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 36  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '17c79886df68304d24bb3fd330176812', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:17:13.715013')  (14.9ms) COMMIT  (15.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.742650')  (14.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://test.host/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.3ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '882b39dd6953c793fbfc493331332d55' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:17:13.774564') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:17:13.776591') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 23, '2015-02-26 17:17:13.778424') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 23, '2015-02-26 17:17:13.780279')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '882b39dd6953c793fbfc493331332d55', '62590701c6f35b45309577ef8c8c22b4', 23, '0.0.0.0', '2015-02-26 17:17:13.799620')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:17:13.822737')  (14.4ms) COMMIT ServiceResponse Load (2.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18901a7aaa21c295c0ecaac35964c8c2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:17:13.862827') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:17:13.864984') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 24, '2015-02-26 17:17:13.866818') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 24, '2015-02-26 17:17:13.868622') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 24, '2015-02-26 17:17:13.870353') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 24, '2015-02-26 17:17:13.872160') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 24, '2015-02-26 17:17:13.873796') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 24, '2015-02-26 17:17:13.875558') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 24, '2015-02-26 17:17:13.877444') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 24, '2015-02-26 17:17:13.879265') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 24, '2015-02-26 17:17:13.880929')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '18901a7aaa21c295c0ecaac35964c8c2', '06d451b80bf9fe3ce6849a48c98522d7', 24, 'info:sid/google', '0.0.0.0', '2015-02-26 17:17:13.901335')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2015-02-26 17:17:13.923435', '2015-02-26 17:17:13.923435')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Exists (1.0ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 24 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'efff6be0002df547ad886999c84191ac' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:17:13.965078') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 25, '2015-02-26 17:17:13.967170') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 25, '2015-02-26 17:17:13.968934') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 25, '2015-02-26 17:17:13.970665') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 25, '2015-02-26 17:17:13.972530') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 25, '2015-02-26 17:17:13.974204') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 25, '2015-02-26 17:17:13.976012')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'efff6be0002df547ad886999c84191ac', 'd95884a882a64501650fb8f9deae5104', 25, 'info:sid/google', '0.0.0.0', '2015-02-26 17:17:13.996241')  (14.3ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:17:14.021138')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2015-02-26 17:17:14.043499', '2015-02-26 17:17:14.043499')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '103a27845417b93c8b5c2cf457d89dcc' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:14.112269') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:17:14.114426') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2015-02-26 17:17:14.116313') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2015-02-26 17:17:14.118155')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '103a27845417b93c8b5c2cf457d89dcc', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2015-02-26 17:17:14.137984')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 26, 'test_holding', 'holding', '2015-02-26 17:17:14.159268')  (14.8ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:17:14.186984', '2015-02-26 17:17:14.186984')  (14.6ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '451eca9fb922e35a95fabc2f69cf8cce' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:14.216073') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:17:14.218219') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2015-02-26 17:17:14.220158') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2015-02-26 17:17:14.221972')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '451eca9fb922e35a95fabc2f69cf8cce', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2015-02-26 17:17:14.242124')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 27, 'test_holding', 'holding', '2015-02-26 17:17:14.263128')  (20.7ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:14.298818')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:17:14.320507', '2015-02-26 17:17:14.320507')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dce9d680146b88d234060dfa6c4da082' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:14.348724') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:17:14.350675') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2015-02-26 17:17:14.352482') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2015-02-26 17:17:14.354258')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'dce9d680146b88d234060dfa6c4da082', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2015-02-26 17:17:14.373535')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 28, 'test_holding', 'holding', '2015-02-26 17:17:14.394044')  (14.2ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:14.421703')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:17:14.443306', '2015-02-26 17:17:14.443306')  (15.1ms) COMMIT  (3.5ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (2.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (98.6ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.5ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (40.1ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (90.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (80.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (79.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (45.4ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (87.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (42.6ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (75.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (35.9ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (77.7ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (68.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.1ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (79.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (77.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (89.6ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (78.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (72.0ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (93.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (39.9ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (81.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (96.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (96.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.9ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (75.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (72.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (35.9ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (77.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (82.5ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.2ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (79.4ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (35.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (105.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.0ms) SELECT version FROM `schema_migrations`  (23.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65de81b9a6ba6f0a382c2384b48e2ec7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:54.363641') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:17:54.366273') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:17:54.368213')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '65de81b9a6ba6f0a382c2384b48e2ec7', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2015-02-26 17:17:54.594392')  (14.8ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:54.638714')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:17:54.673710', '2015-02-26 17:17:54.673710')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:54 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b88f6fa6a06cadc74e60c78a267e017a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:54.788951') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:17:54.790879') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2015-02-26 17:17:54.792961')  (25.0ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b88f6fa6a06cadc74e60c78a267e017a', '1f2487b5ab29a0f58587335258d7f8e0', 2, '127.0.0.1', '2015-02-26 17:17:54.824206')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 2, '2015-02-26 17:17:54.855219', '2015-02-26 17:17:54.855219')  (14.7ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (47.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:54.974444')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:17:55.005979' WHERE `dispatched_services`.`id` = 2  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (5.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (37.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (98.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 472ms (Views: 147.8ms | ActiveRecord: 77.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:17:55 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c56d9a127f4797ecbfc78e262e442373' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:17:55.208855') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2015-02-26 17:17:55.210935') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2015-02-26 17:17:55.213066') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 3, '2015-02-26 17:17:55.215019') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 3, '2015-02-26 17:17:55.216774')  (36.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c56d9a127f4797ecbfc78e262e442373', 'a03fb1fb17f24f5ea845bf6c4450490b', 3, '127.0.0.1', '2015-02-26 17:17:55.259447')  (18.5ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:17:55.290801', '2015-02-26 17:17:55.290801')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:17:55.345159')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:55.367233' WHERE `dispatched_services`.`id` = 3  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (40.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (58.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 254ms (Views: 56.2ms | ActiveRecord: 96.7ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:17:55 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14a9ce8f8cf6242f681497b0e797da35' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:17:55.470664') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:17:55.472803') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 4, '2015-02-26 17:17:55.474631') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:17:55.476402') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 4, '2015-02-26 17:17:55.478124')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '14a9ce8f8cf6242f681497b0e797da35', 'bc13b80c2923ce2cbe0c8347141587a7', 4, '127.0.0.1', '2015-02-26 17:17:55.498706')  (14.7ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 4, '2015-02-26 17:17:55.526020', '2015-02-26 17:17:55.526020')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:55.577421' WHERE `dispatched_services`.`id` = 4  (14.0ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 159ms (Views: 15.7ms | ActiveRecord: 67.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd58fd1decf735eff57d4902772925e96' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:17:55.634027') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2015-02-26 17:17:55.636070') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 5, '2015-02-26 17:17:55.637861') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 5, '2015-02-26 17:17:55.639692')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd58fd1decf735eff57d4902772925e96', '318e542032e1812e600e07efbdb1dfcc', 5, '0.0.0.0', '2015-02-26 17:17:55.659717')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 5, '2015-02-26 17:17:55.681562', '2015-02-26 17:17:55.681562')  (17.6ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=5" for 127.0.0.1 at 2015-02-26 12:17:55 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.8ms) BEGIN  (1.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.9ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 38ms (Views: 16.4ms | ActiveRecord: 13.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf75246f987c9a10e30ae00f774326ae' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:55.806119') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:17:55.808284') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:17:55.810254')  (19.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'bf75246f987c9a10e30ae00f774326ae', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2015-02-26 17:17:55.835436')  (15.3ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:17:55.863629', '2015-02-26 17:17:55.863629')  (19.3ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:55.926847')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 6, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:55.957353')  (15.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:55.982889' WHERE `dispatched_services`.`id` = 6  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 [["id", 6]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (28.1ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 240ms (Views: 24.2ms | ActiveRecord: 79.5ms) Started GET "/borrow_direct/BorrowDirect/6?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:17:56 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:17:56.052118' WHERE `dispatched_services`.`id` = 6  (15.6ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 6, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:56.072738')  (17.4ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Redirected to http://www.example.com/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 42.9ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:56.147838' WHERE `dispatched_services`.`id` = 6  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 6  (17.8ms) COMMIT Started GET "/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:56 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"6", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:56-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 [["request_id", 6]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 18.4ms | ActiveRecord: 12.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:17:56 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c752eae8db40c4f4cf5821b0880b0166' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:17:56.249123') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:17:56.251302') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 7, '2015-02-26 17:17:56.253371')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c752eae8db40c4f4cf5821b0880b0166', '9902a1d22a141a826ae31b1c83cb928c', 7, '127.0.0.1', '2015-02-26 17:17:56.274436')  (14.7ms) COMMIT  (0.7ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:17:56.302148', '2015-02-26 17:17:56.302148')  (15.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:56.356757')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 7, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:56.383765')  (18.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:56.409923' WHERE `dispatched_services`.`id` = 7  (15.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.1ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 218ms (Views: 19.6ms | ActiveRecord: 69.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:56 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5aaeab19b9e061ba5c45ccb67e48d252' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:56.514952') SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:17:56.517400') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:17:56.519821')  (15.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '5aaeab19b9e061ba5c45ccb67e48d252', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:17:56.542254')  (14.8ms) COMMIT  (1.3ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:17:56.570313', '2015-02-26 17:17:56.570313')  (68.3ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (52.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:56.716795')  (27.6ms) COMMIT  (1.0ms) BEGIN SQL (30.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:56.759904')  (21.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:56.820806' WHERE `dispatched_services`.`id` = 8  (33.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (27.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 385ms (Views: 20.5ms | ActiveRecord: 128.5ms) Started GET "/borrow_direct/BorrowDirect/8?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:17:56 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:17:56.905072' WHERE `dispatched_services`.`id` = 8  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 8, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:56.924251')  (14.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Redirected to http://www.example.com/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 38.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:56.955704' WHERE `dispatched_services`.`id` = 8  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 11  (18.9ms) COMMIT Started GET "/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:57 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"8", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:56-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 [["request_id", 8]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (40.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (41.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (41.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (55.4ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 78ms (Views: 17.0ms | ActiveRecord: 51.1ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:57 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17a84058fc456cdf5cfc2546aa9c105a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:57.095652') SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:17:57.097990') SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:17:57.100243')  (21.9ms) COMMIT  (1.1ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '17a84058fc456cdf5cfc2546aa9c105a', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:17:57.128602')  (27.9ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:17:57.169550', '2015-02-26 17:17:57.169550')  (17.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:57.226529')  (17.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:57.258085')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:57.283501' WHERE `dispatched_services`.`id` = 9  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 244ms (Views: 20.8ms | ActiveRecord: 93.1ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:57 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c2747f3703f6a321b6978b1bdfceaa4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:57.388741') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:17:57.390870') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-02-26 17:17:57.392669')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '2c2747f3703f6a321b6978b1bdfceaa4', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2015-02-26 17:17:57.412761')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2015-02-26 17:17:57.440399', '2015-02-26 17:17:57.440399')  (14.1ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:57.498182')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 10, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:57.527581')  (15.0ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:57.553613' WHERE `dispatched_services`.`id` = 10  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 [["id", 10]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 223ms (Views: 20.1ms | ActiveRecord: 67.8ms) Started GET "/borrow_direct/BorrowDirect/10" for 127.0.0.1 at 2015-02-26 12:17:57 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 10, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:57.615465')  (16.8ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Redirected to http://www.example.com/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 23.7ms) Started GET "/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:57 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"10", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:57-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)  (1.0ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 [["request_id", 10]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 [["id", 10]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.5ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 42ms (Views: 20.2ms | ActiveRecord: 11.4ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fd69f5626b0b2e614cf8b7b302cf0b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:57.736063') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:17:57.738517') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2015-02-26 17:17:57.740577') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2015-02-26 17:17:57.742392')  (25.9ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0fd69f5626b0b2e614cf8b7b302cf0b3', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2015-02-26 17:17:57.773391')  (25.6ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 11, 'test_holding', 'holding', '2015-02-26 17:17:57.808364')  (36.7ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:17:57.858601', '2015-02-26 17:17:57.858601')  (14.6ms) COMMIT  (1.4ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ac8ba964226c5c856be0c8394c29f18' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.8ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:57.888060') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:17:57.890741') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2015-02-26 17:17:57.892591') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2015-02-26 17:17:57.894448')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0ac8ba964226c5c856be0c8394c29f18', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2015-02-26 17:17:57.917873')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 12, 'test_holding', 'holding', '2015-02-26 17:17:57.939251')  (14.5ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:57.968194')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2015-02-26 17:17:57.990050', '2015-02-26 17:17:57.990050')  (15.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85d76beed1946580b1713809da9a4cdc' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:58.018965') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:17:58.021009') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 13, '2015-02-26 17:17:58.022812') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 13, '2015-02-26 17:17:58.024552')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '85d76beed1946580b1713809da9a4cdc', 'e7e9149c1fdfcd3be6736b651a0064bb', 13, '0.0.0.0', '2015-02-26 17:17:58.044031')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 13, 'test_holding', 'holding', '2015-02-26 17:17:58.064978')  (14.1ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:58.092654')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2015-02-26 17:17:58.114193', '2015-02-26 17:17:58.114193')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04373ff56fc664321125480c81b4709d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:17:58.143418') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:17:58.145416') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2015-02-26 17:17:58.147299')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '04373ff56fc664321125480c81b4709d', '9902a1d22a141a826ae31b1c83cb928c', 14, '0.0.0.0', '2015-02-26 17:17:58.166732')  (14.0ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:58.191016')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 14, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:58.217566')  (17.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2015-02-26 17:17:58.241954', '2015-02-26 17:17:58.241954')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '838612a2005406f92a3c601f42a7f8c9' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:17:58.270140') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:17:58.272053') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 15, '2015-02-26 17:17:58.273810')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '838612a2005406f92a3c601f42a7f8c9', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 15, '0.0.0.0', '2015-02-26 17:17:58.293141')  (14.5ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:58.318403')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 15, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:58.386250')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2015-02-26 17:17:58.408206', '2015-02-26 17:17:58.408206')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae6c2f5d1dd5994a1c385499c927a764' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:58.436837') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:17:58.438881') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2015-02-26 17:17:58.440906')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ae6c2f5d1dd5994a1c385499c927a764', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2015-02-26 17:17:58.460755')  (16.0ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:58.488021')  (18.9ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 16, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:58.519877')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2015-02-26 17:17:58.545242', '2015-02-26 17:17:58.545242')  (14.4ms) COMMIT  (1.0ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae89e070fc271b3b3462f07268ef7005' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:58.574307') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:17:58.576434') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2015-02-26 17:17:58.578366')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ae89e070fc271b3b3462f07268ef7005', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2015-02-26 17:17:58.597831')  (14.8ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:58.623486')  (17.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 17, '2015-02-26 17:17:58.654159', '2015-02-26 17:17:58.654159')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:17:58.679476' WHERE `dispatched_services`.`id` = 17  (14.5ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '399904f6e44516e42b8aa7ca5445ebb1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:58.738309') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:17:58.740217') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2015-02-26 17:17:58.742075') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2015-02-26 17:17:58.743913')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '399904f6e44516e42b8aa7ca5445ebb1', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2015-02-26 17:17:58.763259')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (18, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:17:58.784927')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:58.805711')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:17:58.826848', '2015-02-26 17:17:58.826848')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed345beb5d08732b660b64580e4b1c36' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:58.916826') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:17:58.918973') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:17:58.920867')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ed345beb5d08732b660b64580e4b1c36', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:17:58.940544')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 19  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 19\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:58.967895')  (14.2ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://test.host/resolve?umlaut.request_id=19&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.9ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '417c034b5adc7c9f5081737af4f6c29f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:58.997697') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:17:58.999705') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:17:59.001720')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '417c034b5adc7c9f5081737af4f6c29f', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:17:59.021496')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.043010')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 32  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 32\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.068894')  (14.0ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) Redirected to http://test.host/resolve?umlaut.request_id=20&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.7ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a2f3bbefd9093b68bf47d409ff6c128' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.099268') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:17:59.101336') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:17:59.103285')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6a2f3bbefd9093b68bf47d409ff6c128', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:17:59.122468')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.143426')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:17:59.170726', '2015-02-26 17:17:59.170726')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.192014')  (14.1ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Redirected to http://test.host/resolve?umlaut.request_id=21&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 55ms (ActiveRecord: 40.5ms) DispatchedService Load (4.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (6.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:59.233680' WHERE `dispatched_services`.`id` = 19  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 35  (13.9ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7c480d747da00ae1a158dc3c815a516' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.280560') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:17:59.282691') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:17:59.284479')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f7c480d747da00ae1a158dc3c815a516', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:17:59.304839')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 22, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.326199')  (18.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2015-02-26 17:17:59.357301', '2015-02-26 17:17:59.357301')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.378611')  (14.8ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://example.org Completed 302 Found in 56ms (ActiveRecord: 41.5ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a62654192994d3367a90c3c1f9fe07d4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.413461') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:17:59.415374') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-02-26 17:17:59.417126')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a62654192994d3367a90c3c1f9fe07d4', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-02-26 17:17:59.436783')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.458288')  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 23, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.529341')  (18.8ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 78ms (ActiveRecord: 23.8ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b72fac57685e9353851ce5eb9062166' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.565094') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:17:59.567069') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-02-26 17:17:59.568986')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5b72fac57685e9353851ce5eb9062166', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-02-26 17:17:59.588924')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 24, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.610162')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2015-02-26 17:17:59.637170', '2015-02-26 17:17:59.637170')  (18.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.662469')  (14.4ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 56ms (Views: 0.4ms | ActiveRecord: 45.0ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Request Load (6.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '494ad141edc49d175a51512ffc50c821' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN  (10.8ms) BEGIN SQL (3.7ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:59.701801' WHERE `dispatched_services`.`id` = 21 SQL (3.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.713477') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:17:59.717845') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2015-02-26 17:17:59.719883')  (16.9ms) COMMIT  (0.7ms) BEGIN  (16.9ms) COMMIT SQL (2.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 41  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '494ad141edc49d175a51512ffc50c821', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2015-02-26 17:17:59.741796')  (15.0ms) COMMIT  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 25, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.768700')  (16.0ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) Redirected to http://test.host/resolve?umlaut.request_id=25&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 23.3ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b409873d13c60e0cba46ef6c01dba58' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:17:59.804785') SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 26, '2015-02-26 17:17:59.806947') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 26, '2015-02-26 17:17:59.809156') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 26, '2015-02-26 17:17:59.810988') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 26, '2015-02-26 17:17:59.812936') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 26, '2015-02-26 17:17:59.814571') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 26, '2015-02-26 17:17:59.816328')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7b409873d13c60e0cba46ef6c01dba58', 'd95884a882a64501650fb8f9deae5104', 26, 'info:sid/google', '0.0.0.0', '2015-02-26 17:17:59.836213')  (14.2ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:17:59.860623')  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:17:59.881884', '2015-02-26 17:17:59.881884')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2f5cb7530d0519bf15b2232cf11b57f' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:17:59.916052') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:17:59.918051') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2015-02-26 17:17:59.919685') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2015-02-26 17:17:59.921432') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 27, '2015-02-26 17:17:59.923119') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 27, '2015-02-26 17:17:59.924825') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2015-02-26 17:17:59.926599') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2015-02-26 17:17:59.928344') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2015-02-26 17:17:59.930138') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2015-02-26 17:17:59.931882') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2015-02-26 17:17:59.933860')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e2f5cb7530d0519bf15b2232cf11b57f', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2015-02-26 17:17:59.954354')  (14.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:17:59.977073', '2015-02-26 17:17:59.977073')  (25.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (1.7ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e77015e726f4f6a11c50fcffe95affa6' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:18:00.067576') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:18:00.069941') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 28, '2015-02-26 17:18:00.071980') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 28, '2015-02-26 17:18:00.073800')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e77015e726f4f6a11c50fcffe95affa6', '62590701c6f35b45309577ef8c8c22b4', 28, '0.0.0.0', '2015-02-26 17:18:00.093705')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:18:00.116882')  (14.0ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.8ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK ActiveRecord::SchemaMigration Load (2.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (89.5ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.7ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (40.0ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (88.9ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (87.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (84.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.0ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (78.0ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (37.4ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (86.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.1ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (90.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (67.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (36.5ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (80.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (77.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (99.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (76.7ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (71.5ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (77.7ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (34.2ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (76.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (71.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (73.9ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (46.3ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (92.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (84.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (47.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (77.3ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (67.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (50.3ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (96.4ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (45.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (98.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.0ms) SELECT version FROM `schema_migrations`  (14.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a5b71e3d4bce09165c2a3670ed513c6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:19:14.135485') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:19:14.138047') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2015-02-26 17:19:14.140041') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2015-02-26 17:19:14.141898')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2a5b71e3d4bce09165c2a3670ed513c6', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2015-02-26 17:19:14.174914')  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 1, 'test_holding', 'holding', '2015-02-26 17:19:14.214994')  (14.7ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:19:14.244449')  (14.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:19:14.280240', '2015-02-26 17:19:14.280240')  (14.4ms) COMMIT  (0.7ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '228a3d1b389792aad88a5c9f6a9b05b9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:19:14.313013') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:19:14.315072') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2015-02-26 17:19:14.316998') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2015-02-26 17:19:14.318957')  (14.4ms) COMMIT  (1.1ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '228a3d1b389792aad88a5c9f6a9b05b9', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2015-02-26 17:19:14.338960')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 2, 'test_holding', 'holding', '2015-02-26 17:19:14.361286')  (14.2ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:19:14.390297')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2015-02-26 17:19:14.412481', '2015-02-26 17:19:14.412481')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f68ef766f89bcbbbee35b0dd038c71b5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:19:14.442336') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:19:14.444509') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2015-02-26 17:19:14.446754') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2015-02-26 17:19:14.448671')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f68ef766f89bcbbbee35b0dd038c71b5', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2015-02-26 17:19:14.509403')  (14.3ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 3, 'test_holding', 'holding', '2015-02-26 17:19:14.531719')  (14.5ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2015-02-26 17:19:14.559631', '2015-02-26 17:19:14.559631')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (1.0ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.7ms) ROLLBACK Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bec88f28342360915c9c70472d70e5c7' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:19:14.604209') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:19:14.606586') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 4, '2015-02-26 17:19:14.608685')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bec88f28342360915c9c70472d70e5c7', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 4, '0.0.0.0', '2015-02-26 17:19:14.628630')  (14.3ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:14.653569')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 4, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:19:14.682756')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2015-02-26 17:19:14.704062', '2015-02-26 17:19:14.704062')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f609501e59556be8ffb6105cc5d8a23' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:19:14.733005') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:19:14.735077') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 5, '2015-02-26 17:19:14.737034')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8f609501e59556be8ffb6105cc5d8a23', '9902a1d22a141a826ae31b1c83cb928c', 5, '0.0.0.0', '2015-02-26 17:19:14.757732')  (14.6ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:14.784214')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 5, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:19:14.812772')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2015-02-26 17:19:14.835065', '2015-02-26 17:19:14.835065')  (14.2ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43282a38fe7223f113051b7d111b9a0e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:14.862704') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:19:14.864726') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:19:14.866517')  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '43282a38fe7223f113051b7d111b9a0e', '1f2487b5ab29a0f58587335258d7f8e0', 6, '0.0.0.0', '2015-02-26 17:19:14.886314')  (14.2ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:14.911435')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 6, '2015-02-26 17:19:14.939313', '2015-02-26 17:19:14.939313')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:19:14.965555' WHERE `dispatched_services`.`id` = 6  (15.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a74e8745e0cd765dcae8b44f8d9f293' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:15.068161') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:19:15.070218') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:19:15.072281')  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1a74e8745e0cd765dcae8b44f8d9f293', '1f2487b5ab29a0f58587335258d7f8e0', 7, '0.0.0.0', '2015-02-26 17:19:15.093339')  (14.0ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:15.117981')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:19:15.145757')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2015-02-26 17:19:15.171429', '2015-02-26 17:19:15.171429')  (14.3ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48dc46b6fedc11ea9edef4e3a4dcfc7c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:15.200084') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:19:15.202187') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:19:15.204048')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.9ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '48dc46b6fedc11ea9edef4e3a4dcfc7c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '0.0.0.0', '2015-02-26 17:19:15.224084')  (13.9ms) COMMIT ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC  (1.3ms) BEGIN SQL (4.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:15.251258')  (17.8ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (7.7ms) BEGIN SQL (5.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2015-02-26 17:19:15.288309', '2015-02-26 17:19:15.288309')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 57ms (Views: 56.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (4.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 6ms (Views: 0.4ms | ActiveRecord: 4.6ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (2.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ab8b3bd8173a708b9be120e82ea7619' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (4.4ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:15.409498') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:19:15.412274') SQL (2.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2015-02-26 17:19:15.414537')  (21.0ms) COMMIT  (2.6ms) BEGIN SQL (6.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5ab8b3bd8173a708b9be120e82ea7619', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2015-02-26 17:19:15.444799')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 9  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 9\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:15.477675')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://test.host/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A15-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 40ms (ActiveRecord: 20.4ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae4d1fc0bae10867bb66f71b4444e509' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:15.517194') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:19:15.519361') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2015-02-26 17:19:15.521339')  (18.1ms) COMMIT  (5.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ae4d1fc0bae10867bb66f71b4444e509', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2015-02-26 17:19:15.550209')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (2.8ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 10, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:15.572173')  (17.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (2.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 15  (0.9ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 15\n', 10, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:15.605515')  (17.3ms) COMMIT Referent Load (3.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Redirected to http://test.host/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A15-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 45ms (ActiveRecord: 29.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6a1a2cdc14dc9e96da9ce349bfa1a6e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (3.4ms) BEGIN SQL (5.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:15.653845') SQL (10.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:19:15.660551') SQL (2.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2015-02-26 17:19:15.671910')  (17.7ms) COMMIT  (3.9ms) BEGIN SQL (2.8ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c6a1a2cdc14dc9e96da9ce349bfa1a6e', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2015-02-26 17:19:15.700106')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 11, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:15.726330')  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (5.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.2ms) BEGIN SQL (3.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2015-02-26 17:19:15.765196', '2015-02-26 17:19:15.765196')  (14.6ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 11, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:15.789616')  (14.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (2.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Redirected to http://test.host/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A15-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 83ms (ActiveRecord: 47.2ms) DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 DispatchedService Load (2.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.8ms) BEGIN ServiceResponse Load (44.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC SQL (7.0ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:19:15.836221' WHERE `dispatched_services`.`id` = 9  (22.1ms) COMMIT  (0.7ms) BEGIN SQL (2.6ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18  (22.8ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd459458d2712342d39715e71e7e68a17' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:15.964092') SQL (2.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:19:15.969570') SQL (3.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2015-02-26 17:19:15.973660')  (14.9ms) COMMIT  (4.4ms) BEGIN SQL (5.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd459458d2712342d39715e71e7e68a17', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2015-02-26 17:19:16.000876')  (16.4ms) COMMIT  (1.4ms) BEGIN SQL (2.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 12, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:16.036142')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (2.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (6.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.3ms) BEGIN SQL (1.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 12, '2015-02-26 17:19:16.079089', '2015-02-26 17:19:16.079089')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 12, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:16.101771')  (14.7ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) Redirected to http://example.org Completed 302 Found in 76ms (ActiveRecord: 56.7ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7962fd58ac1e809c2d5337798bfe8064' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.8ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:16.142290') SQL (2.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:19:16.146336') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2015-02-26 17:19:16.149796')  (14.5ms) COMMIT  (12.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7962fd58ac1e809c2d5337798bfe8064', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2015-02-26 17:19:16.182098')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 13, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:16.204965')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 13, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:16.232408')  (14.2ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 25ms (ActiveRecord: 18.2ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '350c6fc9d477c84a2e1a098b806d302e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (4.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:16.259166') SQL (3.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:19:16.265050') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2015-02-26 17:19:16.269353')  (14.8ms) COMMIT  (1.4ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '350c6fc9d477c84a2e1a098b806d302e', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2015-02-26 17:19:16.297672')  (16.7ms) COMMIT  (1.0ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 14, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:16.330061')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.3ms) BEGIN SQL (2.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2015-02-26 17:19:16.370616', '2015-02-26 17:19:16.370616')  (15.3ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT  (1.4ms) BEGIN SQL (5.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 14, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:16.396575')  (15.5ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 82ms (Views: 7.6ms | ActiveRecord: 52.6ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} VCR is currently using the following cassette: - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml - :record => :once - :match_requests_on => [:method, :uri, :body] Under the current configuration VCR can not find a suitable HTTP interaction to replay and is prevented from recording new requests. There are a few ways you can deal with this: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * You can use the :new_episodes record mode to allow VCR to record this new request to the existing cassette [2]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [3]. * The current record mode (:once) does not allow new requests to be recorded to a previously recorded cassette. You can delete the cassette file and re-run your tests to allow the cassette to be recorded with this request [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Request Load (6.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2155146fd1cb0d7efa33e237f58e8a16' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN  (11.5ms) BEGIN SQL (4.8ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:19:16.458049' WHERE `dispatched_services`.`id` = 11 SQL (3.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:16.471406') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:19:16.476380') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2015-02-26 17:19:16.478521')  (19.7ms) COMMIT  (0.7ms) BEGIN  (64.3ms) COMMIT SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24  (0.9ms) BEGIN SQL (3.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2155146fd1cb0d7efa33e237f58e8a16', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2015-02-26 17:19:16.548897')  (22.2ms) COMMIT  (15.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 15, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:16.579201')  (14.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Redirected to http://test.host/resolve?umlaut.request_id=15&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A16-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 20.7ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:19:16 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50c2d92492a2dae3fd2c01fce6766449' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:16.659612') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:19:16.661737') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2015-02-26 17:19:16.663818')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '50c2d92492a2dae3fd2c01fce6766449', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2015-02-26 17:19:16.684631')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 16, '2015-02-26 17:19:16.716572', '2015-02-26 17:19:16.716572')  (14.6ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:16.778223')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:19:16.846275' WHERE `dispatched_services`.`id` = 12  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (9.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (13.8ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (11.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (36.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (115.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 412ms (Views: 156.9ms | ActiveRecord: 67.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:19:17 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21d1a89a859e0229a593ea434e851d77' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:19:17.058915') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 17, '2015-02-26 17:19:17.061032') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 17, '2015-02-26 17:19:17.063006') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 17, '2015-02-26 17:19:17.064788') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 17, '2015-02-26 17:19:17.066547')  (15.6ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '21d1a89a859e0229a593ea434e851d77', 'a03fb1fb17f24f5ea845bf6c4450490b', 17, '127.0.0.1', '2015-02-26 17:19:17.088309')  (14.6ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2015-02-26 17:19:17.115691', '2015-02-26 17:19:17.115691')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:19:17.168653')  (14.1ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:19:17.190658' WHERE `dispatched_services`.`id` = 13  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.7ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 190ms (Views: 18.8ms | ActiveRecord: 69.9ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:19:17 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60ae09859f4298e9d80ea072719a71a8' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:19:17.294797') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:19:17.296941') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 18, '2015-02-26 17:19:17.298869') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 18, '2015-02-26 17:19:17.300597') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 18, '2015-02-26 17:19:17.302291')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '60ae09859f4298e9d80ea072719a71a8', 'bc13b80c2923ce2cbe0c8347141587a7', 18, '127.0.0.1', '2015-02-26 17:19:17.322858')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2015-02-26 17:19:17.349737', '2015-02-26 17:19:17.349737')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:19:17.402932' WHERE `dispatched_services`.`id` = 14  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (1.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (7.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (3.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (34.7ms) Permalink Load (2.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (1.1ms) COMMIT Completed 200 OK in 182ms (Views: 24.3ms | ActiveRecord: 77.7ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"18x3Er-LYs1gYBgvVk0YXyQTVlo","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ----------------------------------------------------------------------------  (2.0ms) BEGIN Request Load (10.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9a25b9afd6a79554578da036bc5c3fb' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (6.2ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"18x3Er-LYs1gYBgvVk0YXyQTVlo\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:19:17.496694' WHERE `dispatched_services`.`id` = 10 SQL (3.5ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:19:17.510850') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 19, '2015-02-26 17:19:17.515624') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 19, '2015-02-26 17:19:17.517763') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 19, '2015-02-26 17:19:17.520930')  (18.7ms) COMMIT  (0.6ms) BEGIN  (14.5ms) COMMIT SQL (1.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 20  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c9a25b9afd6a79554578da036bc5c3fb', '318e542032e1812e600e07efbdb1dfcc', 19, '0.0.0.0', '2015-02-26 17:19:17.541056')  (15.6ms) COMMIT  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 19, '2015-02-26 17:19:17.563574', '2015-02-26 17:19:17.563574')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=19" for 127.0.0.1 at 2015-02-26 12:19:17 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"19"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 [["request_id", 19]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.1ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 39ms (Views: 19.4ms | ActiveRecord: 10.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:19:17 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1404e7017f1932a75961213e0e8e676f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:17.680314') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:19:17.682389') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2015-02-26 17:19:17.684264')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1404e7017f1932a75961213e0e8e676f', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2015-02-26 17:19:17.705105')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.7ms) BEGIN SQL (9.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2015-02-26 17:19:17.733035', '2015-02-26 17:19:17.733035')  (18.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (1.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 20, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:19:17.820850')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 20, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:19:17.851912')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:19:17.877915' WHERE `dispatched_services`.`id` = 16  (18.2ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (12.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (13.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (39.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 275ms (Views: 32.4ms | ActiveRecord: 81.2ms) Started GET "/borrow_direct/BorrowDirect/20?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:19:17 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:19:17.960799' WHERE `dispatched_services`.`id` = 16  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:17.980614')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) Redirected to http://www.example.com/resolve?umlaut.request_id=20&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 36.9ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:19:18.015713' WHERE `dispatched_services`.`id` = 16  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=20&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:19:18 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"20", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:19:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 [["request_id", 20]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (46.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (47.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (64.8ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 88ms (Views: 66.3ms | ActiveRecord: 9.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:19:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f32226205451896884eb08e22a62d2ad' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:19:18.164893') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:19:18.166882') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 21, '2015-02-26 17:19:18.168603')  (14.5ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f32226205451896884eb08e22a62d2ad', '9902a1d22a141a826ae31b1c83cb928c', 21, '127.0.0.1', '2015-02-26 17:19:18.189862')  (14.2ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2015-02-26 17:19:18.217478', '2015-02-26 17:19:18.217478')  (13.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 21, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:19:18.272458')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 21, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:19:18.302080')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:19:18.324631' WHERE `dispatched_services`.`id` = 17  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (25.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 221ms (Views: 23.8ms | ActiveRecord: 63.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:19:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f488aa28d40db46fbcc13b1466a48fbc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:18.396407') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:19:18.398934') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 22, '2015-02-26 17:19:18.400946')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f488aa28d40db46fbcc13b1466a48fbc', '1f2487b5ab29a0f58587335258d7f8e0', 22, '127.0.0.1', '2015-02-26 17:19:18.422644')  (14.7ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 22, '2015-02-26 17:19:18.493192', '2015-02-26 17:19:18.493192')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (22) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (22) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (22) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`id` = 18 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 22, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:19:18.546526')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 22, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:19:18.576392')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:19:18.601319' WHERE `dispatched_services`.`id` = 18  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.7ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 264ms (Views: 21.4ms | ActiveRecord: 66.6ms) Started GET "/borrow_direct/BorrowDirect/22?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:19:18 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:19:18.664849' WHERE `dispatched_services`.`id` = 18  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:18.684364')  (14.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://www.example.com/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 37.3ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:19:18.716059' WHERE `dispatched_services`.`id` = 18  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 35  (14.8ms) COMMIT Started GET "/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:19:18 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"22", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:19:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 [["request_id", 22]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 22 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 38ms (Views: 17.3ms | ActiveRecord: 10.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:19:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a2c2cea039a3f8eef729563294e3bd81' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:18.806623') SQL (1.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:19:18.808666') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2015-02-26 17:19:18.811464')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a2c2cea039a3f8eef729563294e3bd81', '1f2487b5ab29a0f58587335258d7f8e0', 23, '127.0.0.1', '2015-02-26 17:19:18.873516')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 23, '2015-02-26 17:19:18.900748', '2015-02-26 17:19:18.900748')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (23) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (23) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (23) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`id` = 19 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 23, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:19:18.955067')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 23, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:19:18.983723')  (13.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:19:19.007717' WHERE `dispatched_services`.`id` = 19  (15.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.3ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 23 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 260ms (Views: 21.5ms | ActiveRecord: 66.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:19:19 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b880561e394d769548abec4e0196cf55' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:19.078119') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:19:19.080210') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2015-02-26 17:19:19.081968')  (18.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b880561e394d769548abec4e0196cf55', '1f2487b5ab29a0f58587335258d7f8e0', 24, '127.0.0.1', '2015-02-26 17:19:19.106314')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 24, '2015-02-26 17:19:19.132974', '2015-02-26 17:19:19.132974')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (24) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (24) ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (24) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (44.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`id` = 20 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 24, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:19:19.256407')  (40.0ms) COMMIT  (0.7ms) BEGIN SQL (37.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 24, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:19:19.311717')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:19:19.374143' WHERE `dispatched_services`.`id` = 20  (39.5ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (27.9ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 391ms (Views: 25.4ms | ActiveRecord: 68.0ms) Started GET "/borrow_direct/BorrowDirect/24" for 127.0.0.1 at 2015-02-26 12:19:19 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:19.473471')  (19.3ms) COMMIT Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (2.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Redirected to http://www.example.com/resolve?umlaut.request_id=24&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 37ms (ActiveRecord: 26.6ms) Started GET "/resolve?umlaut.request_id=24&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:19:19 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"24", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:19:19-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 [["request_id", 24]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 [["id", 24]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.4ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.6ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 24 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 56ms (Views: 21.7ms | ActiveRecord: 10.0ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae379d40c11ba68418defcc1feade643' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.4ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:19:19.579995') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:19:19.582321') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 25, '2015-02-26 17:19:19.584548') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 25, '2015-02-26 17:19:19.586502')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ae379d40c11ba68418defcc1feade643', 'e7e9149c1fdfcd3be6736b651a0064bb', 25, '0.0.0.0', '2015-02-26 17:19:19.607209')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (25, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:19:19.629578')  (14.5ms) COMMIT  (3.2ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:19:19.701512')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2015-02-26 17:19:19.724323', '2015-02-26 17:19:19.724323')  (14.0ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '224c41c2d9394e50c918f7e9d60a01c8' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:19:19.764401') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:19:19.766704') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 26, '2015-02-26 17:19:19.768884') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 26, '2015-02-26 17:19:19.770895')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '224c41c2d9394e50c918f7e9d60a01c8', '62590701c6f35b45309577ef8c8c22b4', 26, '0.0.0.0', '2015-02-26 17:19:19.793093')  (22.5ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:19:19.825656')  (14.2ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f48687ab7b71d37dc8a81da6bf0ed8b7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:19:19.870396') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:19:19.872559') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2015-02-26 17:19:19.874480') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2015-02-26 17:19:19.876195') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 27, '2015-02-26 17:19:19.877969') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 27, '2015-02-26 17:19:19.879734') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2015-02-26 17:19:19.881879') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2015-02-26 17:19:19.883927') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2015-02-26 17:19:19.885800') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2015-02-26 17:19:19.888028') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2015-02-26 17:19:19.889881')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f48687ab7b71d37dc8a81da6bf0ed8b7', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2015-02-26 17:19:19.910652')  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:19:19.932805', '2015-02-26 17:19:19.932805')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 ServiceResponse Exists (1.0ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '926bd26ec8cb57d7ca4eee8d47845a41' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:19:19.976732') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2015-02-26 17:19:19.979111') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2015-02-26 17:19:19.981360') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2015-02-26 17:19:19.983181') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 28, '2015-02-26 17:19:19.985121') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2015-02-26 17:19:19.987059') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2015-02-26 17:19:19.988965')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '926bd26ec8cb57d7ca4eee8d47845a41', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2015-02-26 17:19:20.008997')  (14.1ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:19:20.034089')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:19:20.055894', '2015-02-26 17:19:20.055894')  (14.7ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (2.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (88.1ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.8ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (40.8ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (81.2ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (81.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (74.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.3ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (83.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.0ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (80.2ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.9ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (78.0ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (90.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.0ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (76.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (76.5ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (92.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (110.8ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (81.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (113.9ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (43.8ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (87.2ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (90.5ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (81.1ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (37.6ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (74.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (76.6ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (35.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (70.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (71.4ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (37.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (88.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (59.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (107.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (18.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.9ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.7ms) ROLLBACK  (0.7ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '234900a2988f8d6ab76aec5d9cc1ad15' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:03.728552') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:22:03.731488') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:22:03.734175')  (19.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '234900a2988f8d6ab76aec5d9cc1ad15', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:22:03.808142')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:22:03.858881', '2015-02-26 17:22:03.858881')  (15.2ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:04.010543')  (15.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:22:04.075073' WHERE `dispatched_services`.`id` = 1  (19.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (8.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (13.0ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (38.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (112.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 687ms (Views: 157.5ms | ActiveRecord: 97.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:22:04 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e393240fd958985e95589446c31cf772' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:22:04.297621') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:22:04.299748') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:22:04.301539') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:22:04.303192') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:22:04.304933')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e393240fd958985e95589446c31cf772', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:22:04.326051')  (18.0ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:22:04.393893', '2015-02-26 17:22:04.393893')  (14.6ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:22:04.448518')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:04.471804' WHERE `dispatched_services`.`id` = 2  (18.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.3ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 241ms (Views: 21.6ms | ActiveRecord: 74.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:22:04 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31837cb997fc9f424b9994f1ed19de5b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:22:04.546431') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:22:04.548661') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:22:04.550568') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:22:04.552412') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:22:04.554377')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '31837cb997fc9f424b9994f1ed19de5b', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:22:04.574750')  (23.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:22:04.610400', '2015-02-26 17:22:04.610400')  (23.6ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (24.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:04.682650' WHERE `dispatched_services`.`id` = 3  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.7ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 191ms (Views: 16.1ms | ActiveRecord: 86.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e34fab49cb8b63863a4e907101ba0f5' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:22:04.741307') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:22:04.743420') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:22:04.745163') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:22:04.747015')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6e34fab49cb8b63863a4e907101ba0f5', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:22:04.766592')  (13.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:22:04.787932', '2015-02-26 17:22:04.787932')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:22:04 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 73ms (Views: 16.1ms | ActiveRecord: 12.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b232bcf67806db956c3a23d469e0a878' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:04.904572') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:22:04.906745') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:22:04.908707')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b232bcf67806db956c3a23d469e0a878', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:22:04.929109')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:22:04.955838', '2015-02-26 17:22:04.955838')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:05.008605')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:05.037360')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:05.062361' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (8.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (11.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (30.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 221ms (Views: 23.8ms | ActiveRecord: 70.6ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:22:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:22:05.169558' WHERE `dispatched_services`.`id` = 5  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:05.189204')  (15.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 39.3ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:22:05.224592' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:22:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:22:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.7ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 41ms (Views: 18.7ms | ActiveRecord: 12.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:22:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'abf21a21d9be5d1cbe479b11459c3e5b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:22:05.322235') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:22:05.324312') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:22:05.326090')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'abf21a21d9be5d1cbe479b11459c3e5b', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:22:05.346837')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:22:05.373207', '2015-02-26 17:22:05.373207')  (14.9ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:05.427478')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:22:05.454563')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:05.476725' WHERE `dispatched_services`.`id` = 6  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (41.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 249ms (Views: 57.4ms | ActiveRecord: 67.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9742e20c8d6db0865bfeae18dc5c3490' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:05.579384') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:22:05.581737') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:22:05.583800')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '9742e20c8d6db0865bfeae18dc5c3490', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:22:05.604785')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:22:05.632205', '2015-02-26 17:22:05.632205')  (15.0ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:05.686239')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:05.715953')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:05.740683' WHERE `dispatched_services`.`id` = 7  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.8ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 218ms (Views: 20.0ms | ActiveRecord: 69.3ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:22:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:22:05.801723' WHERE `dispatched_services`.`id` = 7  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:05.820949')  (14.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 39.0ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:05.890593' WHERE `dispatched_services`.`id` = 7  (17.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (14.3ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:22:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:22:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.0ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 38ms (Views: 16.3ms | ActiveRecord: 11.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd07d28dc20590d3f9fe45ce3f76de513' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:05.983716') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:22:05.985912') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:22:05.987897')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd07d28dc20590d3f9fe45ce3f76de513', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:22:06.008463')  (15.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:22:06.036442', '2015-02-26 17:22:06.036442')  (17.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:06.091858')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:06.120716')  (15.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:06.146599' WHERE `dispatched_services`.`id` = 8  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.1ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (1.1ms) COMMIT Completed 200 OK in 220ms (Views: 19.5ms | ActiveRecord: 71.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:06 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e49285fad453fdb83e5da664ef6f5939' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:06.252918') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:22:06.255058') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:22:06.256985')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e49285fad453fdb83e5da664ef6f5939', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:22:06.277091')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:22:06.303527', '2015-02-26 17:22:06.303527')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:06.356661')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:06.384679')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:06.409141' WHERE `dispatched_services`.`id` = 9  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.4ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 213ms (Views: 20.8ms | ActiveRecord: 66.3ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:22:06 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:06.469002')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 28ms (ActiveRecord: 20.1ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:22:06 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:22:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (57.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 78ms (Views: 57.1ms | ActiveRecord: 11.6ms) Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a0cb5cab999519cc85ce58b0e0e210c' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:22:06.584043') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:22:06.586173') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 10, '2015-02-26 17:22:06.588053') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 10, '2015-02-26 17:22:06.589904')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3a0cb5cab999519cc85ce58b0e0e210c', '62590701c6f35b45309577ef8c8c22b4', 10, '0.0.0.0', '2015-02-26 17:22:06.609203')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:22:06.631630')  (14.8ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c49c4694e478ed4ecdbcd3f2365f637' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:22:06.670832') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:22:06.673100') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 11, '2015-02-26 17:22:06.675041') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 11, '2015-02-26 17:22:06.676858') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 11, '2015-02-26 17:22:06.678672') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 11, '2015-02-26 17:22:06.680506') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 11, '2015-02-26 17:22:06.682295') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 11, '2015-02-26 17:22:06.684119') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 11, '2015-02-26 17:22:06.685893') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 11, '2015-02-26 17:22:06.687720') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 11, '2015-02-26 17:22:06.689491')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2c49c4694e478ed4ecdbcd3f2365f637', '06d451b80bf9fe3ce6849a48c98522d7', 11, 'info:sid/google', '0.0.0.0', '2015-02-26 17:22:06.709108')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:22:06.731017', '2015-02-26 17:22:06.731017')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 ServiceResponse Exists (1.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 11 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9be86abaa3bf1e7def0510b8fedac1c5' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:22:06.771056') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 12, '2015-02-26 17:22:06.773058') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 12, '2015-02-26 17:22:06.774992') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 12, '2015-02-26 17:22:06.776767') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 12, '2015-02-26 17:22:06.778686') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 12, '2015-02-26 17:22:06.780549') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 12, '2015-02-26 17:22:06.782340')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9be86abaa3bf1e7def0510b8fedac1c5', 'd95884a882a64501650fb8f9deae5104', 12, 'info:sid/google', '0.0.0.0', '2015-02-26 17:22:06.802093')  (14.2ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:22:06.826764')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2015-02-26 17:22:06.848719', '2015-02-26 17:22:06.848719')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17dfa02498900d48e60d0c7bdbdd8e22' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:22:06.877174') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:22:06.879025') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 13, '2015-02-26 17:22:06.881122') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 13, '2015-02-26 17:22:06.883037')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '17dfa02498900d48e60d0c7bdbdd8e22', 'e7e9149c1fdfcd3be6736b651a0064bb', 13, '0.0.0.0', '2015-02-26 17:22:06.903453')  (63.8ms) COMMIT  (1.3ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 13, 'test_holding', 'holding', '2015-02-26 17:22:06.976139')  (56.0ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (2.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2015-02-26 17:22:07.086326', '2015-02-26 17:22:07.086326')  (14.9ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3221596addce7baa9a619f14749a4029' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:22:07.116170') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:22:07.118268') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 14, '2015-02-26 17:22:07.119998') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 14, '2015-02-26 17:22:07.121847')  (21.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3221596addce7baa9a619f14749a4029', 'e7e9149c1fdfcd3be6736b651a0064bb', 14, '0.0.0.0', '2015-02-26 17:22:07.148484')  (33.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 14, 'test_holding', 'holding', '2015-02-26 17:22:07.188664')  (14.5ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:22:07.216814')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2015-02-26 17:22:07.238573', '2015-02-26 17:22:07.238573')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb3c510fe4f62a9382c6c8eee4eca41a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:22:07.266229') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:22:07.268436') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2015-02-26 17:22:07.270278') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2015-02-26 17:22:07.272085')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'eb3c510fe4f62a9382c6c8eee4eca41a', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2015-02-26 17:22:07.290948')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 15, 'test_holding', 'holding', '2015-02-26 17:22:07.312375')  (14.5ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:22:07.340974')  (15.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2015-02-26 17:22:07.363532', '2015-02-26 17:22:07.363532')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7068fe041a4a81d2c64744176fe65f6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:22:07.392618') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:22:07.394618') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 16, '2015-02-26 17:22:07.396416') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 16, '2015-02-26 17:22:07.398150')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f7068fe041a4a81d2c64744176fe65f6', 'e7e9149c1fdfcd3be6736b651a0064bb', 16, '0.0.0.0', '2015-02-26 17:22:07.417464')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (16, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:22:07.438730')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:22:07.459683')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2015-02-26 17:22:07.481232', '2015-02-26 17:22:07.481232')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee46851983bb44e1316aab6682b593ce' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:07.518972') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:22:07.521160') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2015-02-26 17:22:07.523168')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ee46851983bb44e1316aab6682b593ce', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2015-02-26 17:22:07.542997')  (14.6ms) COMMIT ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:07.568111')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2015-02-26 17:22:07.589612', '2015-02-26 17:22:07.589612')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c12f576ad3fba2452bd719507c4bf5f5' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:07.629700') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:22:07.631658') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2015-02-26 17:22:07.633618')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c12f576ad3fba2452bd719507c4bf5f5', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2015-02-26 17:22:07.653460')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 18  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 18\n', 18, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:07.679953')  (15.6ms) COMMIT Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Redirected to http://test.host/resolve?umlaut.request_id=18&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 23.1ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1f13ecd4246e3a02825cb0a39c6b84d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:07.753581') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:22:07.755780') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:22:07.757616')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a1f13ecd4246e3a02825cb0a39c6b84d', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:22:07.777127')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 19, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:07.798236')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 27  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 27\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:07.823837')  (14.7ms) COMMIT Referent Load (1.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://test.host/resolve?umlaut.request_id=19&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 22.4ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de1d11cff1feece81141c0007312fa04' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:07.856170') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:22:07.858489') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:22:07.860296')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'de1d11cff1feece81141c0007312fa04', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:22:07.879876')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:07.901074')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"20"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 20, '2015-02-26 17:22:07.927853', '2015-02-26 17:22:07.927853')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:07.949353')  (14.3ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) Redirected to http://test.host/resolve?umlaut.request_id=20&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 52ms (ActiveRecord: 40.5ms) DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 ServiceResponse Load (4.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:22:07.991794' WHERE `dispatched_services`.`id` = 17  (16.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30  (14.9ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '077e22b8905b7a096637f345dd11126f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:08.041163') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:22:08.043385') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:22:08.045240')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '077e22b8905b7a096637f345dd11126f', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:22:08.065407')  (16.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:08.088665')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:22:08.116320', '2015-02-26 17:22:08.116320')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:08.138309')  (15.8ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Redirected to http://example.org Completed 302 Found in 54ms (ActiveRecord: 42.8ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Request Load (6.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4bc81f49010c660fb918f6d338ea4ae4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN  (10.6ms) BEGIN SQL (3.5ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:22:08.178014' WHERE `dispatched_services`.`id` = 18 SQL (3.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:08.189286') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:22:08.193429') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:22:08.195251')  (18.5ms) COMMIT  (0.8ms) BEGIN  (18.5ms) COMMIT SQL (2.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4bc81f49010c660fb918f6d338ea4ae4', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:22:08.218849')  (16.7ms) COMMIT  (16.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 22, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:08.242104')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:08.269400')  (14.7ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 26ms (ActiveRecord: 20.0ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fedf8f273df6830036d946c5a27d69cf' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:08.296208') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:22:08.298319') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-02-26 17:22:08.300353')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fedf8f273df6830036d946c5a27d69cf', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-02-26 17:22:08.320808')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:08.343210')  (16.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (2.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 23, '2015-02-26 17:22:08.374616', '2015-02-26 17:22:08.374616')  (14.8ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 23, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:08.441790')  (14.6ms) COMMIT Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 104ms (Views: 0.4ms | ActiveRecord: 43.9ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Request Load (6.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0980b932931ba77864f95b68813587fc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN  (9.9ms) BEGIN SQL (3.6ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:22:08.484778' WHERE `dispatched_services`.`id` = 19 SQL (3.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:08.495753') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:22:08.499728') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-02-26 17:22:08.501746')  (15.7ms) COMMIT  (0.7ms) BEGIN  (15.4ms) COMMIT SQL (2.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 36  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0980b932931ba77864f95b68813587fc', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-02-26 17:22:08.522275')  (15.1ms) COMMIT  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:08.548863')  (14.7ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Redirected to http://test.host/resolve?umlaut.request_id=24&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.7ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d46d565e44048563324fbd97f892cb5' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:22:08.582360') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:22:08.584673') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2015-02-26 17:22:08.586710')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4d46d565e44048563324fbd97f892cb5', '9902a1d22a141a826ae31b1c83cb928c', 25, '0.0.0.0', '2015-02-26 17:22:08.607665')  (15.7ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:08.634624')  (16.0ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 25, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:22:08.763067')  (17.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2015-02-26 17:22:08.788121', '2015-02-26 17:22:08.788121')  (14.7ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ff25c8f8b1f2eeef22d3204673f9e52' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:08.816210') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:22:08.818247') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 26, '2015-02-26 17:22:08.819961')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6ff25c8f8b1f2eeef22d3204673f9e52', '1f2487b5ab29a0f58587335258d7f8e0', 26, '0.0.0.0', '2015-02-26 17:22:08.840215')  (14.4ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:08.864931')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 26, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:08.891935')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:22:08.916253', '2015-02-26 17:22:08.916253')  (14.7ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '980af5460be5c8e84de16ffd61bc4596' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:22:08.944591') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:22:08.946602') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 27, '2015-02-26 17:22:08.948531')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '980af5460be5c8e84de16ffd61bc4596', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 27, '0.0.0.0', '2015-02-26 17:22:08.968821')  (14.4ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:08.993610')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 27, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:22:09.018855')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:22:09.040432', '2015-02-26 17:22:09.040432')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4388780db5af524999f465553df90281' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:09.068222') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:22:09.070170') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 28, '2015-02-26 17:22:09.072042')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4388780db5af524999f465553df90281', '1f2487b5ab29a0f58587335258d7f8e0', 28, '0.0.0.0', '2015-02-26 17:22:09.091113')  (14.5ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:09.159461')  (14.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 28, '2015-02-26 17:22:09.187081', '2015-02-26 17:22:09.187081')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (2.2ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:22:09.213212' WHERE `dispatched_services`.`id` = 23  (15.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 ActiveRecord::SchemaMigration Load (2.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (86.2ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.8ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (47.6ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (67.8ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (66.9ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (72.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.0ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (71.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.5ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (83.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.7ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (75.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (66.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (37.6ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (79.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (80.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (74.6ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (78.3ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (69.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (76.4ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (34.9ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (76.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (69.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (73.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (35.9ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (72.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (70.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (34.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (80.6ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (67.0ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.5ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (91.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (38.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (91.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.0ms) SELECT version FROM `schema_migrations`  (14.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '534da243314fbf937ba70148a04f3323' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:22:37.574267') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:22:37.576987') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2015-02-26 17:22:37.578982') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2015-02-26 17:22:37.580850')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '534da243314fbf937ba70148a04f3323', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2015-02-26 17:22:37.617013')  (61.8ms) COMMIT  (0.7ms) BEGIN SQL (34.6ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (1, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:22:37.704555')  (46.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:22:37.792839')  (15.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:22:37.829262', '2015-02-26 17:22:37.829262')  (15.2ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '288ceeca1bbd6e4a13138261e337a3d0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:37.871302') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:22:37.873349') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2015-02-26 17:22:37.875136')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '288ceeca1bbd6e4a13138261e337a3d0', '1f2487b5ab29a0f58587335258d7f8e0', 2, '0.0.0.0', '2015-02-26 17:22:37.894955')  (15.3ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:37.920829')  (23.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2015-02-26 17:22:37.951180', '2015-02-26 17:22:37.951180')  (16.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e0848d3d259dac5af338f72f3d52012' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (37.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:22:37.983965') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:22:38.022783') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 3, '2015-02-26 17:22:38.024907')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7e0848d3d259dac5af338f72f3d52012', '9902a1d22a141a826ae31b1c83cb928c', 3, '0.0.0.0', '2015-02-26 17:22:38.045356')  (14.3ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:38.070418')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 3, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:22:38.101081')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2015-02-26 17:22:38.122846', '2015-02-26 17:22:38.122846')  (20.9ms) COMMIT  (1.1ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66e7e3c2a9cd17819b80d3d0b03b9f5d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:38.158101') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:22:38.159987') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 4, '2015-02-26 17:22:38.161752')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '66e7e3c2a9cd17819b80d3d0b03b9f5d', '1f2487b5ab29a0f58587335258d7f8e0', 4, '0.0.0.0', '2015-02-26 17:22:38.180842')  (14.5ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:38.205724')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 4, '2015-02-26 17:22:38.233404', '2015-02-26 17:22:38.233404')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:22:38.258648' WHERE `dispatched_services`.`id` = 4  (14.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (2.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a56ca20aa451e1d51d475869548f78c8' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:22:38.327627') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:22:38.329808') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 5, '2015-02-26 17:22:38.331850')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a56ca20aa451e1d51d475869548f78c8', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 5, '0.0.0.0', '2015-02-26 17:22:38.352308')  (14.7ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:38.377634')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 5, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:22:38.404051')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2015-02-26 17:22:38.426235', '2015-02-26 17:22:38.426235')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b3890eb875fd83dacb94fc3552ee832' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:38.454251') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:22:38.495386') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:22:38.497639')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1b3890eb875fd83dacb94fc3552ee832', '1f2487b5ab29a0f58587335258d7f8e0', 6, '0.0.0.0', '2015-02-26 17:22:38.517946')  (14.0ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:38.542038')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 6, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:38.570012')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 6, '2015-02-26 17:22:38.594308', '2015-02-26 17:22:38.594308')  (14.6ms) COMMIT  (0.9ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:38 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62ee528330f16840ee6e6df457495ab5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:38.660099') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:22:38.662190') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:22:38.663895')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '62ee528330f16840ee6e6df457495ab5', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:22:38.684556')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 7, '2015-02-26 17:22:38.716507', '2015-02-26 17:22:38.716507')  (14.3ms) COMMIT  (0.9ms) BEGIN  (0.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:22:38.845222')  (17.8ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:22:38.877972' WHERE `dispatched_services`.`id` = 7  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (7.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (12.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.0ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (71.3ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (11.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 474ms (Views: 190.5ms | ActiveRecord: 70.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:22:39 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83b929e1e436cda43af05762e5ad293c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:22:39.123856') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2015-02-26 17:22:39.125951') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2015-02-26 17:22:39.127757') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 8, '2015-02-26 17:22:39.129561') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 8, '2015-02-26 17:22:39.131496')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '83b929e1e436cda43af05762e5ad293c', 'a03fb1fb17f24f5ea845bf6c4450490b', 8, '127.0.0.1', '2015-02-26 17:22:39.152077')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:22:39.178465', '2015-02-26 17:22:39.178465')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:22:39.231027')  (14.8ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (2.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:39.254610' WHERE `dispatched_services`.`id` = 8  (15.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.9ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 193ms (Views: 18.5ms | ActiveRecord: 72.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:22:39 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31d17a9431238dcff68b929d2e29a60d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:22:39.361026') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:22:39.363278') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 9, '2015-02-26 17:22:39.365408') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 9, '2015-02-26 17:22:39.367436') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 9, '2015-02-26 17:22:39.369405')  (18.3ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '31d17a9431238dcff68b929d2e29a60d', 'bc13b80c2923ce2cbe0c8347141587a7', 9, '127.0.0.1', '2015-02-26 17:22:39.393919')  (18.3ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:22:39.424577', '2015-02-26 17:22:39.424577')  (19.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:39.483249' WHERE `dispatched_services`.`id` = 9  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 212ms (Views: 15.8ms | ActiveRecord: 82.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0e8806d6b0f53f08e165a8390dce002f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:22:39.540557') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2015-02-26 17:22:39.543033') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2015-02-26 17:22:39.544919') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2015-02-26 17:22:39.546537')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0e8806d6b0f53f08e165a8390dce002f', '318e542032e1812e600e07efbdb1dfcc', 10, '0.0.0.0', '2015-02-26 17:22:39.566531')  (15.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 10, '2015-02-26 17:22:39.589768', '2015-02-26 17:22:39.589768')  (15.1ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=10" for 127.0.0.1 at 2015-02-26 12:22:39 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"10"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 [["request_id", 10]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (14.9ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 36ms (Views: 15.8ms | ActiveRecord: 12.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c700d476d466f48059a5457c19c3bf64' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:39.670329') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:22:39.672358') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2015-02-26 17:22:39.674155')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c700d476d466f48059a5457c19c3bf64', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2015-02-26 17:22:39.695004')  (17.3ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2015-02-26 17:22:39.762217', '2015-02-26 17:22:39.762217')  (17.9ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 11, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:39.818992')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 11, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:39.847349')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:39.872232' WHERE `dispatched_services`.`id` = 11  (15.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 [["id", 11]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (26.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 262ms (Views: 23.2ms | ActiveRecord: 73.8ms) Started GET "/borrow_direct/BorrowDirect/11?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:22:39 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:22:39.939448' WHERE `dispatched_services`.`id` = 11  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 11, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:39.958819')  (14.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Redirected to http://www.example.com/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 39.1ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:22:39.993869' WHERE `dispatched_services`.`id` = 11  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 15  (14.5ms) COMMIT Started GET "/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:22:40 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"11", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:22:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 [["request_id", 11]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.6ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 41ms (Views: 19.4ms | ActiveRecord: 11.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:22:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3de0f108c6618d4de2287a235800fce2' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:22:40.131317') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:22:40.133689') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 12, '2015-02-26 17:22:40.135834')  (23.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '3de0f108c6618d4de2287a235800fce2', '9902a1d22a141a826ae31b1c83cb928c', 12, '127.0.0.1', '2015-02-26 17:22:40.164818')  (15.0ms) COMMIT  (1.0ms) BEGIN  (1.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2015-02-26 17:22:40.193122', '2015-02-26 17:22:40.193122')  (14.5ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'  (1.1ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:40.248345')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 12, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:22:40.276479')  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:40.298988' WHERE `dispatched_services`.`id` = 12  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.5ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 224ms (Views: 18.0ms | ActiveRecord: 78.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee8da7a369a832c7d196beeb2bff44ec' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:40.364388') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:22:40.366478') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2015-02-26 17:22:40.368332')  (16.3ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ee8da7a369a832c7d196beeb2bff44ec', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2015-02-26 17:22:40.390338')  (39.9ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2015-02-26 17:22:40.443187', '2015-02-26 17:22:40.443187')  (14.7ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (1.4ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:40.538701')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 13, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:40.567222')  (18.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:40.596626' WHERE `dispatched_services`.`id` = 13  (14.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.7ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 [["id", 13]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.1ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 289ms (Views: 20.0ms | ActiveRecord: 94.8ms) Started GET "/borrow_direct/BorrowDirect/13?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:22:40 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"13"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:22:40.658587' WHERE `dispatched_services`.`id` = 13  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 13, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:40.677728')  (14.8ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Redirected to http://www.example.com/resolve?umlaut.request_id=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 38.8ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:40.710318' WHERE `dispatched_services`.`id` = 13  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 20  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:22:40 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"13", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:22:40-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 [["request_id", 13]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 [["id", 13]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 37ms (Views: 15.8ms | ActiveRecord: 11.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39c2dcac63ee7cfcbc6d092c34938f32' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:40.798395') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:22:40.800406') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:22:40.802438')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '39c2dcac63ee7cfcbc6d092c34938f32', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2015-02-26 17:22:40.822787')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2015-02-26 17:22:40.889260', '2015-02-26 17:22:40.889260')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:40.943698')  (17.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 14, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:40.975351')  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:40.999816' WHERE `dispatched_services`.`id` = 14  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 [["id", 14]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 257ms (Views: 20.0ms | ActiveRecord: 66.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:22:41 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c644750ffd4bf27ae98ff9c11be91900' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:22:41.067247') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:22:41.069336') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2015-02-26 17:22:41.071270')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c644750ffd4bf27ae98ff9c11be91900', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2015-02-26 17:22:41.091594')  (15.5ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2015-02-26 17:22:41.119526', '2015-02-26 17:22:41.119526')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:22:41.172443')  (14.3ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 15, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:22:41.237283')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:22:41.262302' WHERE `dispatched_services`.`id` = 15  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 [["id", 15]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 251ms (Views: 19.8ms | ActiveRecord: 67.4ms) Started GET "/borrow_direct/BorrowDirect/15" for 127.0.0.1 at 2015-02-26 12:22:41 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 15, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:41.321255')  (22.0ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Redirected to http://www.example.com/resolve?umlaut.request_id=15&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 36ms (ActiveRecord: 27.6ms) Started GET "/resolve?umlaut.request_id=15&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:22:41 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"15", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:22:41-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 [["request_id", 15]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 [["id", 15]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 [["id", 15]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 39ms (Views: 19.2ms | ActiveRecord: 11.0ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '51bdd5259e662bf4647047b5abfc8782' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:22:41.406455') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:22:41.408628') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 16, '2015-02-26 17:22:41.410519') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 16, '2015-02-26 17:22:41.412391')  (16.7ms) COMMIT  (0.8ms) BEGIN SQL (2.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '51bdd5259e662bf4647047b5abfc8782', '62590701c6f35b45309577ef8c8c22b4', 16, '0.0.0.0', '2015-02-26 17:22:41.434440')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:22:41.458028')  (14.1ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '845a9e525d8715ecdac1c6b2fc89d712' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:22:41.493544') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 17, '2015-02-26 17:22:41.495800') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 17, '2015-02-26 17:22:41.497651') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 17, '2015-02-26 17:22:41.499298') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 17, '2015-02-26 17:22:41.501106') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 17, '2015-02-26 17:22:41.502825') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 17, '2015-02-26 17:22:41.504688')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '845a9e525d8715ecdac1c6b2fc89d712', 'd95884a882a64501650fb8f9deae5104', 17, 'info:sid/google', '0.0.0.0', '2015-02-26 17:22:41.563050')  (14.2ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:22:41.588110')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2015-02-26 17:22:41.609936', '2015-02-26 17:22:41.609936')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c5908b30c2b4585b449447dd55bc9ca' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:22:41.645385') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:22:41.647453') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 18, '2015-02-26 17:22:41.649367') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 18, '2015-02-26 17:22:41.651249') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 18, '2015-02-26 17:22:41.653056') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 18, '2015-02-26 17:22:41.654807') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 18, '2015-02-26 17:22:41.656437') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 18, '2015-02-26 17:22:41.658299') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 18, '2015-02-26 17:22:41.660219') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 18, '2015-02-26 17:22:41.662011') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 18, '2015-02-26 17:22:41.663646')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7c5908b30c2b4585b449447dd55bc9ca', '06d451b80bf9fe3ce6849a48c98522d7', 18, 'info:sid/google', '0.0.0.0', '2015-02-26 17:22:41.684156')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:22:41.706200', '2015-02-26 17:22:41.706200')  (18.7ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 ServiceResponse Exists (1.2ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 18 LIMIT 1 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c5832e80126b1598fc5f99caee3284e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:22:41.748593') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:22:41.750646') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2015-02-26 17:22:41.752463') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2015-02-26 17:22:41.754341')  (16.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4c5832e80126b1598fc5f99caee3284e', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2015-02-26 17:22:41.775554')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 19, 'test_holding', 'holding', '2015-02-26 17:22:41.797475')  (19.3ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:22:41.830050')  (18.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2015-02-26 17:22:41.855698', '2015-02-26 17:22:41.855698')  (15.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62f1d208cfd533fea1ec3e37bdeb9fae' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:22:41.885174') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:22:41.887168') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2015-02-26 17:22:41.888931') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2015-02-26 17:22:41.890834')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '62f1d208cfd533fea1ec3e37bdeb9fae', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2015-02-26 17:22:41.911419')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 20, 'test_holding', 'holding', '2015-02-26 17:22:41.932803')  (14.7ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2015-02-26 17:22:41.960660', '2015-02-26 17:22:41.960660')  (14.8ms) COMMIT  (1.0ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80d822701194d08e0b7e49be0887f297' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:22:41.990644') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:22:41.993028') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2015-02-26 17:22:41.995177') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2015-02-26 17:22:41.997228')  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '80d822701194d08e0b7e49be0887f297', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2015-02-26 17:22:42.018071')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 21, 'test_holding', 'holding', '2015-02-26 17:22:42.040024')  (14.7ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:22:42.068950')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2015-02-26 17:22:42.091008', '2015-02-26 17:22:42.091008')  (15.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.8ms) ROLLBACK  (0.8ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.8ms) ROLLBACK ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 47ms (Views: 46.2ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.4ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '525f876e8fcfe19c6da6c83b865c6af1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:42.181338') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:22:42.183303') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:22:42.185390')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '525f876e8fcfe19c6da6c83b865c6af1', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:22:42.208817')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 22  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 22\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:42.235230')  (14.1ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://test.host/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.4ms) Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '02c63bea22313c616192a04a88d6fccd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:42.265064') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:22:42.267167') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-02-26 17:22:42.269034')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '02c63bea22313c616192a04a88d6fccd', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-02-26 17:22:42.288364')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:42.309617')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 34  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 34\n', 23, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:42.335243')  (14.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) Redirected to http://test.host/resolve?umlaut.request_id=23&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.3ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60b174d39947bdaac5cbee96fe638d99' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:42.365860') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:22:42.367910') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-02-26 17:22:42.369785')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '60b174d39947bdaac5cbee96fe638d99', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-02-26 17:22:42.390212')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 24, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:42.412318')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2015-02-26 17:22:42.439240', '2015-02-26 17:22:42.439240')  (14.9ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:42.461194')  (14.7ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Redirected to http://test.host/resolve?umlaut.request_id=24&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 57ms (ActiveRecord: 41.4ms) DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (6.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:22:42.504583' WHERE `dispatched_services`.`id` = 21  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (14.0ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '381b6bef6ae6e1a5dc400daa8b68bb17' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:42.550783') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:22:42.552751') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2015-02-26 17:22:42.554512')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '381b6bef6ae6e1a5dc400daa8b68bb17', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2015-02-26 17:22:42.574645')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 25, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:42.596480')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2015-02-26 17:22:42.623513', '2015-02-26 17:22:42.623513')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 25, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:42.645253')  (17.3ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) Redirected to http://example.org Completed 302 Found in 55ms (ActiveRecord: 44.2ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aaca87df3dd34619167d946fa3ca6a57' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:42.682360') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:22:42.684495') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2015-02-26 17:22:42.686388')  (19.6ms) COMMIT  (12.2ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'aaca87df3dd34619167d946fa3ca6a57', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2015-02-26 17:22:42.722604')  (22.4ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 26, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:42.751921')  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 26, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:42.778274')  (14.7ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 26ms (ActiveRecord: 19.3ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (5.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd19a0b97153c18fa36ae502e3424a1a0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:42.808476') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:22:42.810498') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2015-02-26 17:22:42.812433')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd19a0b97153c18fa36ae502e3424a1a0', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2015-02-26 17:22:42.831865')  (17.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 27, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:22:42.898569')  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2015-02-26 17:22:42.926054', '2015-02-26 17:22:42.926054')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 27, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:42.947406')  (14.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 55ms (Views: 3.3ms | ActiveRecord: 40.3ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f62f3a0d75fc9438cad48753a413892b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (5.6ms) BEGIN  (3.6ms) BEGIN SQL (9.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:22:42.988892') SQL (1.7ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:22:42.991032' WHERE `dispatched_services`.`id` = 23 SQL (3.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:22:42.999309') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2015-02-26 17:22:43.003696')  (15.1ms) COMMIT  (0.7ms) BEGIN  (16.6ms) COMMIT SQL (2.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 43  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f62f3a0d75fc9438cad48753a413892b', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2015-02-26 17:22:43.025620')  (14.6ms) COMMIT  (14.4ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 28, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:22:43.051585')  (14.2ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Redirected to http://test.host/resolve?umlaut.request_id=28&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A22%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 21.1ms) ActiveRecord::SchemaMigration Load (2.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (123.5ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.9ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (38.8ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (81.5ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (69.8ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (96.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (35.7ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (73.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (36.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (70.5ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.8ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (78.4ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (68.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.5ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (78.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (82.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (79.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (85.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (77.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (78.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (36.5ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (78.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (71.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (75.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.5ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (74.4ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (73.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (34.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (83.8ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (92.5ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.4ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (105.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (43.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (98.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.4ms) SELECT version FROM `schema_migrations`  (14.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:24:27 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85fe803f1fb93f2825bbd54713aaece2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:24:27.913032') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:24:27.915753') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:24:27.918177')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '85fe803f1fb93f2825bbd54713aaece2', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:24:27.958870')  (14.1ms) COMMIT  (0.8ms) BEGIN  (1.3ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:24:28.040792', '2015-02-26 17:24:28.040792')  (16.5ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:24:28.195945')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:24:28.227162' WHERE `dispatched_services`.`id` = 1  (15.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (36.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (97.3ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.9ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 668ms (Views: 143.0ms | ActiveRecord: 96.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:24:28 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'afca1a5fd4114368702ef9d10c18bfe3' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:24:28.465109') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:24:28.467155') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:24:28.468994') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:24:28.470704') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:24:28.472776')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'afca1a5fd4114368702ef9d10c18bfe3', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:24:28.493838')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:24:28.520352', '2015-02-26 17:24:28.520352')  (15.4ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:24:28.576625')  (14.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:24:28.598386' WHERE `dispatched_services`.`id` = 2  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.1ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (22.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 213ms (Views: 22.1ms | ActiveRecord: 87.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:24:28 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca2d68b125d5a36b047c5d2355991241' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:24:28.685065') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:24:28.687107') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:24:28.689103') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:24:28.691050') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:24:28.692949')  (18.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ca2d68b125d5a36b047c5d2355991241', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:24:28.716993')  (14.8ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:24:28.744880', '2015-02-26 17:24:28.744880')  (20.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:24:28.804635' WHERE `dispatched_services`.`id` = 3  (20.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 181ms (Views: 16.4ms | ActiveRecord: 80.1ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0b6a6234f02f004ca555822c761b0c97' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:24:28.905160') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:24:28.907418') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:24:28.909411') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:24:28.911209')  (24.0ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0b6a6234f02f004ca555822c761b0c97', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:24:28.940620')  (16.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:24:28.964208', '2015-02-26 17:24:28.964208')  (20.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:24:28 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 37ms (Views: 16.0ms | ActiveRecord: 12.7ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:24:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b4011f2252f2021360d38a90ad39d3a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:24:29.050968') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:24:29.053189') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:24:29.055214')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '3b4011f2252f2021360d38a90ad39d3a', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:24:29.075883')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:24:29.102482', '2015-02-26 17:24:29.102482')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:24:29.155614')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:24:29.184672')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:24:29.209440' WHERE `dispatched_services`.`id` = 5  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (42.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (44.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (45.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (64.4ms) Permalink Load (2.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 256ms (Views: 62.2ms | ActiveRecord: 67.5ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:24:29 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:24:29.313771' WHERE `dispatched_services`.`id` = 5  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:24:29.337997')  (14.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A24%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 43.3ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:24:29.372834' WHERE `dispatched_services`.`id` = 5  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A24%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:24:29 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:24:29-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (17.9ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 40ms (Views: 18.7ms | ActiveRecord: 11.2ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:24:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '441189e0cc8cdd1632c62c0bb6b25388' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:24:29.470757') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:24:29.473183') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:24:29.475195')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '441189e0cc8cdd1632c62c0bb6b25388', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:24:29.495931')  (14.2ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:24:29.522902', '2015-02-26 17:24:29.522902')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:24:29.611564')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:24:29.638990')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:24:29.661234' WHERE `dispatched_services`.`id` = 6  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.4ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 248ms (Views: 18.8ms | ActiveRecord: 67.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:24:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc49e8e4c54199e30eee5521f097f7da' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:24:29.726184') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:24:29.728428') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:24:29.730421')  (20.1ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'bc49e8e4c54199e30eee5521f097f7da', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:24:29.756618')  (15.6ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:24:29.784787', '2015-02-26 17:24:29.784787')  (14.8ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:24:29.839559')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:24:29.869504')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:24:29.894356' WHERE `dispatched_services`.`id` = 7  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.7ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 223ms (Views: 20.3ms | ActiveRecord: 74.2ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:24:29 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:24:29.992671' WHERE `dispatched_services`.`id` = 7  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:24:30.012464')  (31.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A24%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 74ms (ActiveRecord: 55.6ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:24:30.061576' WHERE `dispatched_services`.`id` = 7  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (20.8ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A24%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:24:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:24:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.8ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 38ms (Views: 17.1ms | ActiveRecord: 11.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:24:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ad0954b0f7974e585613cb4ae4c0ea63' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:24:30.158353') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:24:30.160504') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:24:30.162460')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ad0954b0f7974e585613cb4ae4c0ea63', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:24:30.183290')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:24:30.210152', '2015-02-26 17:24:30.210152')  (16.7ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:24:30.265834')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:24:30.294062')  (14.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:24:30.318596' WHERE `dispatched_services`.`id` = 8  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (27.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 260ms (Views: 21.5ms | ActiveRecord: 73.4ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:24:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ce3ebba4bc9bf1714c630f2552c52b4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:24:30.429974') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:24:30.432174') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:24:30.434083')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7ce3ebba4bc9bf1714c630f2552c52b4', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:24:30.454355')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:24:30.481475', '2015-02-26 17:24:30.481475')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:24:30.534614')  (15.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:24:30.564328')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:24:30.589489' WHERE `dispatched_services`.`id` = 9  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 214ms (Views: 20.0ms | ActiveRecord: 65.2ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:24:30 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:24:30.648296')  (14.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A24%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 66ms (ActiveRecord: 20.4ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A24%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:24:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:24:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.4ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 19.3ms | ActiveRecord: 10.4ms) ActiveRecord::SchemaMigration Load (2.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (93.0ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.7ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (48.4ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (83.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (72.4ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (76.0ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.2ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (75.1ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.0ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (73.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.2ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (87.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (70.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (35.0ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (78.9ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (86.7ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (74.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (80.8ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (75.4ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (79.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (35.2ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (103.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (74.2ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (76.2ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (35.1ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (90.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (82.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (33.6ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (77.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (68.9ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (77.9ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (33.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (87.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.1ms) SELECT version FROM `schema_migrations`  (14.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:26:08 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4642cc6795b4a5c1682628d7812dda9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:26:08.343136') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:26:08.345855') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:26:08.347881')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd4642cc6795b4a5c1682628d7812dda9', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:26:08.381279')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:26:08.461674', '2015-02-26 17:26:08.461674')  (15.6ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:26:08.617948')  (14.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:26:08.648830' WHERE `dispatched_services`.`id` = 1  (14.9ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (38.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (2.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (96.9ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 661ms (Views: 140.3ms | ActiveRecord: 96.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:26:08 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e8f28cf16c5f9f8b9e28eb96f397907' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:26:08.883952') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:26:08.886065') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:26:08.888074') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:26:08.889874') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:26:08.891603')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '4e8f28cf16c5f9f8b9e28eb96f397907', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:26:08.911987')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:26:08.938858', '2015-02-26 17:26:08.938858')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:26:08.993768')  (14.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:09.017118' WHERE `dispatched_services`.`id` = 2  (14.5ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.0ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 193ms (Views: 18.1ms | ActiveRecord: 72.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:26:09 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f1813e59d7f95c4da4fa875bf157395' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:26:09.084806') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:26:09.087237') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:26:09.089353') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:26:09.090954') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:26:09.092953')  (15.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1f1813e59d7f95c4da4fa875bf157395', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:26:09.114066')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:26:09.140042', '2015-02-26 17:26:09.140042')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:09.192905' WHERE `dispatched_services`.`id` = 3  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 167ms (Views: 19.9ms | ActiveRecord: 69.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76b9d056d3e4afc00eb2314c09cad3fc' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:26:09.293822') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:26:09.295982') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:26:09.297779') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:26:09.299455')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '76b9d056d3e4afc00eb2314c09cad3fc', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:26:09.319750')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:26:09.342194', '2015-02-26 17:26:09.342194')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:26:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (17.3ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 37ms (Views: 17.9ms | ActiveRecord: 12.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:26:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ff60de5f6b96b997f18e61ee7df7cac' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:26:09.425779') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:26:09.427763') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:26:09.429652')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '9ff60de5f6b96b997f18e61ee7df7cac', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:26:09.449954')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:26:09.477685', '2015-02-26 17:26:09.477685')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:26:09.531323')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:26:09.561833')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:09.587258' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (38.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (37.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (42.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (11.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (12.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (69.9ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 265ms (Views: 27.7ms | ActiveRecord: 106.1ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:26:09 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:26:09.697913' WHERE `dispatched_services`.`id` = 5  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:26:09.717760')  (14.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A26%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 37.7ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.7ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:26:09.752818' WHERE `dispatched_services`.`id` = 5  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A26%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:26:09 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:26:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 42ms (Views: 20.9ms | ActiveRecord: 10.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:26:09 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4945cb45fc1193a396789ee83fc0b348' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:26:09.853747') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:26:09.855799') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:26:09.857710')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '4945cb45fc1193a396789ee83fc0b348', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:26:09.878174')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:26:09.946323', '2015-02-26 17:26:09.946323')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:26:10.000693')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:26:10.027955')  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:10.049652' WHERE `dispatched_services`.`id` = 6  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.8ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 251ms (Views: 18.8ms | ActiveRecord: 65.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:26:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f50da1b27c46424091c4e28c23bc33f7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:26:10.113893') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:26:10.116639') SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:26:10.118661')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f50da1b27c46424091c4e28c23bc33f7', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:26:10.139687')  (15.0ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:26:10.167844', '2015-02-26 17:26:10.167844')  (15.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:26:10.222329')  (18.6ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:26:10.255832')  (22.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:10.288926' WHERE `dispatched_services`.`id` = 7  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.7ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 269ms (Views: 20.1ms | ActiveRecord: 70.8ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:26:10 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:26:10.389206' WHERE `dispatched_services`.`id` = 7  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:26:10.408809')  (20.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A26%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 57ms (ActiveRecord: 44.5ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:10.447463' WHERE `dispatched_services`.`id` = 7  (17.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (34.5ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A26%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:26:10 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:26:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.9ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 39ms (Views: 16.2ms | ActiveRecord: 13.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:26:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfa68c5bd2760d01b6545ce418e59854' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:26:10.562671') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:26:10.565117') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:26:10.567195')  (17.1ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'dfa68c5bd2760d01b6545ce418e59854', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:26:10.590288')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:26:10.618348', '2015-02-26 17:26:10.618348')  (16.5ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (1.1ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:26:10.677263')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:26:10.705888')  (19.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:10.736661' WHERE `dispatched_services`.`id` = 8  (24.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (40.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (42.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (43.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (62.5ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 282ms (Views: 59.1ms | ActiveRecord: 74.3ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:26:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8eefb9e49195492420737779297571d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:26:10.855075') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:26:10.857230') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:26:10.859274')  (21.0ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f8eefb9e49195492420737779297571d', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:26:10.886237')  (19.4ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:26:10.918325', '2015-02-26 17:26:10.918325')  (14.9ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:26:10.971360')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:26:11.000271')  (16.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:11.027239' WHERE `dispatched_services`.`id` = 9  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 229ms (Views: 19.4ms | ActiveRecord: 80.2ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:26:11 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:26:11.123909')  (14.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A26%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.3ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A26%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:26:11 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:26:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.8ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (1.1ms) COMMIT Completed 200 OK in 42ms (Views: 19.7ms | ActiveRecord: 12.2ms) ActiveRecord::SchemaMigration Load (2.6ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (129.7ms) DROP DATABASE IF EXISTS `umlaut3_test`  (6.4ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (38.6ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (108.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (68.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (76.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.3ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (75.6ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (37.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (75.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (40.4ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (93.0ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (382.1ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (43.8ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (88.6ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (94.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (98.0ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (83.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (85.7ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (463.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (36.5ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (108.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (82.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (73.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.8ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (73.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (82.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (34.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (78.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (67.9ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.2ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (88.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (44.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (116.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.1ms) SELECT version FROM `schema_migrations`  (15.0ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:26:33 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba125cac37ea9387787048b34e1739d7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:26:33.281235') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:26:33.283873') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:26:33.285866')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ba125cac37ea9387787048b34e1739d7', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:26:33.321217')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:26:33.401320', '2015-02-26 17:26:33.401320')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:26:33.554122')  (13.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:26:33.584820' WHERE `dispatched_services`.`id` = 1  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (39.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (98.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 663ms (Views: 143.5ms | ActiveRecord: 90.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:26:33 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e91b3a5c0c9fde86e3ff882025e99cad' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:26:33.820947') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:26:33.823137') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:26:33.824989') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:26:33.826772') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:26:33.828586')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e91b3a5c0c9fde86e3ff882025e99cad', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:26:33.850186')  (14.2ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:26:33.877308', '2015-02-26 17:26:33.877308')  (17.1ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:26:33.935823')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:33.958406' WHERE `dispatched_services`.`id` = 2  (15.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.4ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 200ms (Views: 20.5ms | ActiveRecord: 74.1ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:26:34 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1632e334faf106716c30c9be3bbefd17' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:26:34.029163') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:26:34.030948') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:26:34.032956') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:26:34.034820') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:26:34.036606')  (23.2ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1632e334faf106716c30c9be3bbefd17', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:26:34.065637')  (18.3ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:26:34.096261', '2015-02-26 17:26:34.096261')  (15.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:34.153703' WHERE `dispatched_services`.`id` = 3  (14.1ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.0ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (1.1ms) COMMIT Completed 200 OK in 179ms (Views: 16.1ms | ActiveRecord: 83.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '78ebf0de39487b51bd14a1241c30cc3c' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:26:34.248983') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:26:34.251038') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:26:34.252930') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:26:34.254726')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '78ebf0de39487b51bd14a1241c30cc3c', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:26:34.274370')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:26:34.296173', '2015-02-26 17:26:34.296173')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:26:34 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 37ms (Views: 16.6ms | ActiveRecord: 12.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:26:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77343abacefadcdf364d0e7b55f2f15d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:26:34.377226') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:26:34.379252') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:26:34.381032')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '77343abacefadcdf364d0e7b55f2f15d', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:26:34.402244')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:26:34.429188', '2015-02-26 17:26:34.429188')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:26:34.482327')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:26:34.511351')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:34.536361' WHERE `dispatched_services`.`id` = 5  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (38.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (64.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 256ms (Views: 61.4ms | ActiveRecord: 66.6ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:26:34 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:26:34.640289' WHERE `dispatched_services`.`id` = 5  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:26:34.660267')  (14.8ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A26%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 39.0ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:26:34.695147' WHERE `dispatched_services`.`id` = 5  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.4ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A26%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:26:34 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:26:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (17.9ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 18.5ms | ActiveRecord: 11.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:26:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3be74efb53796590e162bad4374963b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:26:34.793605') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:26:34.795811') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:26:34.797685')  (18.7ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd3be74efb53796590e162bad4374963b', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:26:34.822103')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:26:34.848772', '2015-02-26 17:26:34.848772')  (18.2ms) COMMIT  (0.8ms) BEGIN  (1.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:26:34.948519')  (23.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:26:34.984195')  (29.7ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:26:35.021681' WHERE `dispatched_services`.`id` = 6  (15.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.9ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 283ms (Views: 18.3ms | ActiveRecord: 75.6ms) ActiveRecord::SchemaMigration Load (2.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (90.2ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.7ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (38.7ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (90.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (95.9ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (74.0ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.0ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (79.3ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.7ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (72.6ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.1ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (81.9ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (68.2ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (33.9ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (78.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (79.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (71.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (81.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (115.7ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (82.4ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (34.1ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (76.9ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (77.5ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (86.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (90.7ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (131.7ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (71.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (36.7ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (83.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (68.1ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (33.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (78.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (35.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (87.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (14.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:18 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1fadbeee0fdbc63ef0158ecb44fc9d0e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:18.940907') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:27:18.943435') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:27:18.945556')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1fadbeee0fdbc63ef0158ecb44fc9d0e', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:27:18.982160')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:27:19.064046', '2015-02-26 17:27:19.064046')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:27:19.219525')  (14.4ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:27:19.251346' WHERE `dispatched_services`.`id` = 1  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (40.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (99.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 671ms (Views: 146.7ms | ActiveRecord: 87.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:27:19 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a77ddf0f54f80f2d554e3af9d5e3b5d5' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:27:19.492477') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:27:19.494629') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:27:19.496556') SQL (1.4ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:27:19.498231') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:27:19.500498')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a77ddf0f54f80f2d554e3af9d5e3b5d5', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:27:19.521173')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:27:19.547902', '2015-02-26 17:27:19.547902')  (13.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:27:19.599994')  (14.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:19.621895' WHERE `dispatched_services`.`id` = 2  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.7ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 188ms (Views: 19.3ms | ActiveRecord: 68.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:27:19 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53397ea2897d985e616b47c0b6c63b45' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:27:19.688355') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:27:19.690518') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:27:19.692457') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:27:19.694192') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:27:19.695891')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '53397ea2897d985e616b47c0b6c63b45', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:27:19.716948')  (14.2ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:27:19.744591', '2015-02-26 17:27:19.744591')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:19.795527' WHERE `dispatched_services`.`id` = 3  (14.0ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.7ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 202ms (Views: 19.2ms | ActiveRecord: 66.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26cc91e4fbbb22b28bb7f6bb7310ed6d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:27:19.893464') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:27:19.895631') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:27:19.897538') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:27:19.899288')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '26cc91e4fbbb22b28bb7f6bb7310ed6d', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:27:19.919441')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:27:19.941146', '2015-02-26 17:27:19.941146')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:27:19 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 37ms (Views: 16.7ms | ActiveRecord: 12.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9c39699b1e7602dc38afc5cde01b68c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:20.023423') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:27:20.025321') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:27:20.027175')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c9c39699b1e7602dc38afc5cde01b68c', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:27:20.047443')  (15.0ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:27:20.075266', '2015-02-26 17:27:20.075266')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:20.129522')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:27:20.159189')  (14.5ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:20.184598' WHERE `dispatched_services`.`id` = 5  (19.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (39.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (39.9ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (11.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (12.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (70.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 270ms (Views: 25.2ms | ActiveRecord: 109.2ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:27:20 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:27:20.299614' WHERE `dispatched_services`.`id` = 5  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:27:20.319483')  (14.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A20-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 56ms (ActiveRecord: 37.7ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:27:20.354199' WHERE `dispatched_services`.`id` = 5  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.7ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A20-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:27:20 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:27:20-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 42ms (Views: 21.2ms | ActiveRecord: 10.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:27:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1362efe39dd1edc212920129fa9ed33d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:27:20.454642') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:27:20.456857') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:27:20.458742')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1362efe39dd1edc212920129fa9ed33d', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:27:20.479426')  (15.7ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:27:20.546710', '2015-02-26 17:27:20.546710')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (2.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (1.3ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:20.601850')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:27:20.629374')  (14.1ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:20.651326' WHERE `dispatched_services`.`id` = 6  (14.3ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 251ms (Views: 18.2ms | ActiveRecord: 67.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e942ec936331118d06635a91628b136a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:20.715525') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:27:20.717786') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:27:20.719777')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e942ec936331118d06635a91628b136a', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:27:20.741015')  (14.7ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:27:20.768609', '2015-02-26 17:27:20.768609')  (14.9ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:20.822392')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:27:20.851718')  (14.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:20.877670' WHERE `dispatched_services`.`id` = 7  (14.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.4ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 258ms (Views: 20.5ms | ActiveRecord: 68.4ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:27:20 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:27:20.979762' WHERE `dispatched_services`.`id` = 7  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:27:20.999953')  (14.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 38.4ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:21.033253' WHERE `dispatched_services`.`id` = 7  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (13.9ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:27:21 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:27:21-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.9ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.4ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 40ms (Views: 16.3ms | ActiveRecord: 12.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0447c4f44c0c08336f0ff8869c9d3b40' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:21.126483') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:27:21.128808') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:27:21.130598')  (29.2ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '0447c4f44c0c08336f0ff8869c9d3b40', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:27:21.166042')  (15.7ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:27:21.195113', '2015-02-26 17:27:21.195113')  (15.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:21.255825')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:27:21.288226')  (14.6ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:21.313525' WHERE `dispatched_services`.`id` = 8  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (42.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (44.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (44.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (64.0ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 286ms (Views: 60.2ms | ActiveRecord: 87.6ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54184e8e7ff92244c312417d488171f9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:21.423248') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:27:21.425390') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:27:21.427283')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '54184e8e7ff92244c312417d488171f9', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:27:21.448124')  (19.0ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:27:21.480526', '2015-02-26 17:27:21.480526')  (15.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (24.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:21.545403')  (18.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:27:21.578906')  (36.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:21.626392' WHERE `dispatched_services`.`id` = 9  (16.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (1.0ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 264ms (Views: 20.4ms | ActiveRecord: 74.9ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:27:21 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:27:21.727832')  (15.5ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 20.9ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:27:21 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:27:21-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.1ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 42ms (Views: 20.3ms | ActiveRecord: 10.9ms) ActiveRecord::SchemaMigration Load (2.6ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (86.1ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.8ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (48.9ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (95.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (69.0ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (90.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.2ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (74.2ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (67.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.2ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (88.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (67.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.2ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (81.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (96.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (80.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (73.8ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (87.6ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (72.4ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (34.7ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (97.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (78.5ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (74.1ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.9ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (104.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (79.4ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (44.9ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (82.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (78.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (33.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (89.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (34.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (86.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (14.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:55 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a609eacd648af2f4e5c57f6b5e1a321e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:56.191757') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:27:56.194440') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:27:56.196625')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a609eacd648af2f4e5c57f6b5e1a321e', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:27:56.231924')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:27:56.312571', '2015-02-26 17:27:56.312571')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:27:56.465050')  (17.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:27:56.499560' WHERE `dispatched_services`.`id` = 1  (15.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (40.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (98.4ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 664ms (Views: 144.5ms | ActiveRecord: 87.7ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:27:56 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db5f123f4e86472b16ab79ea1ddfdfcf' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:27:56.738726') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:27:56.741098') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:27:56.742976') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:27:56.744654') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:27:56.746373')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'db5f123f4e86472b16ab79ea1ddfdfcf', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:27:56.767487')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:27:56.794294', '2015-02-26 17:27:56.794294')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:27:56.847627')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:56.869479' WHERE `dispatched_services`.`id` = 2  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.5ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 193ms (Views: 21.9ms | ActiveRecord: 70.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:27:56 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '266359a23461b57b3311fea00dd96f5b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:27:56.939318') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:27:56.941582') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:27:56.943589') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:27:56.945400') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:27:56.947163')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '266359a23461b57b3311fea00dd96f5b', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:27:56.967369')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:27:56.995315', '2015-02-26 17:27:56.995315')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:57.048314' WHERE `dispatched_services`.`id` = 3  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 164ms (Views: 17.3ms | ActiveRecord: 68.5ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6f908bcfde757387388ee259c1c7019' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:27:57.144777') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:27:57.146998') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:27:57.148828') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:27:57.150611')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c6f908bcfde757387388ee259c1c7019', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:27:57.170606')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:27:57.192641', '2015-02-26 17:27:57.192641')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:27:57 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.4ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 37ms (Views: 16.3ms | ActiveRecord: 12.8ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:57 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a89054dc800fac78be246504833d4771' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:57.274489') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:27:57.276553') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:27:57.278592')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a89054dc800fac78be246504833d4771', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:27:57.298910')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:27:57.325663', '2015-02-26 17:27:57.325663')  (15.0ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (2.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:57.379399')  (16.3ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:27:57.412121')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:57.436841' WHERE `dispatched_services`.`id` = 5  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (36.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (37.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (11.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (12.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (68.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 264ms (Views: 61.6ms | ActiveRecord: 71.9ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:27:57 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:27:57.545322' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:27:57.564573')  (14.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 37.4ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:27:57.598390' WHERE `dispatched_services`.`id` = 5  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:27:57 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:27:57-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.7ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 19.4ms | ActiveRecord: 11.4ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:27:57 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26186c407bb3cab64bd098e3ad19950b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:27:57.696948') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:27:57.698955') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:27:57.700860')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '26186c407bb3cab64bd098e3ad19950b', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:27:57.721011')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:27:57.748265', '2015-02-26 17:27:57.748265')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (36.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:57.837286')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:27:57.864814')  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:57.886152' WHERE `dispatched_services`.`id` = 6  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 243ms (Views: 18.5ms | ActiveRecord: 65.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:57 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f4f7905a68b5f3be1531220235b5d361' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:57.948785') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:27:57.950862') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:27:57.952774')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f4f7905a68b5f3be1531220235b5d361', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:27:57.972777')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:27:57.999745', '2015-02-26 17:27:57.999745')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:58.052158')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:27:58.081421')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:58.105787' WHERE `dispatched_services`.`id` = 7  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.1ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 215ms (Views: 20.4ms | ActiveRecord: 67.1ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:27:58 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:27:58.208210' WHERE `dispatched_services`.`id` = 7  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:27:58.227618')  (14.5ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 38.6ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:58.260702' WHERE `dispatched_services`.`id` = 7  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (19.1ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:27:58 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:27:58-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.4ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 37ms (Views: 15.9ms | ActiveRecord: 11.3ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:58 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d5efcebf1b9a0860b50678f5751b3b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:58.353239') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:27:58.355529') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:27:58.357469')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '2d5efcebf1b9a0860b50678f5751b3b3', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:27:58.377650')  (18.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:27:58.408601', '2015-02-26 17:27:58.408601')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:58.462539')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:27:58.491023')  (14.5ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:58.515811' WHERE `dispatched_services`.`id` = 8  (15.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (61.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 258ms (Views: 58.1ms | ActiveRecord: 71.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:27:58 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '498c8e1705bcccc86da5ffcab010b51e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:27:58.622217') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:27:58.624486') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:27:58.626522')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '498c8e1705bcccc86da5ffcab010b51e', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:27:58.646688')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:27:58.673521', '2015-02-26 17:27:58.673521')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:27:58.725869')  (15.5ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:27:58.755393')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:27:58.779697' WHERE `dispatched_services`.`id` = 9  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.1ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 214ms (Views: 20.0ms | ActiveRecord: 66.4ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:27:58 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:27:58.875708')  (14.7ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 20.7ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A27%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:27:58 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:27:58-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.8ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 41ms (Views: 20.6ms | ActiveRecord: 11.4ms) ActiveRecord::SchemaMigration Load (2.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (84.4ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.7ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (38.6ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (77.1ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (68.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (73.6ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.3ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (73.2ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (80.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (36.6ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (84.5ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (76.9ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (45.3ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (96.4ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (88.9ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (83.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (76.7ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (82.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (77.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (36.4ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (70.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (83.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (86.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (36.9ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (83.4ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (78.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (37.1ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (84.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (77.5ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (81.4ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (36.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (81.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (14.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- ActiveRecord::SchemaMigration Load (2.5ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (83.8ms) DROP DATABASE IF EXISTS `umlaut3_test`  (6.8ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (46.1ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (107.2ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (95.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (74.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (44.6ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (80.3ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (50.1ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (74.0ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (36.1ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (86.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (69.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (35.6ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (78.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (78.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (89.0ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (89.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (72.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (87.3ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (48.2ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (80.3ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (72.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (73.6ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (41.4ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (78.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (79.8ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (40.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (76.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (74.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (35.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (81.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (37.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (97.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.1ms) SELECT version FROM `schema_migrations`  (14.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:28:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'deb265abc21daeb32ea0c85f85cf021e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:28:35.152277') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:28:35.155117') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:28:35.157082')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'deb265abc21daeb32ea0c85f85cf021e', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:28:35.192686')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:28:35.274359', '2015-02-26 17:28:35.274359')  (15.0ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:28:35.427554')  (15.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:28:35.459806' WHERE `dispatched_services`.`id` = 1  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (37.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (97.9ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 666ms (Views: 144.7ms | ActiveRecord: 89.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:28:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4548105f731aad1981f9e332bb24d4aa' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:28:35.698151') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:28:35.700241') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:28:35.702065') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:28:35.703842') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:28:35.705592')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '4548105f731aad1981f9e332bb24d4aa', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:28:35.726038')  (14.5ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:28:35.752812', '2015-02-26 17:28:35.752812')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:28:35.805243')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:28:35.827488' WHERE `dispatched_services`.`id` = 2  (14.1ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 189ms (Views: 19.4ms | ActiveRecord: 69.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:28:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af6dc26b02032f6ddcb76092f928d6ce' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:28:35.894551') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:28:35.896554') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:28:35.898371') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:28:35.900066') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:28:35.901768')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'af6dc26b02032f6ddcb76092f928d6ce', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:28:35.922547')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:28:35.949900', '2015-02-26 17:28:35.949900')  (14.3ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:28:36.001684' WHERE `dispatched_services`.`id` = 3  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 163ms (Views: 17.1ms | ActiveRecord: 66.3ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '321dd2571ee382b098171d4854d078d0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:28:36.096602') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:28:36.098646') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:28:36.100620') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:28:36.102279')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '321dd2571ee382b098171d4854d078d0', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:28:36.121567')  (13.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:28:36.142816', '2015-02-26 17:28:36.142816')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:28:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (14.8ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 36ms (Views: 15.6ms | ActiveRecord: 12.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:28:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f949a573f5a34a20bf90b5d78a6ac3b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:28:36.224048') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:28:36.226170') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:28:36.227965')  (16.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '5f949a573f5a34a20bf90b5d78a6ac3b', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:28:36.250172')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:28:36.277153', '2015-02-26 17:28:36.277153')  (14.9ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:28:36.331237')  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:28:36.360849')  (14.5ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:28:36.385409' WHERE `dispatched_services`.`id` = 5  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (37.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (9.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (65.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 260ms (Views: 62.7ms | ActiveRecord: 69.4ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:28:36 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:28:36.490564' WHERE `dispatched_services`.`id` = 5  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:28:36.510249')  (14.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A28%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 38.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:28:36.545139' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A28%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:28:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:28:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.1ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 41ms (Views: 20.2ms | ActiveRecord: 11.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:28:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47fd3ac3bcc613d4954d007e18cfabb8' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:28:36.644388') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:28:36.646620') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:28:36.648511')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '47fd3ac3bcc613d4954d007e18cfabb8', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:28:36.669319')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:28:36.696007', '2015-02-26 17:28:36.696007')  (15.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:28:36.788817')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:28:36.815718')  (14.4ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:28:36.837845' WHERE `dispatched_services`.`id` = 6  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 248ms (Views: 18.4ms | ActiveRecord: 67.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:28:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb1e15cf5ff4eb7a189f6a74ffbce783' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:28:36.900842') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:28:36.902876') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:28:36.905037')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'cb1e15cf5ff4eb7a189f6a74ffbce783', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:28:36.925560')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:28:36.952119', '2015-02-26 17:28:36.952119')  (14.4ms) COMMIT  (0.9ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:28:37.006463')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:28:37.035840')  (14.4ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:28:37.060954' WHERE `dispatched_services`.`id` = 7  (15.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (9.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (31.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 225ms (Views: 20.0ms | ActiveRecord: 75.9ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:28:37 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:28:37.170488' WHERE `dispatched_services`.`id` = 7  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:28:37.190154')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A28%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 37.7ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:28:37.222908' WHERE `dispatched_services`.`id` = 7  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A28%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:28:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:28:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.6ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 38ms (Views: 17.3ms | ActiveRecord: 11.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:28:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e04e8760f4517f6bf08ccc55773e9542' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:28:37.313276') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:28:37.315596') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:28:37.317264')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e04e8760f4517f6bf08ccc55773e9542', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:28:37.337081')  (14.7ms) COMMIT  (1.0ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:28:37.364645', '2015-02-26 17:28:37.364645')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:28:37.418105')  (15.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:28:37.447566')  (16.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:28:37.474605' WHERE `dispatched_services`.`id` = 8  (14.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (66.2ms) Permalink Load (2.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 263ms (Views: 60.4ms | ActiveRecord: 72.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:28:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3beedaf5c640cef980440015e8ea6b0d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:28:37.587495') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:28:37.589793') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:28:37.591774')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '3beedaf5c640cef980440015e8ea6b0d', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:28:37.612814')  (17.8ms) COMMIT  (0.7ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:28:37.643504', '2015-02-26 17:28:37.643504')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:28:37.701372')  (15.3ms) COMMIT  (1.4ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:28:37.731620')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:28:37.756996' WHERE `dispatched_services`.`id` = 9  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.7ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 227ms (Views: 20.1ms | ActiveRecord: 72.2ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:28:37 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:28:37.854563')  (14.8ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A28%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 20.9ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A28%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:28:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:28:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.7ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 41ms (Views: 20.3ms | ActiveRecord: 11.0ms) ActiveRecord::SchemaMigration Load (2.8ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (82.8ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.8ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (73.8ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (88.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (72.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (68.4ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (50.5ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (103.9ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (61.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (84.7ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (69.1ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (139.3ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (86.8ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (53.1ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (89.6ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (111.6ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (87.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (107.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (92.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (83.9ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (41.0ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (88.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (81.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (91.2ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (45.8ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (76.0ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (84.6ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (36.6ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (82.3ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (83.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (33.8ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (101.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (36.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (110.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (15.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:04:10 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7391fd0961de0013ccef6977d9ead3e3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:04:11.153721') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 18:04:11.156264') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 18:04:11.158105')  (22.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7391fd0961de0013ccef6977d9ead3e3', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 18:04:11.210652')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 18:04:11.290918', '2015-02-26 18:04:11.290918')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 18:04:11.456031')  (14.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 18:04:11.486625' WHERE `dispatched_services`.`id` = 1  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (4.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (98.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 724ms (Views: 161.7ms | ActiveRecord: 93.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 13:04:11 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b540b51149c3fef9c353324132b8f93' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (2.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 18:04:11.739285') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 18:04:11.742197') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 18:04:11.744097') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 18:04:11.745981') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 18:04:11.747774')  (15.4ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7b540b51149c3fef9c353324132b8f93', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 18:04:11.769108')  (14.9ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 18:04:11.796932', '2015-02-26 18:04:11.796932')  (15.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 18:04:11.852075')  (15.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:04:11.875379' WHERE `dispatched_services`.`id` = 2  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.9ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 198ms (Views: 18.8ms | ActiveRecord: 77.6ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 13:04:11 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5977f5987d71257a910d6a134803516b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:04:11.944040') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 18:04:11.945990') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 18:04:11.947879') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 18:04:11.949671') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 18:04:11.951402')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.6ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '5977f5987d71257a910d6a134803516b', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 18:04:11.971373')  (14.7ms) COMMIT  (1.0ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 18:04:11.999054', '2015-02-26 18:04:11.999054')  (15.2ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:04:12.055296' WHERE `dispatched_services`.`id` = 3  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.6ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 205ms (Views: 18.7ms | ActiveRecord: 70.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cee29b3a165e066ed60e1c59dd5b041b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:04:12.151539') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 18:04:12.153621') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 18:04:12.155536') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 18:04:12.157226')  (14.6ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cee29b3a165e066ed60e1c59dd5b041b', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 18:04:12.177241')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 18:04:12.199688', '2015-02-26 18:04:12.199688')  (14.8ms) COMMIT  (0.9ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 13:04:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.9ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.0ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 38ms (Views: 16.5ms | ActiveRecord: 13.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:04:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9e905bcf885ac8ee00c57c60114afc5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:04:12.286830') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 18:04:12.289059') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 18:04:12.290928')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd9e905bcf885ac8ee00c57c60114afc5', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 18:04:12.311540')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 18:04:12.338351', '2015-02-26 18:04:12.338351')  (15.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (1.0ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:04:12.394455')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:04:12.423959')  (15.2ms) COMMIT DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:04:12.452310' WHERE `dispatched_services`.`id` = 5  (14.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (36.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (37.2ms) DispatchedService Load (36.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (11.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (12.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (67.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 266ms (Views: 25.1ms | ActiveRecord: 107.6ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:04:12 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:04:12.559830' WHERE `dispatched_services`.`id` = 5  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:04:12.579819')  (14.2ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A04%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 38.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (2.1ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 18:04:12.613775' WHERE `dispatched_services`.`id` = 5  (19.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (18.9ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A04%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:04:12 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:04:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 18.8ms | ActiveRecord: 11.5ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 13:04:12 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90951d6263329937540a7eff6a5fbaae' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 18:04:12.721664') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 18:04:12.723787') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 18:04:12.725621')  (17.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '90951d6263329937540a7eff6a5fbaae', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 18:04:12.748573')  (14.4ms) COMMIT  (0.9ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 18:04:12.813453', '2015-02-26 18:04:12.813453')  (14.7ms) COMMIT  (1.0ms) BEGIN  (0.9ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:04:12.870097')  (25.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 18:04:12.908461')  (24.6ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:04:12.941533' WHERE `dispatched_services`.`id` = 6  (30.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 295ms (Views: 19.0ms | ActiveRecord: 73.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:04:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b945b569ca49da04cb596fe46c5b5369' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.1ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:04:13.027206') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 18:04:13.029491') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 18:04:13.031529')  (15.2ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b945b569ca49da04cb596fe46c5b5369', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 18:04:13.053507')  (16.3ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 18:04:13.083281', '2015-02-26 18:04:13.083281')  (17.2ms) COMMIT  (0.9ms) BEGIN  (1.0ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (20.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:04:13.147845')  (18.4ms) COMMIT  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:04:13.181746')  (47.2ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:04:13.239759' WHERE `dispatched_services`.`id` = 7  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 310ms (Views: 20.9ms | ActiveRecord: 74.9ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:04:13 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:04:13.344128' WHERE `dispatched_services`.`id` = 7  (44.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:04:13.393966')  (21.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A04%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 96ms (ActiveRecord: 75.4ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:04:13.434537' WHERE `dispatched_services`.`id` = 7  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (15.8ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A04%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:04:13 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:04:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.6ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 38ms (Views: 16.3ms | ActiveRecord: 11.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:04:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61566fb373faf98c23f727a54e85a6d8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:04:13.526749') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 18:04:13.528964') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 18:04:13.530792')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '61566fb373faf98c23f727a54e85a6d8', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 18:04:13.552351')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 18:04:13.579920', '2015-02-26 18:04:13.579920')  (14.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:04:13.634799')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:04:13.663332')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:04:13.687840' WHERE `dispatched_services`.`id` = 8  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (41.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (43.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (43.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (63.7ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 258ms (Views: 60.8ms | ActiveRecord: 68.1ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:04:13 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53b57e7ee8f00b62ce5860af96315be1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:04:13.796000') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 18:04:13.798179') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 18:04:13.799996')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '53b57e7ee8f00b62ce5860af96315be1', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 18:04:13.821341')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (1.0ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 18:04:13.848750', '2015-02-26 18:04:13.848750')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:04:13.904169')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:04:13.932261')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:04:13.957233' WHERE `dispatched_services`.`id` = 9  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.0ms) Permalink Load (2.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 219ms (Views: 19.9ms | ActiveRecord: 69.2ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 13:04:14 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:04:14.056079')  (17.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A04%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 23.3ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A04%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:04:14 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:04:14-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.9ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 41ms (Views: 19.6ms | ActiveRecord: 11.8ms) ActiveRecord::SchemaMigration Load (2.6ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (81.3ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.8ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (38.3ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (89.7ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (75.7ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (90.2ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.3ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (94.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (33.9ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (80.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (35.1ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (90.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (81.1ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (43.4ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (79.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (85.9ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (92.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (96.3ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (83.6ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (85.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (44.7ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (72.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (85.9ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (111.9ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (45.1ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (86.6ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (87.5ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (43.2ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (98.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (93.9ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (44.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (79.2ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (33.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (121.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.0ms) SELECT version FROM `schema_migrations`  (14.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:05:34 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '974aaefff85e4601097d61dd187fd3e3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:05:34.992162') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 18:05:34.994875') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 18:05:34.997344')  (16.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '974aaefff85e4601097d61dd187fd3e3', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 18:05:35.036192')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 18:05:35.116645', '2015-02-26 18:05:35.116645')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (22.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 18:05:35.272268')  (13.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 18:05:35.302472' WHERE `dispatched_services`.`id` = 1  (13.8ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (39.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (13.0ms) Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (106.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 705ms (Views: 188.8ms | ActiveRecord: 87.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 13:05:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f25bc5a558f3bf38fd802fafe9d6bd7d' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 18:05:35.546869') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 18:05:35.549022') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 18:05:35.550815') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 18:05:35.552501') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 18:05:35.554114')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f25bc5a558f3bf38fd802fafe9d6bd7d', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 18:05:35.574109')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 18:05:35.600601', '2015-02-26 18:05:35.600601')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 18:05:35.653179')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:05:35.675260' WHERE `dispatched_services`.`id` = 2  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.6ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.6ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 190ms (Views: 19.8ms | ActiveRecord: 69.9ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 13:05:35 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9bd92782cc7f81d50652bbd22d7b453' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:05:35.745186') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 18:05:35.747276') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 18:05:35.749082') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 18:05:35.750865') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 18:05:35.752821')  (15.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd9bd92782cc7f81d50652bbd22d7b453', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 18:05:35.773950')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 18:05:35.835799', '2015-02-26 18:05:35.835799')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (2.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (2.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:05:35.889567' WHERE `dispatched_services`.`id` = 3  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (3.2ms) DispatchedService Load (2.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (1.1ms) COMMIT Completed 200 OK in 199ms (Views: 15.7ms | ActiveRecord: 69.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '241fdd63dc9502505c162a4e17aaaf66' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:05:35.947090') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 18:05:35.949119') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 18:05:35.951071') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 18:05:35.952823')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '241fdd63dc9502505c162a4e17aaaf66', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 18:05:35.972928')  (14.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 18:05:35.994553', '2015-02-26 18:05:35.994553')  (14.6ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 13:05:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.9ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 37ms (Views: 16.7ms | ActiveRecord: 12.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:05:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50364d931731907b558ab882e168b6ab' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:05:36.077132') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 18:05:36.079314') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 18:05:36.081346')  (15.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '50364d931731907b558ab882e168b6ab', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 18:05:36.102408')  (15.0ms) COMMIT  (0.7ms) BEGIN  (36.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 18:05:36.165990', '2015-02-26 18:05:36.165990')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:05:36.219705')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:05:36.249014')  (14.2ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:05:36.273617' WHERE `dispatched_services`.`id` = 5  (14.1ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (8.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (11.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (11.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (30.5ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 260ms (Views: 24.1ms | ActiveRecord: 107.1ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:05:36 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:05:36.344368' WHERE `dispatched_services`.`id` = 5  (15.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:05:36.364898')  (14.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A05%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 38.7ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 18:05:36.398102' WHERE `dispatched_services`.`id` = 5  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A05%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:05:36 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:05:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.0ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 42ms (Views: 19.9ms | ActiveRecord: 12.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 13:05:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be222ad3664938dadcdcd94aa101fdf3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 18:05:36.537229') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 18:05:36.539325') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 18:05:36.541171')  (16.6ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'be222ad3664938dadcdcd94aa101fdf3', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 18:05:36.563557')  (19.1ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 18:05:36.595399', '2015-02-26 18:05:36.595399')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:05:36.647625')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 18:05:36.674457')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:05:36.696517' WHERE `dispatched_services`.`id` = 6  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 212ms (Views: 17.7ms | ActiveRecord: 73.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:05:36 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e96fb6db04a9ae6fb70a0142f123e441' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:05:36.757520') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 18:05:36.759553') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 18:05:36.761332')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e96fb6db04a9ae6fb70a0142f123e441', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 18:05:36.781735')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 18:05:36.808900', '2015-02-26 18:05:36.808900')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:05:36.861807')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:05:36.929486')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:05:36.954935' WHERE `dispatched_services`.`id` = 7  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 254ms (Views: 20.1ms | ActiveRecord: 67.0ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:05:37 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:05:37.016692' WHERE `dispatched_services`.`id` = 7  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:05:37.035992')  (14.3ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A05%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 49ms (ActiveRecord: 37.5ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:05:37.068386' WHERE `dispatched_services`.`id` = 7  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (15.1ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A05%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:05:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:05:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.7ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 39ms (Views: 16.7ms | ActiveRecord: 11.6ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:05:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aea9db3d9ee243016e7a04dcdb6b8c33' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:05:37.159736') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 18:05:37.162151') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 18:05:37.164163')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'aea9db3d9ee243016e7a04dcdb6b8c33', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 18:05:37.184177')  (17.9ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 18:05:37.214753', '2015-02-26 18:05:37.214753')  (18.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:05:37.311029')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.7ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:05:37.340158')  (16.0ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:05:37.367588' WHERE `dispatched_services`.`id` = 8  (15.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.7ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 267ms (Views: 21.1ms | ActiveRecord: 74.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:05:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c5fd9e6c6ea71c37965798165d8b2c7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:05:37.437514') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 18:05:37.439591') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 18:05:37.441537')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7c5fd9e6c6ea71c37965798165d8b2c7', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 18:05:37.461494')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 18:05:37.488053', '2015-02-26 18:05:37.488053')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:05:37.540539')  (14.0ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:05:37.568569')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:05:37.593800' WHERE `dispatched_services`.`id` = 9  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.7ms) DispatchedService Load (37.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (60.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 250ms (Views: 57.3ms | ActiveRecord: 66.7ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 13:05:37 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:05:37.691550')  (14.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A05%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 28ms (ActiveRecord: 20.5ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A05%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:05:37 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:05:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.0ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 39ms (Views: 19.2ms | ActiveRecord: 10.8ms) ActiveRecord::SchemaMigration Load (2.8ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (133.9ms) DROP DATABASE IF EXISTS `umlaut3_test`  (21.7ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (58.0ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (79.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (72.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (74.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.3ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (77.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (36.9ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (69.9ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.6ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (76.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (67.3ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.8ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (89.6ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (95.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (70.9ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (78.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (89.3ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (79.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (35.5ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (79.4ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (90.8ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (74.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (43.3ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (78.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (76.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (34.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (77.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (89.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (35.3ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (78.1ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (33.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (85.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.4ms) SELECT version FROM `schema_migrations`  (14.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '431e774d5fffc91567591bc5b7e1c4bf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:02.912245') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 18:15:02.915155') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 18:15:02.917392')  (18.5ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '431e774d5fffc91567591bc5b7e1c4bf', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 18:15:02.955481')  (14.8ms) COMMIT  (0.9ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 18:15:03.035607', '2015-02-26 18:15:03.035607')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 18:15:03.197060')  (14.5ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 18:15:03.229483' WHERE `dispatched_services`.`id` = 1  (14.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (41.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.3ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (99.8ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 673ms (Views: 147.3ms | ActiveRecord: 94.5ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 13:15:03 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e73acafb7d6e522b14f2d044a5cb453d' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 18:15:03.469644') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 18:15:03.471698') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 18:15:03.473446') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 18:15:03.475188') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 18:15:03.476858')  (15.9ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e73acafb7d6e522b14f2d044a5cb453d', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 18:15:03.498834')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 18:15:03.526092', '2015-02-26 18:15:03.526092')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 18:15:03.579236')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:03.601698' WHERE `dispatched_services`.`id` = 2  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 191ms (Views: 19.5ms | ActiveRecord: 70.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 13:15:03 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '531b215546f81d45473d6b37af3756f7' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:15:03.669386') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 18:15:03.671423') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 18:15:03.673368') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 18:15:03.675091') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 18:15:03.676805')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '531b215546f81d45473d6b37af3756f7', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 18:15:03.697222')  (13.9ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 18:15:03.723681', '2015-02-26 18:15:03.723681')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:03.775426' WHERE `dispatched_services`.`id` = 3  (14.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.3ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.6ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN  (36.3ms) COMMIT Completed 200 OK in 201ms (Views: 17.5ms | ActiveRecord: 102.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '961b1c2565df18b3a1bff8d853fd41c4' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:15:03.875696') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 18:15:03.877938') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 18:15:03.879941') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 18:15:03.881858')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '961b1c2565df18b3a1bff8d853fd41c4', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 18:15:03.901505')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 18:15:03.923509', '2015-02-26 18:15:03.923509')  (14.5ms) COMMIT  (0.6ms) BEGIN  (0.9ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 13:15:03 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (14.7ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 36ms (Views: 15.8ms | ActiveRecord: 12.5ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:03 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfcd8b3cf1af2ad666a02f69eb03eb46' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:04.005209') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 18:15:04.007397') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 18:15:04.009202')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'bfcd8b3cf1af2ad666a02f69eb03eb46', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 18:15:04.029483')  (15.0ms) COMMIT  (1.5ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 18:15:04.058026', '2015-02-26 18:15:04.058026')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:04.111042')  (15.8ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:15:04.141652')  (18.0ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:04.171019' WHERE `dispatched_services`.`id` = 5  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (38.5ms) DispatchedService Load (38.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (40.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (12.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (13.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (104.4ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 304ms (Views: 98.1ms | ActiveRecord: 72.5ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:15:04 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:15:04.435993' WHERE `dispatched_services`.`id` = 5  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:15:04.455500')  (14.4ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 37.4ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 18:15:04.491710' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:15:04 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:15:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 43ms (Views: 21.3ms | ActiveRecord: 10.8ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 13:15:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '502c6f0fcf5f57d7b81b099e04ce3b77' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 18:15:04.592729') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 18:15:04.595077') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 18:15:04.596902')  (15.1ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '502c6f0fcf5f57d7b81b099e04ce3b77', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 18:15:04.617738')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 18:15:04.681261', '2015-02-26 18:15:04.681261')  (14.9ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:04.735593')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 18:15:04.762169')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:04.783631' WHERE `dispatched_services`.`id` = 6  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 245ms (Views: 18.2ms | ActiveRecord: 67.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bc902c3fd63662e7c9a0cd8e6819fe6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:04.846383') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 18:15:04.848399') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 18:15:04.850193')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '9bc902c3fd63662e7c9a0cd8e6819fe6', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 18:15:04.871255')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 18:15:04.897874', '2015-02-26 18:15:04.897874')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:04.952174')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:15:04.982542')  (15.0ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:05.008961' WHERE `dispatched_services`.`id` = 7  (14.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 258ms (Views: 19.5ms | ActiveRecord: 68.7ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:15:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:15:05.110759' WHERE `dispatched_services`.`id` = 7  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:15:05.130531')  (16.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 40.7ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:05.165160' WHERE `dispatched_services`.`id` = 7  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:15:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:15:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 38ms (Views: 16.1ms | ActiveRecord: 11.8ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6abc0690815150151e104b9a32f9e3fd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:05.254395') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 18:15:05.256603') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 18:15:05.258410')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '6abc0690815150151e104b9a32f9e3fd', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 18:15:05.278246')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 18:15:05.304947', '2015-02-26 18:15:05.304947')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:05.357786')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:15:05.386108')  (17.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:05.413964' WHERE `dispatched_services`.`id` = 8  (14.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (41.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (43.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (44.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (63.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 257ms (Views: 60.6ms | ActiveRecord: 65.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61549b215773df9e7342baf39c025e17' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:05.522742') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 18:15:05.524726') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 18:15:05.526547')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '61549b215773df9e7342baf39c025e17', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 18:15:05.550961')  (14.0ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 18:15:05.577284', '2015-02-26 18:15:05.577284')  (15.0ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:05.631233')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:15:05.658994')  (14.6ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:05.683603' WHERE `dispatched_services`.`id` = 9  (14.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 217ms (Views: 19.2ms | ActiveRecord: 70.4ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 13:15:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:15:05.779561')  (15.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.9ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:15:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:15:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.9ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 42ms (Views: 19.5ms | ActiveRecord: 12.1ms) ActiveRecord::SchemaMigration Load (2.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (84.1ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.7ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (40.3ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (80.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (93.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (81.3ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.8ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (86.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (37.6ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (69.0ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (37.5ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (123.5ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (78.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.5ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (121.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (86.4ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (86.6ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (91.6ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (97.2ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (89.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (35.6ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (79.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (87.4ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (76.2ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (35.2ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (85.1ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (96.7ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (35.9ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (89.7ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (84.6ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (88.0ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (34.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (103.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (14.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.3ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:46 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b5302c6c4f28921eb74c356746d62e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:47.221776') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 18:15:47.224567') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 18:15:47.226492')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '5b5302c6c4f28921eb74c356746d62e4', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 18:15:47.260328')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (1.1ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 18:15:47.340777', '2015-02-26 18:15:47.340777')  (14.9ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 18:15:47.492688')  (15.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 18:15:47.525163' WHERE `dispatched_services`.`id` = 1  (14.9ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (38.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (9.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (95.5ms) Permalink Load (1.5ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.9ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 655ms (Views: 138.2ms | ActiveRecord: 94.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 13:15:47 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6463caa5b45d37261727233ba1f40c88' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (1.2ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 18:15:47.757033') SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 18:15:47.759273') SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 18:15:47.761640') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 18:15:47.763964') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 18:15:47.765800')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '6463caa5b45d37261727233ba1f40c88', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 18:15:47.786740')  (14.9ms) COMMIT  (0.9ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 18:15:47.814106', '2015-02-26 18:15:47.814106')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (2.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 18:15:47.868636')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:47.891242' WHERE `dispatched_services`.`id` = 2  (15.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 196ms (Views: 19.9ms | ActiveRecord: 74.3ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 13:15:47 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3ea05b435a6b9785f93c2f9e6bdd609' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:15:47.960781') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 18:15:47.962847') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 18:15:47.964655') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 18:15:47.966290') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 18:15:47.968046')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e3ea05b435a6b9785f93c2f9e6bdd609', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 18:15:47.988760')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 18:15:48.016020', '2015-02-26 18:15:48.016020')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:48.068107' WHERE `dispatched_services`.`id` = 3  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 199ms (Views: 16.9ms | ActiveRecord: 65.9ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f5d1a1e9a26fc3dc18fe3c41519fc2e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:15:48.162540') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 18:15:48.164607') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 18:15:48.166439') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 18:15:48.168172')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8f5d1a1e9a26fc3dc18fe3c41519fc2e', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 18:15:48.187375')  (14.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 18:15:48.209573', '2015-02-26 18:15:48.209573')  (14.7ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 13:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.9ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.9ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 38ms (Views: 17.0ms | ActiveRecord: 12.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ca8e2cae1a738eab3958dc0d5bf2332' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:48.295145') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 18:15:48.297406') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 18:15:48.299519')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '3ca8e2cae1a738eab3958dc0d5bf2332', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 18:15:48.319737')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 18:15:48.347141', '2015-02-26 18:15:48.347141')  (14.3ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:48.400876')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:15:48.430984')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:48.455786' WHERE `dispatched_services`.`id` = 5  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (38.9ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (64.9ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 259ms (Views: 62.7ms | ActiveRecord: 65.7ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:15:48 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:15:48.560812' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:15:48.580572')  (14.2ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 37.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 18:15:48.615760' WHERE `dispatched_services`.`id` = 5  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:15:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.7ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 43ms (Views: 20.2ms | ActiveRecord: 11.1ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 13:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30228770d9dbab1ddcc275e3d1bae183' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 18:15:48.718274') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 18:15:48.720329') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 18:15:48.722226')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '30228770d9dbab1ddcc275e3d1bae183', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 18:15:48.742691')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 18:15:48.806811', '2015-02-26 18:15:48.806811')  (17.8ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:48.864033')  (15.3ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 18:15:48.892348')  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:48.915038' WHERE `dispatched_services`.`id` = 6  (14.1ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.1ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 251ms (Views: 18.7ms | ActiveRecord: 69.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:48 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '697a2d922d8cd2441b8fa4a9734244d1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:48.977831') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 18:15:48.980139') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 18:15:48.981962')  (14.5ms) COMMIT  (1.0ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '697a2d922d8cd2441b8fa4a9734244d1', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 18:15:49.002500')  (14.7ms) COMMIT  (0.8ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 18:15:49.029863', '2015-02-26 18:15:49.029863')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (2.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:49.085540')  (15.9ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:15:49.116234')  (16.7ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:49.143479' WHERE `dispatched_services`.`id` = 7  (14.9ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (27.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 265ms (Views: 20.7ms | ActiveRecord: 72.5ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:15:49 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:15:49.247807' WHERE `dispatched_services`.`id` = 7  (31.5ms) COMMIT  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:15:49.284589')  (21.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 75ms (ActiveRecord: 63.3ms) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:49.325213' WHERE `dispatched_services`.`id` = 7  (36.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (74.1ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:15:49 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:15:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (1.1ms) COMMIT Completed 200 OK in 39ms (Views: 16.0ms | ActiveRecord: 12.7ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9616187cd1bfcbaa5726e547e29d35c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:49.499958') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 18:15:49.502536') SQL (24.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 18:15:49.504612')  (19.3ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f9616187cd1bfcbaa5726e547e29d35c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 18:15:49.553357')  (13.9ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 18:15:49.579831', '2015-02-26 18:15:49.579831')  (17.6ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:49.636970')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:15:49.665624')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:49.690215' WHERE `dispatched_services`.`id` = 8  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (40.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (42.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (43.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (64.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 290ms (Views: 60.6ms | ActiveRecord: 100.2ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:15:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e52f80a5908850dbae788a9f4bc47c81' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:15:49.801370') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 18:15:49.803641') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 18:15:49.805659')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e52f80a5908850dbae788a9f4bc47c81', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 18:15:49.826529')  (14.0ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 18:15:49.853013', '2015-02-26 18:15:49.853013')  (14.2ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:15:49.905987')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:15:49.935028')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.9ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:15:49.960648' WHERE `dispatched_services`.`id` = 9  (14.7ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 218ms (Views: 20.8ms | ActiveRecord: 64.4ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 13:15:50 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:15:50.059609')  (14.6ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 20.6ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A15%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:15:50 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:15:50-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (1.0ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.2ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.0ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 43ms (Views: 19.7ms | ActiveRecord: 12.5ms) ActiveRecord::SchemaMigration Load (2.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (81.1ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.6ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (38.6ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (88.9ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (83.6ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (76.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (35.3ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (74.4ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (33.8ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (73.3ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (35.5ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (85.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (73.1ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.0ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (78.3ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (81.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (86.2ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (77.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (71.6ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (92.6ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (34.9ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (80.0ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (76.3ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (75.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (35.1ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (107.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (73.4ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (34.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (75.3ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (83.1ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (33.9ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (78.5ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (33.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (81.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (14.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.4ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:16:37 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '51b57fff78561d29b4176c144d4e8410' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:16:38.226423') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 18:16:38.228990') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 18:16:38.230873')  (21.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '51b57fff78561d29b4176c144d4e8410', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 18:16:38.272724')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 18:16:38.350536', '2015-02-26 18:16:38.350536')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 18:16:38.501178')  (14.6ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 18:16:38.532771' WHERE `dispatched_services`.`id` = 1  (20.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (7.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (12.9ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (75.1ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.7ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 710ms (Views: 181.9ms | ActiveRecord: 96.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 13:16:38 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1eb8503a6850c2df6d5a881b93c520f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 18:16:38.778783') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 18:16:38.780751') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 18:16:38.782669') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 18:16:38.784400') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 18:16:38.786097')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd1eb8503a6850c2df6d5a881b93c520f', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 18:16:38.806984')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 18:16:38.833669', '2015-02-26 18:16:38.833669')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 18:16:38.886965')  (14.2ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:16:38.909120' WHERE `dispatched_services`.`id` = 2  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (6.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 190ms (Views: 18.2ms | ActiveRecord: 71.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 13:16:38 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94c1f3a61ee0fca1caa64e36bd65d39b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:16:38.979131') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 18:16:38.981334') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 18:16:38.983280') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 18:16:38.985012') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 18:16:38.986741')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '94c1f3a61ee0fca1caa64e36bd65d39b', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 18:16:39.046217')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 18:16:39.074657', '2015-02-26 18:16:39.074657')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:16:39.126396' WHERE `dispatched_services`.`id` = 3  (14.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.1ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 200ms (Views: 16.4ms | ActiveRecord: 66.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6cd7b217103432e757d48826350f3d9e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 18:16:39.183027') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 18:16:39.185158') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 18:16:39.187072') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 18:16:39.188793')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6cd7b217103432e757d48826350f3d9e', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 18:16:39.207955')  (14.5ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 18:16:39.230577', '2015-02-26 18:16:39.230577')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 13:16:39 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.4ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 38ms (Views: 17.8ms | ActiveRecord: 11.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:16:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dae7ccb2a7662f0f71e82487c652531d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:16:39.317569') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 18:16:39.319702') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 18:16:39.321449')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'dae7ccb2a7662f0f71e82487c652531d', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 18:16:39.342267')  (14.7ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 18:16:39.407231', '2015-02-26 18:16:39.407231')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:16:39.460208')  (14.1ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:16:39.490616')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:16:39.515378' WHERE `dispatched_services`.`id` = 5  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 DispatchedService Load (3.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (4.4ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (29.9ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 261ms (Views: 25.7ms | ActiveRecord: 67.0ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:16:39 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:16:39.585546' WHERE `dispatched_services`.`id` = 5  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:16:39.605301')  (14.2ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A16%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 37.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 18:16:39.640870' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A16%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:16:39 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:16:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.2ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 42ms (Views: 20.2ms | ActiveRecord: 10.7ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 13:16:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ddd3c4eb85dc5e201eadbcc04e1d9811' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 18:16:39.782532') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 18:16:39.784685') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 18:16:39.786539')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ddd3c4eb85dc5e201eadbcc04e1d9811', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 18:16:39.806781')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 18:16:39.834378', '2015-02-26 18:16:39.834378')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:16:39.889173')  (14.2ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 18:16:39.915666')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:16:39.937899' WHERE `dispatched_services`.`id` = 6  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.9ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 210ms (Views: 19.5ms | ActiveRecord: 66.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:16:39 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'def66978a54acf4f4fb0e0878daa707b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:16:40.001342') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 18:16:40.003794') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 18:16:40.005683')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'def66978a54acf4f4fb0e0878daa707b', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 18:16:40.026042')  (15.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 18:16:40.054159', '2015-02-26 18:16:40.054159')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:16:40.107855')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:16:40.178504')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:16:40.202988' WHERE `dispatched_services`.`id` = 7  (58.0ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (29.1ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 308ms (Views: 23.2ms | ActiveRecord: 71.5ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 13:16:40 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 18:16:40.315468' WHERE `dispatched_services`.`id` = 7  (27.0ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:16:40.347301')  (14.4ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A16%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 63ms (ActiveRecord: 52.0ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:16:40.379431' WHERE `dispatched_services`.`id` = 7  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (14.8ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A16%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:16:40 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:16:40-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.7ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 38ms (Views: 16.5ms | ActiveRecord: 11.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:16:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '00e71a375bc01d626e5dcb7048059f5c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:16:40.469760') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 18:16:40.472003') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 18:16:40.474059')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '00e71a375bc01d626e5dcb7048059f5c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 18:16:40.494092')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 18:16:40.559106', '2015-02-26 18:16:40.559106')  (14.1ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:16:40.612598')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:16:40.641635')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:16:40.666947' WHERE `dispatched_services`.`id` = 8  (14.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.4ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 254ms (Views: 21.0ms | ActiveRecord: 65.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 13:16:40 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3bbfd8cd4f1f706096828f6bd2813681' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 18:16:40.735473') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 18:16:40.737600') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 18:16:40.739536')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '3bbfd8cd4f1f706096828f6bd2813681', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 18:16:40.760223')  (14.0ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 18:16:40.786921', '2015-02-26 18:16:40.786921')  (14.2ms) COMMIT  (0.6ms) BEGIN  (1.1ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 18:16:40.840166')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 18:16:40.868923')  (14.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 18:16:40.932064' WHERE `dispatched_services`.`id` = 9  (14.7ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 254ms (Views: 21.1ms | ActiveRecord: 66.7ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 13:16:40 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 18:16:40.993015')  (14.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A16%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 29ms (ActiveRecord: 20.4ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T13%3A16%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 13:16:41 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T13:16:41-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.8ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 40ms (Views: 19.5ms | ActiveRecord: 10.5ms) ActiveRecord::SchemaMigration Load (3.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (96.4ms) DROP DATABASE IF EXISTS `umlaut3_test`  (7.6ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (42.7ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (114.0ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (83.2ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (82.1ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (35.7ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (88.2ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (37.0ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (68.1ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (35.8ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (79.1ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (93.1ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.6ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (87.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (85.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (120.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (80.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (94.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (81.5ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (35.6ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (76.7ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (71.1ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (73.7ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.4ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (83.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (69.3ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (35.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (81.0ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (68.5ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.2ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (77.5ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (35.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (89.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (15.0ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:02 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4644d183e820ab674d90cd6c01db672a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:03.092637') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 20:50:03.095391') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 20:50:03.097427')  (23.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '4644d183e820ab674d90cd6c01db672a', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 20:50:03.149749')  (15.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 20:50:03.238050', '2015-02-26 20:50:03.238050')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (23.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 20:50:03.422458')  (14.3ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 20:50:03.481101' WHERE `dispatched_services`.`id` = 1  (22.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (42.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (6.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (11.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (110.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.9ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 810ms (Views: 168.7ms | ActiveRecord: 100.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 15:50:03 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a3986bb946f3bee7eb80ef062f2bcdf' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 20:50:03.749773') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 20:50:03.751927') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 20:50:03.753894') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 20:50:03.755732') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 20:50:03.757507')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '9a3986bb946f3bee7eb80ef062f2bcdf', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 20:50:03.778090')  (15.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 20:50:03.806182', '2015-02-26 20:50:03.806182')  (15.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 20:50:03.862530')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:03.884868' WHERE `dispatched_services`.`id` = 2  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.9ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 195ms (Views: 18.5ms | ActiveRecord: 73.2ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 15:50:03 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b1547eccaaa78460413f249ccea149f' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 20:50:03.952445') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 20:50:03.954347') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 20:50:03.956164') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 20:50:03.957929') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 20:50:03.959745')  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1b1547eccaaa78460413f249ccea149f', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 20:50:03.980855')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 20:50:04.007654', '2015-02-26 20:50:04.007654')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:04.060041' WHERE `dispatched_services`.`id` = 3  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.1ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 198ms (Views: 16.1ms | ActiveRecord: 69.4ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a342c6fbe6c5089d7fcfa92b1332ad1d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 20:50:04.153322') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 20:50:04.155522') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 20:50:04.157368') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 20:50:04.159173')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a342c6fbe6c5089d7fcfa92b1332ad1d', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 20:50:04.179731')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 20:50:04.201338', '2015-02-26 20:50:04.201338')  (15.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 15:50:04 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.6ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.9ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (14.9ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 36ms (Views: 15.6ms | ActiveRecord: 13.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd25ef184847548c18dfe54416bb6db62' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:04.284767') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 20:50:04.286921') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 20:50:04.288866')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd25ef184847548c18dfe54416bb6db62', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 20:50:04.309414')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 20:50:04.336561', '2015-02-26 20:50:04.336561')  (15.0ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:04.389977')  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:50:04.419893')  (14.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:04.445176' WHERE `dispatched_services`.`id` = 5  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.5ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (63.3ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 257ms (Views: 60.6ms | ActiveRecord: 67.5ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 15:50:04 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 20:50:04.549061' WHERE `dispatched_services`.`id` = 5  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:50:04.569232')  (14.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 39.6ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 20:50:04.604989' WHERE `dispatched_services`.`id` = 5  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.0ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:50:04 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:50:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 40ms (Views: 18.7ms | ActiveRecord: 11.3ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 15:50:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24df6ad2f50f5ba9ce885cafdc98d525' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 20:50:04.703144') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 20:50:04.705194') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 20:50:04.707001')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '24df6ad2f50f5ba9ce885cafdc98d525', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 20:50:04.727524')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 20:50:04.792175', '2015-02-26 20:50:04.792175')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:04.845813')  (14.9ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 20:50:04.874052')  (15.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.0ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:04.897440' WHERE `dispatched_services`.`id` = 6  (15.8ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.7ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 250ms (Views: 18.8ms | ActiveRecord: 66.0ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:04 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54d4c72951cf6b64eba1b5191c6c7061' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:04.962487') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 20:50:04.964601') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 20:50:04.966521')  (15.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '54d4c72951cf6b64eba1b5191c6c7061', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 20:50:04.988439')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 20:50:05.015978', '2015-02-26 20:50:05.015978')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:05.068322')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:50:05.098659')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:05.123173' WHERE `dispatched_services`.`id` = 7  (14.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.7ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 255ms (Views: 20.4ms | ActiveRecord: 67.9ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 15:50:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 20:50:05.223023' WHERE `dispatched_services`.`id` = 7  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:50:05.242207')  (14.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 50ms (ActiveRecord: 37.4ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:05.274863' WHERE `dispatched_services`.`id` = 7  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:50:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:50:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.6ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 38ms (Views: 17.4ms | ActiveRecord: 11.2ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '400b968f441d2e0771707f905824c82a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:05.364959') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 20:50:05.366960') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 20:50:05.368856')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '400b968f441d2e0771707f905824c82a', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 20:50:05.389845')  (15.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 20:50:05.418194', '2015-02-26 20:50:05.418194')  (14.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:05.471091')  (14.2ms) COMMIT  (1.0ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:50:05.500110')  (15.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:05.526139' WHERE `dispatched_services`.`id` = 8  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (39.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (40.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (41.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (61.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 257ms (Views: 58.4ms | ActiveRecord: 68.9ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:05 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc2709deb9f26894932daaf1a348538e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:05.633994') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 20:50:05.636092') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 20:50:05.638080')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'bc2709deb9f26894932daaf1a348538e', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 20:50:05.659027')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 20:50:05.686001', '2015-02-26 20:50:05.686001')  (14.5ms) COMMIT  (0.9ms) BEGIN  (0.6ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:05.739223')  (15.1ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:50:05.768791')  (14.6ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:05.794236' WHERE `dispatched_services`.`id` = 9  (15.1ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (27.2ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 221ms (Views: 21.0ms | ActiveRecord: 70.6ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 15:50:05 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:50:05.895756')  (15.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 22.2ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:50:05 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:50:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 41ms (Views: 20.5ms | ActiveRecord: 10.9ms) ActiveRecord::SchemaMigration Load (2.6ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (152.6ms) DROP DATABASE IF EXISTS `umlaut3_test`  (8.6ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (40.1ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (82.9ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (89.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (103.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (44.9ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (113.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (36.6ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (82.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (35.8ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (94.2ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (87.7ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (35.9ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (85.7ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (95.2ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (84.8ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (94.2ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (88.1ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (88.9ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (36.7ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (105.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (93.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (108.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (62.4ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (118.5ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (84.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (34.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (86.6ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (80.8ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (91.5ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (34.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (91.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (14.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:20 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc2650d106fee6d9a2938e6fc552960e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:20.631295') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 20:50:20.634020') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 20:50:20.635920')  (21.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'dc2650d106fee6d9a2938e6fc552960e', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 20:50:20.678167')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 20:50:20.764792', '2015-02-26 20:50:20.764792')  (15.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 20:50:20.916139')  (14.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 20:50:20.946944' WHERE `dispatched_services`.`id` = 1  (15.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (41.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.9ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.3ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (102.3ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 691ms (Views: 153.1ms | ActiveRecord: 96.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 15:50:21 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d8a95740c33dde6ee7c3614dcc70dd2' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 20:50:21.194433') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 20:50:21.196447') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 20:50:21.198302') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 20:50:21.200081') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 20:50:21.201715')  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '2d8a95740c33dde6ee7c3614dcc70dd2', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 20:50:21.222501')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 20:50:21.249250', '2015-02-26 20:50:21.249250')  (14.9ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.2ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 20:50:21.303723')  (13.9ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:21.325928' WHERE `dispatched_services`.`id` = 2  (14.7ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.1ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 192ms (Views: 20.4ms | ActiveRecord: 69.8ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 15:50:21 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5837b87daf04b9f88b5e2c51982efd5a' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 20:50:21.394946') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 20:50:21.396926') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 20:50:21.398760') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 20:50:21.400485') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 20:50:21.402225')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '5837b87daf04b9f88b5e2c51982efd5a', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 20:50:21.422666')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 20:50:21.450015', '2015-02-26 20:50:21.450015')  (14.2ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:21.501806' WHERE `dispatched_services`.`id` = 3  (15.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.0ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 200ms (Views: 16.8ms | ActiveRecord: 66.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '055632c00e83d3d3784552901b267df2' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 20:50:21.598236') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 20:50:21.600388') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 20:50:21.602323') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 20:50:21.604449')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '055632c00e83d3d3784552901b267df2', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 20:50:21.624054')  (15.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 20:50:21.647014', '2015-02-26 20:50:21.647014')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 15:50:21 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (17.1ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 39ms (Views: 17.5ms | ActiveRecord: 12.2ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:21 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c78f590a5a55061267be123e0be2c85' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:21.733361') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 20:50:21.735433') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 20:50:21.737328')  (15.4ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1c78f590a5a55061267be123e0be2c85', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 20:50:21.758737')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 20:50:21.785999', '2015-02-26 20:50:21.785999')  (14.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:21.839451')  (14.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:50:21.869154')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:21.932028' WHERE `dispatched_services`.`id` = 5  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (27.8ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 261ms (Views: 26.2ms | ActiveRecord: 66.6ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 15:50:21 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 20:50:22.001863' WHERE `dispatched_services`.`id` = 5  (15.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:50:22.022422')  (15.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A22-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 53ms (ActiveRecord: 39.1ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.6ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 20:50:22.058473' WHERE `dispatched_services`.`id` = 5  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A22-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:50:22 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:50:22-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.9ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 41ms (Views: 19.6ms | ActiveRecord: 11.3ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 15:50:22 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9dc89f2a1eaa9ce656cd7239e1410ee' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 20:50:22.157982') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 20:50:22.160148') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 20:50:22.162289')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e9dc89f2a1eaa9ce656cd7239e1410ee', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 20:50:22.183691')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 20:50:22.250379', '2015-02-26 20:50:22.250379')  (16.2ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:22.306168')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 20:50:22.333297')  (14.3ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:22.355950' WHERE `dispatched_services`.`id` = 6  (14.8ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 253ms (Views: 18.6ms | ActiveRecord: 67.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:22 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7bc52995fa1c54c11339ed519a78802' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:22.420452') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 20:50:22.422540') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 20:50:22.424634')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e7bc52995fa1c54c11339ed519a78802', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 20:50:22.446312')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 20:50:22.473429', '2015-02-26 20:50:22.473429')  (15.1ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:22.527858')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:50:22.561575')  (15.0ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:22.587494' WHERE `dispatched_services`.`id` = 7  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.4ms) Permalink Load (2.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 267ms (Views: 22.0ms | ActiveRecord: 69.4ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 15:50:22 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 20:50:22.692931' WHERE `dispatched_services`.`id` = 7  (14.7ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:50:22.712814')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A22-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 58ms (ActiveRecord: 38.9ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:22.746214' WHERE `dispatched_services`.`id` = 7  (14.8ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (14.6ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A22-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:50:22 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:50:22-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.1ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 39ms (Views: 17.0ms | ActiveRecord: 10.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:22 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71582330d61e5cde55f8384ca472fe10' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:22.837490') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 20:50:22.839730') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 20:50:22.841749')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '71582330d61e5cde55f8384ca472fe10', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 20:50:22.862876')  (13.9ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 20:50:22.889184', '2015-02-26 20:50:22.889184')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:22.942270')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:50:22.971574')  (15.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:22.997393' WHERE `dispatched_services`.`id` = 8  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (41.6ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (43.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (44.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (63.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 256ms (Views: 60.8ms | ActiveRecord: 65.8ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:50:23 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fdb161d1778b6148ea7c4b5e96e3345' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:50:23.104364') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 20:50:23.106526') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 20:50:23.108483')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '3fdb161d1778b6148ea7c4b5e96e3345', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 20:50:23.128611')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 20:50:23.155336', '2015-02-26 20:50:23.155336')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:50:23.207395')  (14.5ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:50:23.235996')  (14.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:50:23.262110' WHERE `dispatched_services`.`id` = 9  (15.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.1ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 214ms (Views: 19.6ms | ActiveRecord: 65.7ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 15:50:23 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:50:23.360838')  (14.6ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 19.9ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A50%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:50:23 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:50:23-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.5ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 42ms (Views: 20.3ms | ActiveRecord: 11.2ms) ActiveRecord::SchemaMigration Load (2.9ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (129.9ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.8ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (39.1ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (88.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (73.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (84.7ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (35.7ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (72.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (35.4ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (81.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (39.1ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (95.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (86.6ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (37.3ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (101.2ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (107.0ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (74.5ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (86.5ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (92.1ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (105.9ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (39.9ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (84.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (78.7ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (86.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (40.8ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (96.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (97.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (42.3ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (99.5ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (83.2ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (38.6ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (80.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (38.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (87.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (15.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.4ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:29 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2455253f0ee3a85863a245c82bf81f3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:29.457655') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 20:54:29.460122') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 20:54:29.462059')  (21.7ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f2455253f0ee3a85863a245c82bf81f3', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 20:54:29.503068')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 20:54:29.585610', '2015-02-26 20:54:29.585610')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 20:54:29.735973')  (17.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 20:54:29.770111' WHERE `dispatched_services`.`id` = 1  (14.7ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (39.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (14.0ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (77.3ms) Permalink Load (2.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (28.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 727ms (Views: 189.3ms | ActiveRecord: 112.8ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 15:54:30 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd51d48bc6273db8429bc7054feabb6de' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 20:54:30.036458') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 20:54:30.038512') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 20:54:30.040375') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 20:54:30.042089') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 20:54:30.043727')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd51d48bc6273db8429bc7054feabb6de', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 20:54:30.064289')  (15.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 20:54:30.091807', '2015-02-26 20:54:30.091807')  (21.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 20:54:30.154346')  (14.4ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:30.176675' WHERE `dispatched_services`.`id` = 2  (14.4ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 201ms (Views: 19.7ms | ActiveRecord: 78.4ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 15:54:30 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41422c14ea342062b9323f8e0c64d91c' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 20:54:30.246521') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 20:54:30.248535') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 20:54:30.250364') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 20:54:30.252345') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 20:54:30.254117')  (18.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '41422c14ea342062b9323f8e0c64d91c', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 20:54:30.278979')  (16.2ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 20:54:30.343291', '2015-02-26 20:54:30.343291')  (25.8ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:30.406612' WHERE `dispatched_services`.`id` = 3  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 213ms (Views: 15.7ms | ActiveRecord: 85.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c30a3e24aeed64741955b29f4a9fe8a' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 20:54:30.463945') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 20:54:30.466142') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 20:54:30.467983') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 20:54:30.469845')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1c30a3e24aeed64741955b29f4a9fe8a', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 20:54:30.489175')  (14.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 20:54:30.511709', '2015-02-26 20:54:30.511709')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 15:54:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.9ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 37ms (Views: 17.2ms | ActiveRecord: 12.6ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:30 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04e9bd6b3058deacb34e01a9aa7f7ec4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:30.594015') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 20:54:30.596058') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 20:54:30.597932')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '04e9bd6b3058deacb34e01a9aa7f7ec4', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 20:54:30.619174')  (18.6ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 20:54:30.686280', '2015-02-26 20:54:30.686280')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (3.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.6ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:30.743668')  (14.5ms) COMMIT  (1.1ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:54:30.773448')  (14.9ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:30.798520' WHERE `dispatched_services`.`id` = 5  (14.5ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (26.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.9ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 265ms (Views: 23.7ms | ActiveRecord: 72.4ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 15:54:30 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 20:54:30.866899' WHERE `dispatched_services`.`id` = 5  (16.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:54:30.888665')  (14.7ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 54ms (ActiveRecord: 42.0ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.8ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 20:54:30.923424' WHERE `dispatched_services`.`id` = 5  (18.4ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (19.3ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:54:30 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:54:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.3ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 41ms (Views: 19.9ms | ActiveRecord: 11.6ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 15:54:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9ea715b5543ca305ad2e6358f921db0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 20:54:31.069401') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 20:54:31.071546') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 20:54:31.073573')  (15.5ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f9ea715b5543ca305ad2e6358f921db0', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 20:54:31.094861')  (14.5ms) COMMIT  (1.0ms) BEGIN  (1.1ms) COMMIT DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 20:54:31.123054', '2015-02-26 20:54:31.123054')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:31.181878')  (14.3ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 20:54:31.208779')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:31.230773' WHERE `dispatched_services`.`id` = 6  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 215ms (Views: 18.0ms | ActiveRecord: 68.4ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd72abae226f98c91d66632c7d6089f3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:31.293904') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 20:54:31.296006') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 20:54:31.297952')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'cd72abae226f98c91d66632c7d6089f3', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 20:54:31.318568')  (16.0ms) COMMIT  (0.9ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 20:54:31.347152', '2015-02-26 20:54:31.347152')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:31.404136')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:54:31.471030')  (19.3ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:31.501121' WHERE `dispatched_services`.`id` = 7  (19.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.7ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (26.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 272ms (Views: 20.6ms | ActiveRecord: 72.0ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 15:54:31 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 20:54:31.571271' WHERE `dispatched_services`.`id` = 7  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:54:31.591000')  (15.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 57ms (ActiveRecord: 40.5ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:31.624134' WHERE `dispatched_services`.`id` = 7  (16.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (15.6ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:54:31 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:54:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.9ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.6ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.9ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 39ms (Views: 17.1ms | ActiveRecord: 11.1ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:31 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31af65ba4a1bfb88c267f7781de4de28' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:31.718951') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 20:54:31.721089') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 20:54:31.722939')  (19.9ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '31af65ba4a1bfb88c267f7781de4de28', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 20:54:31.749132')  (19.0ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 20:54:31.780917', '2015-02-26 20:54:31.780917')  (18.0ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:31.878809')  (18.5ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:54:31.911844')  (17.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:31.939416' WHERE `dispatched_services`.`id` = 8  (15.2ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.7ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.8ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 279ms (Views: 20.5ms | ActiveRecord: 81.1ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:32 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (2.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8edb9bea70fb864d5ae9ecdc7c49c0cb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:32.008884') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 20:54:32.011072') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 20:54:32.012991')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '8edb9bea70fb864d5ae9ecdc7c49c0cb', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 20:54:32.033663')  (18.4ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 20:54:32.064408', '2015-02-26 20:54:32.064408')  (17.7ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:32.122331')  (18.3ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:54:32.154250')  (15.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:32.218584' WHERE `dispatched_services`.`id` = 9  (15.9ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.5ms) Permalink Load (1.6ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 270ms (Views: 21.7ms | ActiveRecord: 74.7ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 15:54:32 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:54:32.282967')  (17.1ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 23.2ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:54:32 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:54:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.9ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 40ms (Views: 19.9ms | ActiveRecord: 10.6ms) ActiveRecord::SchemaMigration Load (2.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (86.6ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.6ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (40.0ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (80.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (69.3ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (75.8ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (34.4ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (74.6ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.9ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (68.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (34.8ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (78.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (69.5ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (35.6ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (85.0ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (80.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (74.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (79.9ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (73.9ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (80.4ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (36.1ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (81.6ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (90.0ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (77.4ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (35.7ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (77.9ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (76.2ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (35.0ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (79.1ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (71.7ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (33.7ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (83.3ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (39.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (97.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.2ms) SELECT version FROM `schema_migrations`  (18.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.3ms) SELECT `schema_migrations`.* FROM `schema_migrations` ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:49 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0090a6909540dbfbe6b2999ed8037155' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:49.619317') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 20:54:49.622109') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 20:54:49.624019')  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '0090a6909540dbfbe6b2999ed8037155', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 20:54:49.658366')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 20:54:49.738438', '2015-02-26 20:54:49.738438')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 20:54:49.889852')  (15.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 20:54:49.921456' WHERE `dispatched_services`.`id` = 1  (14.4ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1 DispatchedService Load (40.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (13.3ms) Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (9.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (107.9ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.9ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 701ms (Views: 186.1ms | ActiveRecord: 91.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 15:54:50 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df3f27f2a3b9fe70ed4fed738e208172' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 20:54:50.167856') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 20:54:50.169946') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 20:54:50.171812') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 20:54:50.173602') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 20:54:50.175274')  (14.6ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'df3f27f2a3b9fe70ed4fed738e208172', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 20:54:50.195500')  (14.8ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 20:54:50.222491', '2015-02-26 20:54:50.222491')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 20:54:50.277206')  (14.3ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:50.300205' WHERE `dispatched_services`.`id` = 2  (15.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (2.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.9ms) COMMIT Completed 200 OK in 194ms (Views: 18.7ms | ActiveRecord: 73.5ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 15:54:50 -0500 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '135b7438ca17af3372eb7b7c61901fa5' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 20:54:50.369713') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 20:54:50.371873') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 20:54:50.373823') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 20:54:50.375645') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 20:54:50.377659')  (16.6ms) COMMIT  (1.0ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '135b7438ca17af3372eb7b7c61901fa5', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 20:54:50.400321')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 20:54:50.462978', '2015-02-26 20:54:50.462978')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) ServiceResponse Load (2.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (17.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:50.519999' WHERE `dispatched_services`.`id` = 3  (14.5ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.6ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 204ms (Views: 16.5ms | ActiveRecord: 69.6ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f03ec5e16e11de30a2440ccb90f010b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 20:54:50.578652') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 20:54:50.581064') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 20:54:50.583256') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 20:54:50.585198')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5f03ec5e16e11de30a2440ccb90f010b', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 20:54:50.604919')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 20:54:50.626840', '2015-02-26 20:54:50.626840')  (19.2ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 15:54:50 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"4"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 ReferentValue Load (1.6ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 [["request_id", 4]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 37ms (Views: 16.4ms | ActiveRecord: 12.0ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:50 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44d9dce8b1f30ebb4e7e09a8ac432f5b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:50.715456') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 20:54:50.717639') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 20:54:50.719410')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '44d9dce8b1f30ebb4e7e09a8ac432f5b', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 20:54:50.739860')  (15.1ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 20:54:50.806404', '2015-02-26 20:54:50.806404')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:50.860386')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:54:50.890229')  (14.6ms) COMMIT DispatchedService Load (2.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:50.916050' WHERE `dispatched_services`.`id` = 5  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.4ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 [["id", 5]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.5ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (27.7ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 262ms (Views: 25.8ms | ActiveRecord: 65.7ms) Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 15:54:50 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 20:54:50.984664' WHERE `dispatched_services`.`id` = 5  (14.9ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:54:51.005217')  (14.5ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 58ms (ActiveRecord: 38.6ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 20:54:51.041574' WHERE `dispatched_services`.`id` = 5  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5  (13.9ms) COMMIT Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:54:51 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:54:51-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)  (0.8ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.1ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 44ms (Views: 20.6ms | ActiveRecord: 12.0ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 15:54:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd338bb1590dea677f6a153de0c68b9f5' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 20:54:51.187331') SQL (1.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 20:54:51.189585') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 20:54:51.192290')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd338bb1590dea677f6a153de0c68b9f5', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 20:54:51.213940')  (18.8ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 20:54:51.248999', '2015-02-26 20:54:51.248999')  (15.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:51.303693')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 20:54:51.331807')  (14.1ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:51.353604' WHERE `dispatched_services`.`id` = 6  (14.2ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.4ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 222ms (Views: 18.9ms | ActiveRecord: 71.1ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b40329efe0097e80674cd052455c2692' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:51.418747') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 20:54:51.421087') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 20:54:51.423008')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b40329efe0097e80674cd052455c2692', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 20:54:51.444338')  (14.7ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 20:54:51.472947', '2015-02-26 20:54:51.472947')  (14.7ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7) ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (19.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:51.532033')  (15.0ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:54:51.603055')  (14.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:51.628733' WHERE `dispatched_services`.`id` = 7  (14.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 [["id", 7]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.4ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (25.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 271ms (Views: 23.7ms | ActiveRecord: 66.1ms) Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 15:54:51 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 20:54:51.694887' WHERE `dispatched_services`.`id` = 7  (15.0ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:54:51.715080')  (16.3ms) COMMIT Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 60ms (ActiveRecord: 40.4ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:51.749895' WHERE `dispatched_services`.`id` = 7  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10  (13.3ms) COMMIT Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:54:51 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:54:51-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 [["request_id", 7]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.9ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 38ms (Views: 17.9ms | ActiveRecord: 9.4ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:51 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df819a378eab8b7644b1920e7d1ebb1b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:51.840424') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 20:54:51.842415') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 20:54:51.844199')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'df819a378eab8b7644b1920e7d1ebb1b', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 20:54:51.865039')  (14.2ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 20:54:51.891807', '2015-02-26 20:54:51.891807')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:51.985399')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:54:52.014820')  (15.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:52.041459' WHERE `dispatched_services`.`id` = 8  (15.6ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (29.6ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 265ms (Views: 23.7ms | ActiveRecord: 67.7ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 15:54:52 -0500 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ccb646d3a2d2d354a8815067846f32d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 20:54:52.117450') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 20:54:52.119693') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 20:54:52.121755')  (15.1ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '4ccb646d3a2d2d354a8815067846f32d', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 20:54:52.143373')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 20:54:52.170398', '2015-02-26 20:54:52.170398')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 20:54:52.224136')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 20:54:52.255504')  (15.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 20:54:52.282215' WHERE `dispatched_services`.`id` = 9  (14.6ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (45.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (1.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (66.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 265ms (Views: 63.6ms | ActiveRecord: 66.4ms) Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 15:54:52 -0500 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 20:54:52.386164')  (15.2ms) COMMIT Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 20.7ms) Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T15%3A54%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 15:54:52 -0500 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T15:54:52-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)  (0.7ms) BEGIN  (1.0ms) COMMIT DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 [["request_id", 9]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.1ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)  (1.1ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 43ms (Views: 20.9ms | ActiveRecord: 11.6ms) ActiveRecord::SchemaMigration Load (11.8ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (288.7ms) DROP DATABASE IF EXISTS `umlaut3_test`  (23.4ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (56.9ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (96.4ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (79.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (75.5ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (52.6ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (74.8ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (34.2ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (71.8ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (33.8ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (73.6ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (77.4ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (34.3ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (72.6ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (66.3ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (84.7ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (93.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (91.1ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (74.0ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (40.5ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (70.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (78.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (78.3ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.4ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (68.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (74.9ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (35.4ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (67.3ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (73.9ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.0ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (258.8ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (35.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (79.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.0ms) SELECT version FROM `schema_migrations`  (17.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.5ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54b64c0a9f658503a151f7539abdf01b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 18:49:17.066465') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-03-17 18:49:17.079106') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-03-17 18:49:17.080880')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '54b64c0a9f658503a151f7539abdf01b', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2015-03-17 18:49:17.388442')  (13.4ms) COMMIT ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 18:49:17.428805')  (14.0ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 1, '2015-03-17 18:49:17.516980', '2015-03-17 18:49:17.516980')  (13.8ms) COMMIT  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-03-17 18:49:17.543011' WHERE `dispatched_services`.`id` = 1  (13.5ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'afdec320568770c2d3e0170660fff38b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-03-17 18:49:17.610113') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-03-17 18:49:17.612029') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 2, '2015-03-17 18:49:17.613753')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'afdec320568770c2d3e0170660fff38b', '9902a1d22a141a826ae31b1c83cb928c', 2, '0.0.0.0', '2015-03-17 18:49:17.633824')  (14.0ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 18:49:17.659284')  (14.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 2, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-03-17 18:49:17.713921')  (15.5ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2015-03-17 18:49:17.736767', '2015-03-17 18:49:17.736767')  (14.6ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7342402874cec26e7457d5d18968f42' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 18:49:17.765213') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-03-17 18:49:17.767270') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 3, '2015-03-17 18:49:17.769180')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f7342402874cec26e7457d5d18968f42', '1f2487b5ab29a0f58587335258d7f8e0', 3, '0.0.0.0', '2015-03-17 18:49:17.788617')  (18.0ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 18:49:17.817745')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 3, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 18:49:17.880569')  (13.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2015-03-17 18:49:17.905408', '2015-03-17 18:49:17.905408')  (14.6ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2053af79c44609b8316804cd042ac478' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-03-17 18:49:17.934692') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-03-17 18:49:17.937065') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 4, '2015-03-17 18:49:17.941816')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2053af79c44609b8316804cd042ac478', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 4, '0.0.0.0', '2015-03-17 18:49:17.962345')  (15.4ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 18:49:18.028272')  (17.3ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 4, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-03-17 18:49:18.085005')  (14.1ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2015-03-17 18:49:18.106478', '2015-03-17 18:49:18.106478')  (13.9ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c726a84ab19c768f8a6fe428d74d856' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-03-17 18:49:18.142177') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-03-17 18:49:18.144239') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 5, '2015-03-17 18:49:18.146174') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 5, '2015-03-17 18:49:18.148062') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 5, '2015-03-17 18:49:18.149992') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 5, '2015-03-17 18:49:18.151758') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 5, '2015-03-17 18:49:18.153426') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 5, '2015-03-17 18:49:18.155216') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 5, '2015-03-17 18:49:18.156988') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 5, '2015-03-17 18:49:18.158737') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 5, '2015-03-17 18:49:18.160373')  (15.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5c726a84ab19c768f8a6fe428d74d856', '06d451b80bf9fe3ce6849a48c98522d7', 5, 'info:sid/google', '0.0.0.0', '2015-03-17 18:49:18.182012')  (18.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2015-03-17 18:49:18.208448', '2015-03-17 18:49:18.208448')  (21.5ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 ServiceResponse Exists (1.1ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 5 LIMIT 1 Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8aa4ef1da69d4ac5264990efbfa625b' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-03-17 18:49:18.256307') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-03-17 18:49:18.258287') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 6, '2015-03-17 18:49:18.260130') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 6, '2015-03-17 18:49:18.261874')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd8aa4ef1da69d4ac5264990efbfa625b', '62590701c6f35b45309577ef8c8c22b4', 6, '0.0.0.0', '2015-03-17 18:49:18.281372')  (13.7ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-03-17 18:49:18.304307')  (13.7ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ac5a473a8ef944c7a3f512df6e512b5' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-03-17 18:49:18.339925') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 7, '2015-03-17 18:49:18.342029') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 7, '2015-03-17 18:49:18.343775') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 7, '2015-03-17 18:49:18.345566') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 7, '2015-03-17 18:49:18.347335') SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 7, '2015-03-17 18:49:18.348938') SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 7, '2015-03-17 18:49:18.350503')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8ac5a473a8ef944c7a3f512df6e512b5', 'd95884a882a64501650fb8f9deae5104', 7, 'info:sid/google', '0.0.0.0', '2015-03-17 18:49:18.370903')  (15.0ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-03-17 18:49:18.396583')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2015-03-17 18:49:18.418593', '2015-03-17 18:49:18.418593')  (15.0ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (2.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2edd4b6c87bdebdbe0c66b9d918b8b5d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-03-17 18:49:18.449641') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-03-17 18:49:18.451635') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 8, '2015-03-17 18:49:18.453346') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 8, '2015-03-17 18:49:18.455059')  (14.1ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2edd4b6c87bdebdbe0c66b9d918b8b5d', 'e7e9149c1fdfcd3be6736b651a0064bb', 8, '0.0.0.0', '2015-03-17 18:49:18.474408')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (8, '--- {}\n', 'test_holding', 'holding', '2015-03-17 18:49:18.497089')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-03-17 18:49:18.518730')  (13.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2015-03-17 18:49:18.539791', '2015-03-17 18:49:18.539791')  (13.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9cbb3dc98ffc1f510dac832833d452f6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 18:49:18.575343') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-03-17 18:49:18.577392') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-03-17 18:49:18.579060')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9cbb3dc98ffc1f510dac832833d452f6', '1f2487b5ab29a0f58587335258d7f8e0', 9, '0.0.0.0', '2015-03-17 18:49:18.598224')  (13.6ms) COMMIT ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 18:49:18.666698')  (14.0ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 9, '2015-03-17 18:49:18.687785', '2015-03-17 18:49:18.687785')  (13.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 14:49:18 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e010c624f632c52c0155db2f550855f0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 18:49:18.774495') SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-03-17 18:49:18.776335') SQL (0.7ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-03-17 18:49:18.777995')  (13.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e010c624f632c52c0155db2f550855f0', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2015-03-17 18:49:18.797311')  (13.3ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10  (0.6ms) BEGIN SQL (0.8ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 10, '2015-03-17 18:49:18.827393', '2015-03-17 18:49:18.827393')  (13.4ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (13.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 18:49:18.946122')  (13.1ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-03-17 18:49:19.014282' WHERE `dispatched_services`.`id` = 9  (13.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.8ms) Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (2.3ms) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (8.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (22.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (6.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (125.9ms) Permalink Load (1.4ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (11.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.9ms)  (0.8ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 4115ms (Views: 3811.6ms | ActiveRecord: 62.6ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-03-17 14:49:22 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3320f6fd5f947b103beaaa33739d62d2' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-03-17 18:49:22.929627') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2015-03-17 18:49:22.931919') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2015-03-17 18:49:22.933984') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 11, '2015-03-17 18:49:22.935938') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 11, '2015-03-17 18:49:22.937743')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '3320f6fd5f947b103beaaa33739d62d2', 'a03fb1fb17f24f5ea845bf6c4450490b', 11, '127.0.0.1', '2015-03-17 18:49:22.958775')  (30.7ms) COMMIT  (0.8ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2015-03-17 18:49:23.002795', '2015-03-17 18:49:23.002795')  (15.2ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.9ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 11, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-03-17 18:49:23.056782')  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 18:49:23.078301' WHERE `dispatched_services`.`id` = 10  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (1.8ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (22.0ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 208ms (Views: 20.0ms | ActiveRecord: 87.0ms) -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-03-17 14:49:23 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ccc501010703a90d1cca4a1b4f85069' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-03-17 18:49:23.182650') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-03-17 18:49:23.184953') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 12, '2015-03-17 18:49:23.187031') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 12, '2015-03-17 18:49:23.188860') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 12, '2015-03-17 18:49:23.190621')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '8ccc501010703a90d1cca4a1b4f85069', 'bc13b80c2923ce2cbe0c8347141587a7', 12, '127.0.0.1', '2015-03-17 18:49:23.211455')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2015-03-17 18:49:23.238789', '2015-03-17 18:49:23.238789')  (16.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (16.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 18:49:23.293845' WHERE `dispatched_services`.`id` = 11  (14.2ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1 DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (2.4ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (19.6ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 166ms (Views: 16.9ms | ActiveRecord: 70.2ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '868ba0a517133cd66884808c555c462e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-03-17 18:49:23.351103') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2015-03-17 18:49:23.353368') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2015-03-17 18:49:23.355189') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 13, '2015-03-17 18:49:23.356936')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '868ba0a517133cd66884808c555c462e', '318e542032e1812e600e07efbdb1dfcc', 13, '0.0.0.0', '2015-03-17 18:49:23.377372')  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 13, '2015-03-17 18:49:23.399166', '2015-03-17 18:49:23.399166')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Started GET "/resolve?umlaut.request_id=13" for 127.0.0.1 at 2015-03-17 14:49:23 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"13"} Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 [["request_id", 13]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 [["id", 13]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (17.0ms) Permalink Load (0.9ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 37ms (Views: 18.3ms | ActiveRecord: 10.3ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 14:49:23 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48a1c5027d30f78ac35cad271ddace41' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 18:49:23.482391') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-03-17 18:49:23.484690') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-03-17 18:49:23.486649')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '48a1c5027d30f78ac35cad271ddace41', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2015-03-17 18:49:23.507077')  (14.8ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2015-03-17 18:49:23.577377', '2015-03-17 18:49:23.577377')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 18:49:23.630739')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 14, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 18:49:23.671910')  (14.0ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 18:49:23.696917' WHERE `dispatched_services`.`id` = 13  (16.7ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 [["id", 14]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (18.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (19.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (38.5ms) Permalink Load (1.0ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 288ms (Views: 35.9ms | ActiveRecord: 64.2ms) Started GET "/borrow_direct/BorrowDirect/14?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-03-17 14:49:23 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"14"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-03-17 18:49:23.794748' WHERE `dispatched_services`.`id` = 13  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 14, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:23.814515')  (14.0ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Redirected to http://www.example.com/resolve?umlaut.request_id=14&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A23-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (1.0.1) lib/borrow_direct/request.rb:93:in `request' borrow_direct (1.0.1) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (1.0.1) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (1.0.1) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (1.0.1) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Completed 303 See Other in 56ms (ActiveRecord: 37.0ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-03-17 18:49:23.849140' WHERE `dispatched_services`.`id` = 13  (14.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 17  (14.2ms) COMMIT Started GET "/resolve?umlaut.request_id=14&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A23-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-03-17 14:49:23 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"14", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-03-17T14:49:23-04:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 [["request_id", 14]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 [["id", 14]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 42ms (Views: 21.4ms | ActiveRecord: 10.3ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-03-17 14:49:23 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (2.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1a88c026d1f0c53473dc0b5b0c07cb0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-03-17 18:49:23.993884') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-03-17 18:49:23.996051') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 15, '2015-03-17 18:49:23.998135')  (19.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a1a88c026d1f0c53473dc0b5b0c07cb0', '9902a1d22a141a826ae31b1c83cb928c', 15, '127.0.0.1', '2015-03-17 18:49:24.023828')  (13.9ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2015-03-17 18:49:24.051530', '2015-03-17 18:49:24.051530')  (14.0ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.0ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 18:49:24.106227')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 15, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-03-17 18:49:24.160227')  (15.1ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 18:49:24.183147' WHERE `dispatched_services`.`id` = 14  (14.4ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (22.1ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 247ms (Views: 19.0ms | ActiveRecord: 70.9ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 14:49:24 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb6e6c6250bcff2f606ed30621e13b11' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 18:49:24.247525') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-03-17 18:49:24.249533') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2015-03-17 18:49:24.251379')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'cb6e6c6250bcff2f606ed30621e13b11', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2015-03-17 18:49:24.271992')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 16, '2015-03-17 18:49:24.299062', '2015-03-17 18:49:24.299062')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 18:49:24.351207')  (14.7ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 16, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 18:49:24.382638')  (14.4ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 18:49:24.407548' WHERE `dispatched_services`.`id` = 15  (14.2ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (44.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Referent Load (1.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (47.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 [["id", 16]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (66.6ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 260ms (Views: 63.5ms | ActiveRecord: 65.7ms) Started GET "/borrow_direct/BorrowDirect/16?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-03-17 14:49:24 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"16"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-03-17 18:49:24.512715' WHERE `dispatched_services`.`id` = 15  (15.2ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 16, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:24.532890')  (18.9ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Redirected to http://www.example.com/resolve?umlaut.request_id=16&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A24-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 55ms (ActiveRecord: 42.7ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 18:49:24.572411' WHERE `dispatched_services`.`id` = 15  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 22  (14.1ms) COMMIT Started GET "/resolve?umlaut.request_id=16&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A24-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-03-17 14:49:24 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"16", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-03-17T14:49:24-04:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 [["request_id", 16]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.9ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (17.1ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 39ms (Views: 18.1ms | ActiveRecord: 10.5ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 14:49:24 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a77f99635e2c8b812e1d922ef2e4eeb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 18:49:24.664154') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-03-17 18:49:24.666366') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2015-03-17 18:49:24.668153')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '2a77f99635e2c8b812e1d922ef2e4eeb', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2015-03-17 18:49:24.688377')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2015-03-17 18:49:24.716023', '2015-03-17 18:49:24.716023')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 18:49:24.768815')  (14.4ms) COMMIT  (1.2ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 17, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 18:49:24.869126')  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 18:49:24.894927' WHERE `dispatched_services`.`id` = 16  (14.0ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.3ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 [["id", 17]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (68.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 332ms (Views: 66.1ms | ActiveRecord: 64.8ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 14:49:25 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c1462c27ae342b45bb586d147d48b70' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 18:49:25.009070') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-03-17 18:49:25.011197') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2015-03-17 18:49:25.013059')  (15.9ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '0c1462c27ae342b45bb586d147d48b70', '1f2487b5ab29a0f58587335258d7f8e0', 18, '127.0.0.1', '2015-03-17 18:49:25.034798')  (14.2ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2015-03-17 18:49:25.061841', '2015-03-17 18:49:25.061841')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.1ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 18, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 18:49:25.115815')  (13.9ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 18, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 18:49:25.161560')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 18:49:25.185921' WHERE `dispatched_services`.`id` = 17  (15.7ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (7.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.2ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 [["id", 18]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (28.2ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 240ms (Views: 25.0ms | ActiveRecord: 66.5ms) Started GET "/borrow_direct/BorrowDirect/18" for 127.0.0.1 at 2015-03-17 14:49:25 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"18"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 18, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:25.291732')  (14.3ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Redirected to http://www.example.com/resolve?umlaut.request_id=18&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A25-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 69ms (ActiveRecord: 19.7ms) Started GET "/resolve?umlaut.request_id=18&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A25-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-03-17 14:49:25 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"18", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-03-17T14:49:25-04:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 [["request_id", 18]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.1ms) CACHE (0.0ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 [["id", 18]] Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (20.8ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 42ms (Views: 22.1ms | ActiveRecord: 9.0ms) Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8d0fc7a44ab7c232fe15c68f2affdeb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-03-17 18:49:25.371214') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-03-17 18:49:25.373746') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2015-03-17 18:49:25.375587') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2015-03-17 18:49:25.377249')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd8d0fc7a44ab7c232fe15c68f2affdeb', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2015-03-17 18:49:25.396985')  (13.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 19, 'test_holding', 'holding', '2015-03-17 18:49:25.418164')  (14.2ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2015-03-17 18:49:25.445782', '2015-03-17 18:49:25.445782')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43fad81f4bfa219425bae8302d84fd7f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-03-17 18:49:25.475359') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-03-17 18:49:25.477762') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2015-03-17 18:49:25.479626') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2015-03-17 18:49:25.481757')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '43fad81f4bfa219425bae8302d84fd7f', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2015-03-17 18:49:25.501678')  (15.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 20, 'test_holding', 'holding', '2015-03-17 18:49:25.524075')  (14.2ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-03-17 18:49:25.553344')  (14.0ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2015-03-17 18:49:25.574489', '2015-03-17 18:49:25.574489')  (14.0ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '264cdb9222a853bc78a2e058d331b8e9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-03-17 18:49:25.602520') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-03-17 18:49:25.604531') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2015-03-17 18:49:25.606318') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2015-03-17 18:49:25.608033')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '264cdb9222a853bc78a2e058d331b8e9', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2015-03-17 18:49:25.627994')  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 21, 'test_holding', 'holding', '2015-03-17 18:49:25.649422')  (14.1ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-03-17 18:49:25.678433')  (16.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2015-03-17 18:49:25.703096', '2015-03-17 18:49:25.703096')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 50ms (Views: 49.6ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.1ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '130a530968050fd060517a5a262bae79' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 18:49:25.814928') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-03-17 18:49:25.816955') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-03-17 18:49:25.818791')  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '130a530968050fd060517a5a262bae79', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-03-17 18:49:25.838596')  (14.5ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 22  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 22\n', 22, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:25.865949')  (14.6ms) COMMIT Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22) Redirected to http://test.host/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A25-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 21.6ms) Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11ddb422479baecac02d15a397e5037a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 18:49:25.896719') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-03-17 18:49:25.898687') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-03-17 18:49:25.900823')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '11ddb422479baecac02d15a397e5037a', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-03-17 18:49:25.920103')  (14.3ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 18:49:25.941458')  (14.3ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 34  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 34\n', 23, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:25.967280')  (14.8ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23) Redirected to http://test.host/resolve?umlaut.request_id=23&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A25-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 21.7ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '853016abc11b3ee25ef1943084481e11' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 18:49:25.998757') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-03-17 18:49:26.000770') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-03-17 18:49:26.002601')  (14.6ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '853016abc11b3ee25ef1943084481e11', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-03-17 18:49:26.022389')  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 24, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 18:49:26.045194')  (14.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2015-03-17 18:49:26.072368', '2015-03-17 18:49:26.072368')  (14.3ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 24, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:26.093324')  (18.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1 ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24) Redirected to http://test.host/resolve?umlaut.request_id=24&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A26-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 56ms (ActiveRecord: 44.5ms) DispatchedService Load (2.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 ServiceResponse Load (5.7ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-03-17 18:49:26.141578' WHERE `dispatched_services`.`id` = 21  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37  (14.4ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd2a9aeca706a621d6592d7c249bf718f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 18:49:26.187618') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-03-17 18:49:26.189710') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2015-03-17 18:49:26.191600')  (14.8ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd2a9aeca706a621d6592d7c249bf718f', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2015-03-17 18:49:26.211374')  (19.0ms) COMMIT  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 25, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 18:49:26.237308')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2015-03-17 18:49:26.264410', '2015-03-17 18:49:26.264410')  (14.8ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 25, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:26.286147')  (14.4ms) COMMIT Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1 ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25) Redirected to http://example.org Completed 302 Found in 52ms (ActiveRecord: 39.1ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (1.0.1) lib/borrow_direct/request.rb:70:in `request' borrow_direct (1.0.1) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (1.0.1) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (1.0.1) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (1.0.1) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb772e52769ddaff62e3dd873bc34bf0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN DispatchedService Load (4.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (6.6ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 18:49:26.319807')  (1.2ms) BEGIN SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-03-17 18:49:26.327438') SQL (10.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2015-03-17 18:49:26.329315') SQL (1.8ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-03-17 18:49:26.330708' WHERE `dispatched_services`.`id` = 22  (15.2ms) COMMIT  (0.6ms) BEGIN  (17.0ms) COMMIT SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'eb772e52769ddaff62e3dd873bc34bf0', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2015-03-17 18:49:26.359351')  (2.2ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 39  (14.6ms) COMMIT  (0.7ms) BEGIN  (15.2ms) COMMIT SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 26, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 18:49:26.382858')  (14.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 26, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:26.410192')  (14.2ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 26ms (ActiveRecord: 18.2ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b35a9eff458c6cd41505618d728bea9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 18:49:26.437670') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-03-17 18:49:26.439649') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2015-03-17 18:49:26.441479')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2b35a9eff458c6cd41505618d728bea9', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2015-03-17 18:49:26.461265')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 27, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 18:49:26.528677')  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2015-03-17 18:49:26.556719', '2015-03-17 18:49:26.556719')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 27, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:26.577857')  (14.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 55ms (Views: 0.5ms | ActiveRecord: 38.5ms) ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- Request Load (5.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b1fa3a539dacb5a08ccec6b62d3f3d7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1 BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (1.0.1) lib/borrow_direct/request.rb:70:in `request' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'  (0.6ms) BEGIN DispatchedService Load (3.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (6.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 18:49:26.617396')  (1.3ms) BEGIN SQL (10.6ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-03-17 18:49:26.624497') SQL (2.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-03-17 18:49:26.626716' WHERE `dispatched_services`.`id` = 23 SQL (5.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2015-03-17 18:49:26.636273')  (15.6ms) COMMIT  (0.7ms) BEGIN  (18.9ms) COMMIT SQL (2.0ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 43  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8b1fa3a539dacb5a08ccec6b62d3f3d7', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2015-03-17 18:49:26.664885')  (15.5ms) COMMIT  (14.7ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 28, 'BorrowDirect', 'bd_request_status', '2015-03-17 18:49:26.691880')  (15.0ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28) Redirected to http://test.host/resolve?umlaut.request_id=28&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T14%3A49%3A26-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.5ms) ActiveRecord::SchemaMigration Load (19.9ms) SELECT `schema_migrations`.* FROM `schema_migrations`  (80.6ms) DROP DATABASE IF EXISTS `umlaut3_test`  (5.9ms) CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (38.4ms) CREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB  (79.6ms) CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)  (87.1ms) CREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`)   (65.0ms) CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)  (33.8ms) CREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB  (70.7ms) CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)  (35.1ms) CREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB  (71.4ms) CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)  (57.2ms) CREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB  (72.8ms) CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)  (76.1ms) CREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`)   (36.0ms) CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB  (71.1ms) CREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`)   (86.1ms) CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)  (71.4ms) CREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`)   (75.4ms) CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)  (72.6ms) CREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`)   (72.9ms) CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)  (34.4ms) CREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB  (80.5ms) CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)  (72.6ms) CREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`)   (71.0ms) CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)  (34.8ms) CREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB  (65.3ms) CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)  (73.0ms) CREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`)   (44.5ms) CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB  (69.9ms) CREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`)   (71.3ms) CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)  (34.1ms) CREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB  (71.7ms) CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)  (40.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (86.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (1.1ms) SELECT version FROM `schema_migrations`  (14.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530191137') ActiveRecord::SchemaMigration Load (1.1ms) SELECT `schema_migrations`.* FROM `schema_migrations` Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1adce9270c8c37396c3493e09e212614' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 20:49:14.918545') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-03-17 20:49:14.921170') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-03-17 20:49:14.923305')  (14.0ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1adce9270c8c37396c3493e09e212614', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2015-03-17 20:49:15.334905')  (14.0ms) COMMIT ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 20:49:15.380056')  (14.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-03-17 20:49:15.418909', '2015-03-17 20:49:15.418909')  (17.5ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59f4b9146299f50d39a188a48a7e40ee' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 20:49:15.490758') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-03-17 20:49:15.493081') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2015-03-17 20:49:15.495041')  (15.2ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '59f4b9146299f50d39a188a48a7e40ee', '1f2487b5ab29a0f58587335258d7f8e0', 2, '0.0.0.0', '2015-03-17 20:49:15.515658')  (14.0ms) COMMIT ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 20:49:15.540128')  (14.1ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 2, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 20:49:15.582257')  (14.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2015-03-17 20:49:15.607441', '2015-03-17 20:49:15.607441')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d0cdefe9f1b5ea08cf0bd159989be98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 20:49:15.679560') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-03-17 20:49:15.681576') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 3, '2015-03-17 20:49:15.683244')  (15.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4d0cdefe9f1b5ea08cf0bd159989be98', '1f2487b5ab29a0f58587335258d7f8e0', 3, '0.0.0.0', '2015-03-17 20:49:15.704372')  (14.2ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 20:49:15.729745')  (14.7ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 3, '2015-03-17 20:49:15.773452', '2015-03-17 20:49:15.773452')  (14.4ms) COMMIT  (0.9ms) BEGIN SQL (1.5ms) UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-03-17 20:49:15.800110' WHERE `dispatched_services`.`id` = 3  (14.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ef1c05c957de8e08f7953c3494e51b59' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-03-17 20:49:15.862726') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-03-17 20:49:15.864879') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 4, '2015-03-17 20:49:15.866792')  (14.5ms) COMMIT  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ef1c05c957de8e08f7953c3494e51b59', '9902a1d22a141a826ae31b1c83cb928c', 4, '0.0.0.0', '2015-03-17 20:49:15.886635')  (14.1ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 20:49:15.911523')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 4, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-03-17 20:49:15.994083')  (15.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2015-03-17 20:49:16.017337', '2015-03-17 20:49:16.017337')  (25.6ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17572e2fc1ebd630cf74695b7a22720f' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-03-17 20:49:16.056880') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-03-17 20:49:16.058853') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 5, '2015-03-17 20:49:16.060666')  (14.5ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '17572e2fc1ebd630cf74695b7a22720f', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 5, '0.0.0.0', '2015-03-17 20:49:16.080460')  (14.2ms) COMMIT ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 20:49:16.105638')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 5, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-03-17 20:49:16.144647')  (13.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2015-03-17 20:49:16.165365', '2015-03-17 20:49:16.165365')  (15.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 ----------------------------------------------------------------- BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters ----------------------------------------------------------------- Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"} BorrowDirectController: No such service for id `no_such_service` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 25ms (Views: 24.5ms | ActiveRecord: 0.0ms) Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1 BorrowDirectController: No Request with id `bad_id` Rendered text template (0.0ms) Filter chain halted as :load_service_and_response rendered or redirected Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms) ------------------------------------------------------------- BorrowDirectControllerTest: test_error_on_bad_pickup_location ------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0723ba2970caacc81e4ec97e39f95dde' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 20:49:16.281975') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-03-17 20:49:16.283877') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 6, '2015-03-17 20:49:16.285648')  (14.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0723ba2970caacc81e4ec97e39f95dde', 'e4f2e6742054acb1be6068a6078c6b4d', 6, '0.0.0.0', '2015-03-17 20:49:16.305458')  (14.6ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"6"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC BorrowDirectController: No existing bd_request_prompt response found for request 6  (0.8ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 6\n', 6, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:16.333549')  (14.6ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 ReferentValue Load (1.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6) Redirected to http://test.host/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A16-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 79ms (ActiveRecord: 21.7ms) Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '422eb712b1d92cd8fc1fa50a7d0530f9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 20:49:16.411808') SQL (1.2ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-03-17 20:49:16.414141') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 7, '2015-03-17 20:49:16.416431')  (15.3ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '422eb712b1d92cd8fc1fa50a7d0530f9', 'e4f2e6742054acb1be6068a6078c6b4d', 7, '0.0.0.0', '2015-03-17 20:49:16.437094')  (13.9ms) COMMIT  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 7, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 20:49:16.458342')  (13.8ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"7"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 10  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 10\n', 7, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:16.484152')  (14.2ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7) Redirected to http://test.host/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A16-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 30ms (ActiveRecord: 20.7ms) --------------------------------------------- BorrowDirectControllerTest: test_good_request --------------------------------------------- Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '480d9ade891789c8f3eebd7043f70987' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 20:49:16.515715') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-03-17 20:49:16.517856') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 8, '2015-03-17 20:49:16.519775')  (18.8ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '480d9ade891789c8f3eebd7043f70987', 'e4f2e6742054acb1be6068a6078c6b4d', 8, '0.0.0.0', '2015-03-17 20:49:16.544099')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 8, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 20:49:16.565727')  (13.9ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"8"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 8, '2015-03-17 20:49:16.593104', '2015-03-17 20:49:16.593104')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 8, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:16.614685')  (14.1ms) COMMIT Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8) Redirected to http://test.host/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A16-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Completed 303 See Other in 57ms (ActiveRecord: 38.7ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace: borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:85:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-03-17 20:49:16.666521' WHERE `dispatched_services`.`id` = 6  (25.3ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 13  (22.6ms) COMMIT ------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url ------------------------------------------------------------- Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3c2addbc66f4579e6e23873d175df509' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (12.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 20:49:16.737414') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-03-17 20:49:16.750310') SQL (1.5ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2015-03-17 20:49:16.752559')  (15.5ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3c2addbc66f4579e6e23873d175df509', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2015-03-17 20:49:16.774011')  (18.8ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 9, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 20:49:16.804557')  (32.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"9"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 9, '2015-03-17 20:49:16.853455', '2015-03-17 20:49:16.853455')  (17.8ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT  (0.9ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 9, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:16.878404')  (15.6ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 ReferentValue Load (1.4ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9) Redirected to http://example.org Completed 302 Found in 107ms (ActiveRecord: 52.3ms) --------------------------------------------------------------------------------- BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error --------------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c48452c98944b5dd4e9a2049d372388c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 20:49:16.957636') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-03-17 20:49:16.959697') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2015-03-17 20:49:16.961735')  (14.9ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c48452c98944b5dd4e9a2049d372388c', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2015-03-17 20:49:16.982109')  (14.0ms) COMMIT  (48.6ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 10, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 20:49:17.051631')  (14.0ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"10"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 10, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:17.078028')  (14.1ms) COMMIT Redirected to http://example.org Filter chain halted as :load_service_and_response rendered or redirected Completed 302 Found in 25ms (ActiveRecord: 18.2ms) --------------------------------------------------------------------------- BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url --------------------------------------------------------------------------- Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48912d770c533f314b677eb05e83307b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 20:49:17.104533') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-03-17 20:49:17.106452') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2015-03-17 20:49:17.108309')  (13.9ms) COMMIT  (0.7ms) BEGIN SQL (4.9ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '48912d770c533f314b677eb05e83307b', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2015-03-17 20:49:17.127583')  (14.9ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 11, 'BorrowDirect', 'bd_request_prompt', '2015-03-17 20:49:17.153930')  (24.2ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2015-03-17 20:49:17.191033', '2015-03-17 20:49:17.191033')  (14.1ms) COMMIT  (0.6ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 11, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:17.212426')  (14.3ms) COMMIT Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11) Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org Rendered text template (0.0ms) Completed 403 Forbidden in 53ms (Views: 0.4ms | ActiveRecord: 39.2ms) BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/portal-service/user/authentication/patron Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (1.0.1) lib/borrow_direct/request.rb:70:in `request' borrow_direct (1.0.1) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (1.0.1) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (1.0.1) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (1.0.1) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' ---------------------------------------------------------------------------- BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location ---------------------------------------------------------------------------- DispatchedService Load (1.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 Request Load (6.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab4b6a0d302c145d268bb356daa03293' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN  (11.7ms) BEGIN SQL (4.0ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-03-17 20:49:17.252721' WHERE `dispatched_services`.`id` = 8 SQL (3.7ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-03-17 20:49:17.265485') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-03-17 20:49:17.270305') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2015-03-17 20:49:17.272304')  (15.1ms) COMMIT  (0.7ms) BEGIN  (14.4ms) COMMIT SQL (1.8ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 19  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ab4b6a0d302c145d268bb356daa03293', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2015-03-17 20:49:17.292256')  (14.9ms) COMMIT  (14.1ms) COMMIT Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"12"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 12, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:17.319239')  (14.5ms) COMMIT Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1 ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12) Redirected to http://test.host/resolve?umlaut.request_id=12&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A17-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 31ms (ActiveRecord: 21.0ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link ---------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 16:49:17 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee494e86663f717f76e6ead45ec0e396' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 20:49:17.471911') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-03-17 20:49:17.474083') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2015-03-17 20:49:17.476078')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ee494e86663f717f76e6ead45ec0e396', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2015-03-17 20:49:17.496882')  (14.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 13, '2015-03-17 20:49:17.533598', '2015-03-17 20:49:17.533598')  (14.4ms) COMMIT  (0.8ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 Referent Load (1.2ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-03-17 20:49:17.599897')  (13.9ms) COMMIT BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead. * Returned error: # * BD url: https://bdtest.relais-host.com/dws/item/available * Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]} DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-03-17 20:49:17.629570' WHERE `dispatched_services`.`id` = 9  (15.2ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1 DispatchedService Load (1.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.7ms) Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (5.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (2.3ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (5.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (11.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (4.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (2.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (20.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (35.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (1.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (4.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (7.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (143.4ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (11.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.9ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 520ms (Views: 281.5ms | ActiveRecord: 67.2ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_displays_link_without_ISBN ------------------------------------------------------------ Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-03-17 16:49:17 -0400 Processing by ResolveController#index as HTML Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3e9b38715c35004237328adc34d320b8' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-03-17 20:49:18.042125') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 14, '2015-03-17 20:49:18.044375') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 14, '2015-03-17 20:49:18.046307') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 14, '2015-03-17 20:49:18.048287') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 14, '2015-03-17 20:49:18.050121')  (14.7ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '3e9b38715c35004237328adc34d320b8', 'a03fb1fb17f24f5ea845bf6c4450490b', 14, '127.0.0.1', '2015-03-17 20:49:18.070794')  (16.9ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2015-03-17 20:49:18.101183', '2015-03-17 20:49:18.101183')  (18.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14) ReferentValue Load (1.5ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.8ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-03-17 20:49:18.163242')  (18.3ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 20:49:18.189767' WHERE `dispatched_services`.`id` = 10  (15.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.3ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (21.5ms) Permalink Load (1.3ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (6.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError ================================================================================ An HTTP request has been made that VCR does not know how to handle: POST https://bdtest.relais-host.com/dws/item/add Body: {"PartnershipId":"BD","AuthorizationId":"UauNNO6yMgNfXVWD31yUsMQGG9o","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]} There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * If you're surprised VCR is raising this error and want insight about how VCR attempted to handle the request, you can use the debug_logger configuration option to log more details [1]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request ================================================================================ . Backtrace: vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle' vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in ' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call' webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call' webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?' webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect' webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for' webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get' webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block' httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request' httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected' httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request' httpclient (2.6.0.1) lib/httpclient.rb:822:in `request' httpclient (2.6.0.1) lib/httpclient.rb:725:in `post' borrow_direct (1.0.1) lib/borrow_direct/request.rb:70:in `request' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'  (1.5ms) COMMIT Completed 200 OK in 249ms (Views: 19.7ms | ActiveRecord: 79.4ms) DispatchedService Load (4.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items -------------------------------------------------------------------------- Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-03-17 16:49:18 -0400 Processing by ResolveController#index as HTML SQL (3.5ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"UauNNO6yMgNfXVWD31yUsMQGG9o\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-03-17 20:49:18.256983' WHERE `dispatched_services`.`id` = 7 Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"} Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b360f6fe705feef5d18d80e17ae4bd95' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-03-17 20:49:18.280015') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-03-17 20:49:18.282154') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 15, '2015-03-17 20:49:18.284010') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 15, '2015-03-17 20:49:18.285812')  (17.6ms) COMMIT SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 15, '2015-03-17 20:49:18.287756')  (1.0ms) BEGIN SQL (1.3ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 15  (16.7ms) COMMIT  (0.9ms) BEGIN  (18.1ms) COMMIT SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b360f6fe705feef5d18d80e17ae4bd95', 'bc13b80c2923ce2cbe0c8347141587a7', 15, '127.0.0.1', '2015-03-17 20:49:18.310642')  (14.3ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2015-03-17 20:49:18.337753', '2015-03-17 20:49:18.337753')  (16.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 Referent Load (0.9ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.5ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued' DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 20:49:18.396686' WHERE `dispatched_services`.`id` = 11  (15.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.7ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (60.5ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 214ms (Views: 58.9ms | ActiveRecord: 71.8ms) ---------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error ---------------------------------------------------------------------------- Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '03512819ac29a9fa18d4da9f51caf78d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.6ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-03-17 20:49:18.500156') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 16, '2015-03-17 20:49:18.502688') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 16, '2015-03-17 20:49:18.504706') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 16, '2015-03-17 20:49:18.506587')  (14.7ms) COMMIT  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '03512819ac29a9fa18d4da9f51caf78d', '318e542032e1812e600e07efbdb1dfcc', 16, '0.0.0.0', '2015-03-17 20:49:18.526584')  (15.4ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.8ms) BEGIN SQL (1.6ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 16, '2015-03-17 20:49:18.549832', '2015-03-17 20:49:18.549832')  (24.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Started GET "/resolve?umlaut.request_id=16" for 127.0.0.1 at 2015-03-17 16:49:18 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"16"} Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 Referent Load (1.4ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 [["request_id", 16]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.6ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.6ms) ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (6.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (20.2ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 16 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (5.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 47ms (Views: 17.3ms | ActiveRecord: 21.9ms) ------------------------------------------------------------- BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode ------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 16:49:18 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77c2331a53f1b83aa01ea53626145822' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 20:49:18.643074') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-03-17 20:49:18.645214') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2015-03-17 20:49:18.647043')  (16.5ms) COMMIT  (0.6ms) BEGIN SQL (1.5ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '77c2331a53f1b83aa01ea53626145822', '1f2487b5ab29a0f58587335258d7f8e0', 17, '127.0.0.1', '2015-03-17 20:49:18.669730')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 17, '2015-03-17 20:49:18.696641', '2015-03-17 20:49:18.696641')  (14.5ms) COMMIT  (0.7ms) BEGIN  (0.8ms) COMMIT Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (1.3ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (17) ReferentValue Load (1.3ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (17) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (17) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 20:49:18.750693')  (14.0ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 17, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 20:49:18.780608')  (14.2ms) COMMIT DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 20:49:18.805721' WHERE `dispatched_services`.`id` = 13  (14.6ms) COMMIT Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (2.2ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (8.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (25.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (26.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (39.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (85.1ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 282ms (Views: 78.9ms | ActiveRecord: 71.9ms) Started GET "/borrow_direct/BorrowDirect/17?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-03-17 16:49:18 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"17"} Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC DispatchedService Load (1.6ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.9ms) BEGIN SQL (1.3ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-03-17 20:49:18.933210' WHERE `dispatched_services`.`id` = 13  (15.6ms) COMMIT  (0.8ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 17, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:18.953804')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) Redirected to http://www.example.com/resolve?umlaut.request_id=17&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A18-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 52ms (ActiveRecord: 40.2ms) BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace: borrow_direct (1.0.1) lib/borrow_direct/request.rb:93:in `request' borrow_direct (1.0.1) lib/borrow_direct/authentication.rb:27:in `authentication_request' borrow_direct (1.0.1) lib/borrow_direct/authentication.rb:35:in `get_auth_id' borrow_direct (1.0.1) lib/borrow_direct/request.rb:137:in `fetch_auth_id!' borrow_direct (1.0.1) lib/borrow_direct/request.rb:143:in `need_auth_id' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:58:in `request_item_request' borrow_direct (1.0.1) lib/borrow_direct/request_item.rb:80:in `make_request!' umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request' DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.4ms) UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-1.0.1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-03-17 20:49:18.986897' WHERE `dispatched_services`.`id` = 13  (14.2ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 25  (13.9ms) COMMIT Started GET "/resolve?umlaut.request_id=17&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A18-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-03-17 16:49:19 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"17", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-03-17T16:49:18-04:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 ReferentValue Load (0.7ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)  (0.6ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 Request Load (0.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 [["request_id", 17]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (3.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (3.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (19.8ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 17 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.2ms)  (0.6ms) BEGIN  (0.7ms) COMMIT Completed 200 OK in 41ms (Views: 20.7ms | ActiveRecord: 9.9ms) ----------------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message ----------------------------------------------------------------------------------- Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-03-17 16:49:19 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"0109836413"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8ebd1d6809d40c87aedf895974093d3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-03-17 20:49:19.085871') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-03-17 20:49:19.087871') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 18, '2015-03-17 20:49:19.089679')  (14.8ms) COMMIT  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c8ebd1d6809d40c87aedf895974093d3', '9902a1d22a141a826ae31b1c83cb928c', 18, '127.0.0.1', '2015-03-17 20:49:19.110442')  (15.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 18, '2015-03-17 20:49:19.139340', '2015-03-17 20:49:19.139340')  (14.9ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (18) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (18) ORDER BY id ASC DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (18) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.6ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 18, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 20:49:19.192540')  (15.6ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 18, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-03-17 20:49:19.275377')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 20:49:19.297894' WHERE `dispatched_services`.`id` = 14  (14.3ms) COMMIT Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 LIMIT 1 DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1 ReferentValue Load (0.9ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.2ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (21.4ms) Permalink Load (1.1ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 18 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 267ms (Views: 19.1ms | ActiveRecord: 67.3ms) ------------------------------------------------------------ BorrowDirectIntegrationTest: test_places_request_succesfully ------------------------------------------------------------ Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 16:49:19 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd978418b6901ba38a3e43eded21bf6eb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 20:49:19.361936') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-03-17 20:49:19.364086') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 19, '2015-03-17 20:49:19.366015')  (14.3ms) COMMIT  (0.6ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd978418b6901ba38a3e43eded21bf6eb', '1f2487b5ab29a0f58587335258d7f8e0', 19, '127.0.0.1', '2015-03-17 20:49:19.386721')  (14.1ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 19, '2015-03-17 20:49:19.413747', '2015-03-17 20:49:19.413747')  (14.0ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (19) ReferentValue Load (1.2ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) ServiceResponse Load (1.1ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (19) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (19) DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (15.3ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`id` = 15 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 19, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 20:49:19.467173')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 19, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 20:49:19.498908')  (14.3ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 20:49:19.523941' WHERE `dispatched_services`.`id` = 15  (14.0ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (1.9ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (5.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (25.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (1.0ms) COMMIT Completed 200 OK in 222ms (Views: 22.9ms | ActiveRecord: 64.7ms) Started GET "/borrow_direct/BorrowDirect/19?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-03-17 16:49:19 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"19"} Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (1.0ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-03-17 20:49:19.630212' WHERE `dispatched_services`.`id` = 15  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:19.649610')  (14.1ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Redirected to http://www.example.com/resolve?umlaut.request_id=19&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A19-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Completed 303 See Other in 51ms (ActiveRecord: 37.1ms) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 20:49:19.682859' WHERE `dispatched_services`.`id` = 15  (14.4ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 30  (15.4ms) COMMIT Started GET "/resolve?umlaut.request_id=19&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A19-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-03-17 16:49:19 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"19", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-03-17T16:49:19-04:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 [["request_id", 19]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.7ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (1.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (17.4ms) Permalink Load (0.8ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 19 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 40ms (Views: 18.0ms | ActiveRecord: 10.9ms) ---------------------------------------------------------------- BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form ---------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 16:49:19 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '885b3280519eaed4c4fd5180cba921e1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 20:49:19.777524') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-03-17 20:49:19.779840') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 20, '2015-03-17 20:49:19.781722')  (14.4ms) COMMIT  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '885b3280519eaed4c4fd5180cba921e1', '1f2487b5ab29a0f58587335258d7f8e0', 20, '127.0.0.1', '2015-03-17 20:49:19.802112')  (14.4ms) COMMIT  (0.6ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 20, '2015-03-17 20:49:19.829135', '2015-03-17 20:49:19.829135')  (13.9ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (20) ReferentValue Load (1.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (20) ORDER BY id ASC DispatchedService Load (0.9ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (20) DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (14.7ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`id` = 16 AND `dispatched_services`.`status` = 'queued'  (0.9ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 20, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 20:49:19.881353')  (14.2ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 20, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 20:49:19.926865')  (14.3ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 20:49:19.951775' WHERE `dispatched_services`.`id` = 16  (14.7ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (2.0ms) DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 Referent Load (1.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (3.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.3ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.2ms) Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (5.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (1.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (24.5ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 20 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.7ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 233ms (Views: 21.2ms | ActiveRecord: 65.5ms) ----------------------------------------- BorrowDirectIntegrationTest: test_routing ----------------------------------------- -------------------------------------------------------------------------- BorrowDirectIntegrationTest: test_validation_error_without_pickup_location -------------------------------------------------------------------------- Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-03-17 16:49:20 -0400 Processing by ResolveController#index as HTML Parameters: {"isbn"=>"9789810743734"} Request Load (1.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88a47c8b8dde0cda936e4a23d610ee38' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-03-17 20:49:20.063417') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-03-17 20:49:20.065554') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 21, '2015-03-17 20:49:20.067445')  (16.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '88a47c8b8dde0cda936e4a23d610ee38', '1f2487b5ab29a0f58587335258d7f8e0', 21, '127.0.0.1', '2015-03-17 20:49:20.090260')  (15.8ms) COMMIT  (0.7ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (5.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21  (0.6ms) BEGIN SQL (1.4ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 21, '2015-03-17 20:49:20.123557', '2015-03-17 20:49:20.123557')  (16.3ms) COMMIT  (0.6ms) BEGIN  (0.6ms) COMMIT Request Load (1.1ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (2.5ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (21) ReferentValue Load (1.1ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (21) ORDER BY id ASC DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (21) DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1 SQL (18.4ms) UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`id` = 17 AND `dispatched_services`.`status` = 'queued'  (0.7ms) BEGIN SQL (1.4ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 21, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-03-17 20:49:20.185065')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 21, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-03-17 20:49:20.228844')  (14.3ms) COMMIT DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.0ms) UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-03-17 20:49:20.254051' WHERE `dispatched_services`.`id` = 17  (15.3ms) COMMIT Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (2.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Referent Load (1.1ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (4.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.2ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.3ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.8ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (9.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (1.5ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (2.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (29.6ms) Permalink Load (1.2ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.6ms) COMMIT Completed 200 OK in 255ms (Views: 22.9ms | ActiveRecord: 80.0ms) Started GET "/borrow_direct/BorrowDirect/21" for 127.0.0.1 at 2015-03-17 16:49:20 -0400 Processing by BorrowDirectController#submit_request as HTML Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"21"} Request Load (1.2ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1 ServiceResponse Load (0.9ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 21, 'BorrowDirect', 'bd_request_status', '2015-03-17 20:49:20.321312')  (18.5ms) COMMIT Referent Load (0.8ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Redirected to http://www.example.com/resolve?umlaut.request_id=21&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A20-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1 Filter chain halted as :load_service_and_response rendered or redirected Completed 303 See Other in 32ms (ActiveRecord: 23.9ms) Started GET "/resolve?umlaut.request_id=21&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-03-17T16%3A49%3A20-04%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-03-17 16:49:20 -0400 Processing by ResolveController#index as HTML Parameters: {"umlaut.request_id"=>"21", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-03-17T16:49:20-04:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"} Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Referent Load (0.7ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 ReferentValue Load (0.8ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (0.7ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 Request Load (0.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 CACHE (0.0ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 [["request_id", 21]] Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_background_updater.html.erb (0.8ms) CACHE (0.0ms) SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_manually_entered_warning.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_citation.html.erb (0.8ms) ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (2.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_fulltext.html.erb (0.6ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.9ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.3ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_holding.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_standard_response_item.html.erb (1.1ms) Request Load (0.8ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 LIMIT 1 Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms) Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (5.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_coins.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.0ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_search_inside.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_heading.html.erb (0.1ms) DispatchedService Load (0.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal') Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_service_errors.html.erb (1.4ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_section_display.html.erb (1.8ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/_modal.html.erb (0.2ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms) Permalink Load (0.7ms) SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 21 Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_header.html.erb (2.5ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_alerts.html.erb (0.1ms) Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.2/app/views/umlaut/_footer.html.erb (0.3ms)  (0.6ms) BEGIN  (0.8ms) COMMIT Completed 200 OK in 82ms (Views: 21.2ms | ActiveRecord: 10.4ms) Request Load (1.7ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '388de4e1e89e37fcdde3f7895ef64cc7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (1.0ms) BEGIN SQL (1.3ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-03-17 20:49:20.445265') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-03-17 20:49:20.447702') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 22, '2015-03-17 20:49:20.449933') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 22, '2015-03-17 20:49:20.451679')  (18.5ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '388de4e1e89e37fcdde3f7895ef64cc7', 'e7e9149c1fdfcd3be6736b651a0064bb', 22, '0.0.0.0', '2015-03-17 20:49:20.475815')  (14.8ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (22, '--- {}\n', 'test_holding', 'holding', '2015-03-17 20:49:20.500173')  (14.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 22, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-03-17 20:49:20.521725')  (14.6ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2015-03-17 20:49:20.543784', '2015-03-17 20:49:20.543784')  (16.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC Request Load (1.5ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fbbce7fea7cc4952f9b55b3889a0fa43' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-03-17 20:49:20.584712') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-03-17 20:49:20.586852') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 23, '2015-03-17 20:49:20.588787') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 23, '2015-03-17 20:49:20.590640')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'fbbce7fea7cc4952f9b55b3889a0fa43', 'e7e9149c1fdfcd3be6736b651a0064bb', 23, '0.0.0.0', '2015-03-17 20:49:20.610347')  (16.4ms) COMMIT  (0.8ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 23, 'test_holding', 'holding', '2015-03-17 20:49:20.634108')  (14.3ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (1.1ms) BEGIN SQL (1.0ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2015-03-17 20:49:20.662644', '2015-03-17 20:49:20.662644')  (16.0ms) COMMIT  (0.7ms) BEGIN  (0.7ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 Request Load (1.6ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37012e164df4a8d3021b32dfe418641c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-03-17 20:49:20.693109') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-03-17 20:49:20.695297') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2015-03-17 20:49:20.697733') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2015-03-17 20:49:20.699539')  (18.2ms) COMMIT  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '37012e164df4a8d3021b32dfe418641c', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2015-03-17 20:49:20.723302')  (14.6ms) COMMIT  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 24, 'test_holding', 'holding', '2015-03-17 20:49:20.744906')  (15.9ms) COMMIT ServiceResponse Load (1.5ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC  (0.8ms) BEGIN SQL (1.8ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-03-17 20:49:20.775815')  (19.9ms) COMMIT DispatchedService Load (1.3ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2015-03-17 20:49:20.803767', '2015-03-17 20:49:20.803767')  (14.8ms) COMMIT  (0.8ms) BEGIN  (0.8ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 Request Load (1.9ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf077b7f47b0ecda7a3e7ff1d19164cd' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.9ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-03-17 20:49:20.833335') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-03-17 20:49:20.835370') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 25, '2015-03-17 20:49:20.837182') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 25, '2015-03-17 20:49:20.839079')  (15.2ms) COMMIT  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'cf077b7f47b0ecda7a3e7ff1d19164cd', 'e7e9149c1fdfcd3be6736b651a0064bb', 25, '0.0.0.0', '2015-03-17 20:49:20.859223')  (14.4ms) COMMIT  (0.7ms) BEGIN SQL (1.0ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 25, 'test_holding', 'holding', '2015-03-17 20:49:20.880790')  (15.0ms) COMMIT ServiceResponse Load (1.8ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC  (1.6ms) BEGIN SQL (2.8ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-03-17 20:49:20.953321')  (18.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2015-03-17 20:49:20.980766', '2015-03-17 20:49:20.980766')  (17.1ms) COMMIT  (0.9ms) BEGIN  (0.9ms) COMMIT DispatchedService Load (1.1ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25  (0.7ms) BEGIN ------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_added -------------------------------------------------------  (0.6ms) ROLLBACK  (0.6ms) BEGIN ---------------------------------------------------------- UmlautBorrowDirectTest: test_custom_service_types_labelled ----------------------------------------------------------  (0.6ms) ROLLBACK Request Load (1.3ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '078359363cbcf8259b9adade0f74bb1e' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.2ms) INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-03-17 20:49:21.026880') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-03-17 20:49:21.029272') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 26, '2015-03-17 20:49:21.031595') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 26, '2015-03-17 20:49:21.033383') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 26, '2015-03-17 20:49:21.035110') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 26, '2015-03-17 20:49:21.036824') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 26, '2015-03-17 20:49:21.038557') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 26, '2015-03-17 20:49:21.040185') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 26, '2015-03-17 20:49:21.041942') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 26, '2015-03-17 20:49:21.043701') SQL (0.9ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 26, '2015-03-17 20:49:21.045430')  (16.8ms) COMMIT  (3.2ms) BEGIN SQL (1.3ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '078359363cbcf8259b9adade0f74bb1e', '06d451b80bf9fe3ce6849a48c98522d7', 26, 'info:sid/google', '0.0.0.0', '2015-03-17 20:49:21.070410')  (14.8ms) COMMIT DispatchedService Load (3.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (1.3ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-03-17 20:49:21.096198', '2015-03-17 20:49:21.096198')  (14.3ms) COMMIT  (1.6ms) BEGIN  (2.1ms) COMMIT DispatchedService Load (1.8ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 ServiceResponse Exists (3.5ms) SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 26 LIMIT 1 Request Load (3.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b6ac59be0b75c78db61e84e446f2b29' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.8ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-03-17 20:49:21.198038') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-03-17 20:49:21.200082') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 27, '2015-03-17 20:49:21.201914') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 27, '2015-03-17 20:49:21.203736')  (15.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4b6ac59be0b75c78db61e84e446f2b29', '62590701c6f35b45309577ef8c8c22b4', 27, '0.0.0.0', '2015-03-17 20:49:21.224046')  (14.1ms) COMMIT  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-03-17 20:49:21.246865')  (14.3ms) COMMIT ServiceResponse Load (1.6ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC Request Load (1.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b2ef464e3a8ee04911d0c7e167ea938' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1  (0.7ms) BEGIN SQL (1.1ms) INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-03-17 20:49:21.283124') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 28, '2015-03-17 20:49:21.285316') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 28, '2015-03-17 20:49:21.287222') SQL (1.1ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 28, '2015-03-17 20:49:21.289031') SQL (1.0ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 28, '2015-03-17 20:49:21.290952') SQL (1.3ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 28, '2015-03-17 20:49:21.292754') SQL (0.8ms) INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 28, '2015-03-17 20:49:21.294849')  (21.6ms) COMMIT  (0.6ms) BEGIN SQL (1.1ms) INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2b2ef464e3a8ee04911d0c7e167ea938', 'd95884a882a64501650fb8f9deae5104', 28, 'info:sid/google', '0.0.0.0', '2015-03-17 20:49:21.321688')  (16.0ms) COMMIT ServiceResponse Load (1.4ms) SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC  (0.6ms) BEGIN SQL (1.2ms) INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-03-17 20:49:21.348616')  (14.2ms) COMMIT DispatchedService Load (1.4ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1  (0.7ms) BEGIN SQL (0.9ms) INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-03-17 20:49:21.370507', '2015-03-17 20:49:21.370507')  (14.2ms) COMMIT  (0.7ms) BEGIN  (0.6ms) COMMIT DispatchedService Load (1.2ms) SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28